{
  "status": "ok",
  "port": 18088,
  "public_base_url": "https://atendimento.lojapowertech.com.br",
  "data_dir": "/data/runtime",
  "db_path": "/data/runtime/atendimento.sqlite",
  "dashboard_dir": "/app/workflows/dashboard-html",
  "inbox_ui_dir": "/app/workflows/atendimento-inbox-html",
  "logs_ui_dir": "/app/workflows/atendimento-logs-html",
  "linker_dir": "/app/workflows/chatwoot-dashboard-app",
  "criadoranuncio_ui_dir": "/app/workflows/criadoranuncio-html",
  "config_path": "/data/config.local.json",
  "evolution_base_url": "http://evolution-api:8080",
  "evolution_base_url_source": "env",
  "evolution": {
    "base_url": "http://evolution-api:8080",
    "instance_name": "powertech_pro",
    "api_key_configured": true,
    "auto_recovery_enabled": true,
    "auto_recovery_failure_window_seconds": 120,
    "auto_recovery_min_failures": 1,
    "auto_recovery_cooldown_seconds": 900
  },
  "melhor_envio": {
    "environment": "production",
    "client_id_configured": true,
    "client_secret_configured": true,
    "access_token_configured": true,
    "refresh_token_configured": true,
    "services_configured": [
      1,
      2,
      3,
      4,
      5,
      6,
      7,
      8,
      9,
      10,
      11,
      12,
      13,
      14,
      15,
      16,
      17,
      18,
      19,
      20
    ],
    "origin_postal_code": "03929-160"
  },
  "openai": {
    "api_key_configured": true,
    "base_url": "https://api.openai.com/v1",
    "model": "gpt-5.4",
    "reasoning_effort": "medium",
    "transcription_model": "gpt-4o-mini-transcribe",
    "realtime_model": "gpt-realtime-1.5",
    "realtime_voice": "marin"
  },
  "evolution_recovery": {
    "last_error_at": "2026-05-18T13:21:05.067Z",
    "last_error_summary": "failed to decrypt message",
    "last_error_phone": "",
    "last_error_thread_id": "",
    "last_restart_at": "2026-05-13T14:17:32.233Z",
    "last_restart_reason": "decrypt_failure",
    "last_restart_status": "ok",
    "last_restart_instance": "powertech_pro",
    "last_restart_connection_state": "close",
    "restart_count": 1,
    "recent_decrypt_failures": [
      {
        "at": "2026-05-13T14:17:31.000Z",
        "phone_e164": "",
        "remote_jid": "103603234697382@lid",
        "instance": "powertech_pro",
        "message_id": "2A2D6CA7C9F4994FF0C1"
      }
    ]
  },
  "path_checks": {
    "dashboard_dir_exists": true,
    "inbox_ui_dir_exists": true,
    "logs_ui_dir_exists": true,
    "linker_dir_exists": true,
    "criadoranuncio_ui_dir_exists": true
  },
  "oauth": {
    "status": "ok",
    "redirect_uri": "https://atendimento.lojapowertech.com.br/api/atendimento/oauth/callback",
    "has_access_token": true,
    "has_refresh_token": true,
    "client_id_configured": true,
    "client_secret_configured": true
  },
  "google_oauth": {
    "status": "ok",
    "redirect_uri": "https://atendimento.lojapowertech.com.br/api/atendimento/google/oauth/callback",
    "has_access_token": false,
    "has_refresh_token": true,
    "has_service_account": false,
    "client_id_configured": true,
    "client_secret_configured": true
  },
  "sync": {
    "running": false,
    "active_reason": "",
    "auto_setup_on_start": true,
    "auto_sync_on_start": true,
    "auto_sync_enabled": true,
    "interval_minutes": 15,
    "timer_started_at": "2026-05-17T21:12:33.008Z",
    "last_started_at": "2026-05-18T17:28:14.782Z",
    "last_finished_at": "2026-05-18T17:29:34.409Z",
    "last_reason": "meli_notification",
    "last_status": "ok",
    "last_error": "",
    "last_result_summary": {
      "status": "ok",
      "orders_fetched": 0,
      "claims_fetched": 0,
      "claims_raw_written": 0,
      "claims_raw_new_or_updated": 0,
      "total_rows_after_merge": 0,
      "refreshed_count": 16,
      "skipped_count": 1757
    }
  },
  "routes": [
    "/atendimento/",
    "/logs/",
    "/criadoranuncio/",
    "/api/criadoranuncio/bootstrap",
    "/api/criadoranuncio/base-items",
    "/api/criadoranuncio/base-items/:id",
    "/api/criadoranuncio/categories/:id/editor",
    "/api/criadoranuncio/publish",
    "/api/criadoranuncio/items/:id/pause",
    "/api/criadoranuncio/oauth/start",
    "/api/criadoranuncio/oauth/status",
    "/api/criadoranuncio/health",
    "/api/atendimento/dashboard/data",
    "/api/atendimento/inbox/bootstrap",
    "/api/atendimento/inbox/thread/:id",
    "/api/atendimento/inbox/thread/:id/clear",
    "/api/atendimento/inbox/message/:id/media",
    "/api/atendimento/inbox/thread/:id/message",
    "/api/atendimento/inbox/thread/:id/shipments",
    "/api/atendimento/inbox/thread/:id/shipments/quote",
    "/api/atendimento/inbox/thread/:id/labels",
    "/api/atendimento/inbox/thread/:id/labels/:label",
    "/api/atendimento/inbox/thread/:id/system-labels",
    "/api/atendimento/inbox/thread/:id/system-labels/:label",
    "/api/atendimento/inbox/thread/:id/pin",
    "/api/atendimento/inbox/thread/:id/read",
    "/api/atendimento/inbox/read-all",
    "/api/atendimento/inbox/thread/:id/status",
    "/api/atendimento/inbox/thread/:id/linker",
    "/api/atendimento/hermes/bootstrap",
    "/api/atendimento/hermes/products",
    "/api/atendimento/hermes/training/general",
    "/api/atendimento/hermes/products/:item_id/training",
    "/api/atendimento/hermes/products/:item_id/learning/contacts",
    "/api/atendimento/hermes/products/:item_id/learning-jobs",
    "/api/atendimento/hermes/learning-jobs/:id/revise",
    "/api/atendimento/hermes/learning-jobs/:id/approve",
    "/api/atendimento/hermes/learning-jobs/seen",
    "/api/atendimento/hermes/settings",
    "/api/atendimento/hermes/knowledge",
    "/api/atendimento/hermes/reply-flows",
    "/api/atendimento/hermes/thread/:id/state",
    "/api/atendimento/hermes/thread/:id/run",
    "/api/atendimento/hermes/thread/:id/draft",
    "/api/atendimento/hermes/thread/:id/correct",
    "/api/atendimento/hermes/thread/:id/secondary/analyze",
    "/api/atendimento/hermes/thread/:id/secondary/correct",
    "/api/atendimento/hermes/supervisor/seen",
    "/api/atendimento/hermes/supervisor/queue/:id/answer",
    "/api/atendimento/push/public-key",
    "/api/atendimento/push/subscribe",
    "/api/atendimento/push/unsubscribe",
    "/api/atendimento/push/test",
    "/api/atendimento/logs/bootstrap",
    "/api/atendimento/logs/:id",
    "/api/atendimento/dashboard/checkpoints",
    "/api/atendimento/ml/sync",
    "/api/atendimento/ml/refresh",
    "/api/atendimento/linker/data",
    "/api/atendimento/linker/link",
    "/api/atendimento/chatwoot/base",
    "/api/atendimento/chatwoot/labels",
    "/api/atendimento/evolution/process",
    "/api/atendimento/evolution/audit",
    "/api/atendimento/evolution/errors",
    "/api/atendimento/chatwoot/outbound",
    "/api/atendimento/trace",
    "/api/atendimento/ml/notifications",
    "/api/atendimento/ml/reply",
    "/api/atendimento/chatwoot/history",
    "/api/atendimento/setup",
    "/api/atendimento/oauth/start",
    "/api/atendimento/oauth/status",
    "/api/atendimento/google/oauth/start",
    "/api/atendimento/google/oauth/status",
    "/webhook/dashboard-powertech-data",
    "/webhook/dashboard-powertech-checkpoints",
    "/webhook/fase1-chatwoot-base",
    "/webhook/fase2-motor-etiquetas",
    "/webhook/ml-sync-sales-claims",
    "/webhook/ml-refresh-chatwoot-contacts",
    "/webhook/chatwoot-ml-linker-data",
    "/webhook/chatwoot-ml-linker-link",
    "/webhook/evolution-messages-process",
    "/webhook/evolution-messages-upsert",
    "/webhook/evolution-errors",
    "/webhook/chatwoot-outbound-send",
    "/webhook/wa-delivery-trace",
    "/webhook/ml-notifications",
    "/webhook/chatwoot-reply",
    "/webhook/chatwoot-historico"
  ],
  "updated_at": "2026-05-18T17:29:35.712Z"
}