{"openapi":"3.1.0","info":{"title":"Truechat","description":"\nOmnichannel customer messaging API for **WhatsApp**, **Instagram**, **Messenger**, **Telegram**, and **TikTok**.\n\nUse this reference to authenticate, send messages, manage contacts and conversations, run broadcasts, and automate workflows.\n\n## Authentication\n\nProtected endpoints use HTTP Bearer authentication. Pass either:\n\n1. A **JWT access token** from `POST /api/v1/auth/login` (and organization selection when required)\n2. A long-lived **API key** from the Trueshup app under **Settings → API keys**\n\n```http\nAuthorization: Bearer <jwt-or-api-key>\n```\n\nAPI key formats:\n\n```http\nAuthorization: Bearer sk_live_...\nAuthorization: Bearer sk_test_...\n```\n\nNever embed live keys in client-side code. Prefer server-to-server calls for outbound messaging, and rotate keys from Settings if leaked.\n\n## Base URLs\n\n| Environment | Origin | REST prefix |\n| --- | --- | --- |\n| Production | `https://api.cultivbureau.com` | `/api/v1` |\n| Local | `http://localhost:8000` | `/api/v1` |\n\nAll REST paths in this document already include the `/api/v1` prefix.\n\n## Realtime\n\nWebSocket endpoints (token query param accepts JWT or API key):\n\n- `WS /ws/inbox?token=<access-token-or-api-key>`\n- `WS /ws/presence?token=<access-token-or-api-key>`\n\n## Errors\n\nError responses use a consistent envelope:\n\n```json\n{\n  \"success\": false,\n  \"message\": \"Human-readable message\",\n  \"data\": null,\n  \"meta\": {\n    \"error\": {\n      \"code\": \"unauthorized\",\n      \"details\": {}\n    }\n  }\n}\n```\n\n## Docs surfaces\n\n- Interactive reference: Trueshup app `/api-docs`\n- Swagger UI: `/docs`\n- ReDoc: `/redoc`\n- OpenAPI schema: `/api/v1/openapi.json`\n","contact":{"name":"Cultiv Bureau Support","url":"https://truechat.cultivbureau.com/","email":"support@cultivbureau.com"},"license":{"name":"Proprietary","url":"https://truechat.cultivbureau.com/terms-and-conditions"},"version":"0.1.0"},"paths":{"/api/v1/health":{"get":{"tags":["health"],"summary":"Health","operationId":"health_api_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/api/v1/public/media/{asset_id}/{expires}/{sig}":{"get":{"tags":["public"],"summary":"Get Public Media","description":"Unauthenticated media for WhatsApp/Meta to download. HMAC is in the path\nso crawlers that strip query strings still succeed.","operationId":"get_public_media_api_v1_public_media__asset_id___expires___sig__get","parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}},{"name":"expires","in":"path","required":true,"schema":{"type":"integer","title":"Expires"}},{"name":"sig","in":"path","required":true,"schema":{"type":"string","title":"Sig"}},{"name":"Range","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbox/media/{asset_id}/content":{"get":{"tags":["inbox"],"summary":"Get Media Content","description":"Serve stored media without the inbox JWT rate-limit dependency.\n\nSigned query params are enough for <audio> tags. Logged-in agents can also\nfetch with a bearer token.","operationId":"get_media_content_api_v1_inbox_media__asset_id__content_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}},{"name":"expires","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expires"}},{"name":"sig","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sig"}},{"name":"Range","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Range"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/register":{"post":{"tags":["auth"],"summary":"Register","operationId":"register_api_v1_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/login":{"post":{"tags":["auth"],"summary":"Login","operationId":"login_api_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/select-organization":{"post":{"tags":["auth"],"summary":"Select Organization","operationId":"select_organization_api_v1_auth_select_organization_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SelectOrganizationRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/organization-selection":{"post":{"tags":["auth"],"summary":"Organization Selection","operationId":"organization_selection_api_v1_auth_organization_selection_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/forgot-password":{"post":{"tags":["auth"],"summary":"Forgot Password","operationId":"forgot_password_api_v1_auth_forgot_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForgotPasswordRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/reset-password":{"post":{"tags":["auth"],"summary":"Reset Password","operationId":"reset_password_api_v1_auth_reset_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetPasswordRequest"}}},"required":true},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/refresh":{"post":{"tags":["auth"],"summary":"Refresh Token","operationId":"refresh_token_api_v1_auth_refresh_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefreshTokenRequest","default":{}}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TokenPair"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/session":{"get":{"tags":["auth"],"summary":"Session Probe","description":"Return non-secret session metadata for SPA hydrate (no raw tokens).","operationId":"session_probe_api_v1_auth_session_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","description":"Always clear auth cookies. Revoke/audit when a refresh token is present.","operationId":"logout_api_v1_auth_logout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogoutRequest","default":{}}}}},"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/overview":{"get":{"tags":["billing"],"summary":"Billing Overview","operationId":"billing_overview_api_v1_billing_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_BillingOverviewResponse_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/billing/plans":{"get":{"tags":["billing"],"summary":"List Plans","operationId":"list_plans_api_v1_billing_plans_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_PlanDefinition__"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/billing/plan":{"post":{"tags":["billing"],"summary":"Change Plan","description":"Downgrade to Free (cancels Stripe at period end) or reject paid without Checkout.","operationId":"change_plan_api_v1_billing_plan_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePlanRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_BillingOverviewResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/billing/checkout":{"post":{"tags":["billing"],"summary":"Start Plan Checkout","operationId":"start_plan_checkout_api_v1_billing_checkout_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePlanRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_CheckoutSessionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/billing/checkout/addons":{"post":{"tags":["billing"],"summary":"Start Addon Checkout","operationId":"start_addon_checkout_api_v1_billing_checkout_addons_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddonCheckoutRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_CheckoutSessionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/billing/entitlements":{"get":{"tags":["billing"],"summary":"Billing Entitlements","operationId":"billing_entitlements_api_v1_billing_entitlements_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_PlanEntitlements_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/billing/portal":{"post":{"tags":["billing"],"summary":"Billing Portal","operationId":"billing_portal_api_v1_billing_portal_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_BillingPortalResponse_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/billing/usage":{"get":{"tags":["billing"],"summary":"Billing Usage","operationId":"billing_usage_api_v1_billing_usage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"period","in":"query","required":false,"schema":{"enum":["daily","weekly","monthly"],"type":"string","default":"daily","title":"Period"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_UsageDataPoint__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/billing/invoices":{"get":{"tags":["billing"],"summary":"List Invoices","operationId":"list_invoices_api_v1_billing_invoices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_InvoiceResponse__"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/billing/invoices/{invoice_id}/pdf":{"get":{"tags":["billing"],"summary":"Download Invoice Pdf","operationId":"download_invoice_pdf_api_v1_billing_invoices__invoice_id__pdf_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"invoice_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Invoice Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/wallet/overview":{"get":{"tags":["wallet"],"summary":"Wallet Overview","operationId":"wallet_overview_api_v1_wallet_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WalletOverviewResponse_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/wallet/transactions":{"get":{"tags":["wallet"],"summary":"List Transactions","operationId":"list_transactions_api_v1_wallet_transactions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WalletTransactionPage_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/wallet/usage":{"get":{"tags":["wallet"],"summary":"Wallet Usage","operationId":"wallet_usage_api_v1_wallet_usage_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":180,"minimum":1,"default":30,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_WalletDailySpendPoint__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/wallet/settings":{"patch":{"tags":["wallet"],"summary":"Update Wallet Settings","operationId":"update_wallet_settings_api_v1_wallet_settings_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletSettingsUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WalletBalanceResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/wallet/topups":{"get":{"tags":["wallet"],"summary":"List Topups","operationId":"list_topups_api_v1_wallet_topups_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_WalletTopUpResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["wallet"],"summary":"Start Topup","description":"Create a hosted checkout session. Card details are entered on the provider's page.","operationId":"start_topup_api_v1_wallet_topups_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletTopUpRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WalletTopUpResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/wallet/rates":{"get":{"tags":["wallet"],"summary":"List Rates","description":"Org-facing rate card. Meta cost and markup are intentionally omitted.","operationId":"list_rates_api_v1_wallet_rates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_WalletRateResponse__"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/wallet/admin/pricing-policy":{"get":{"tags":["wallet"],"summary":"Get Pricing Policy","operationId":"get_pricing_policy_api_v1_wallet_admin_pricing_policy_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_PricingPolicyResponse_"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["wallet"],"summary":"Create Pricing Policy","operationId":"create_pricing_policy_api_v1_wallet_admin_pricing_policy_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PricingPolicyCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_PricingPolicyResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/wallet/admin/pricing-policies":{"get":{"tags":["wallet"],"summary":"List Pricing Policies","description":"Append-only audit history of platform pricing policies (newest first).","operationId":"list_pricing_policies_api_v1_wallet_admin_pricing_policies_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"currency","in":"query","required":false,"schema":{"type":"string","minLength":3,"maxLength":8,"default":"usd","title":"Currency"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_PricingPolicyPage_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/wallet/admin/rates":{"get":{"tags":["wallet"],"summary":"Admin List Rates","operationId":"admin_list_rates_api_v1_wallet_admin_rates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_WalletAdminRateResponse__"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["wallet"],"summary":"Upsert Rate","operationId":"upsert_rate_api_v1_wallet_admin_rates_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletRateUpsert"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WalletAdminRateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/wallet/admin/rates/recompute":{"post":{"tags":["wallet"],"summary":"Recompute Rates","operationId":"recompute_rates_api_v1_wallet_admin_rates_recompute_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_RatesRecomputeResponse_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/wallet/admin/topups/manual":{"post":{"tags":["wallet"],"summary":"Credit Manual Topup","description":"Credit a wallet for money received outside the platform (bank transfer, cash).","operationId":"credit_manual_topup_api_v1_wallet_admin_topups_manual_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ManualTopUpRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WalletTopUpResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/wallet/admin/adjustments":{"post":{"tags":["wallet"],"summary":"Create Adjustment","operationId":"create_adjustment_api_v1_wallet_admin_adjustments_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WalletAdjustmentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WalletTransactionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/wallet/admin/{organization_id}/overview":{"get":{"tags":["wallet"],"summary":"Admin Wallet Overview","operationId":"admin_wallet_overview_api_v1_wallet_admin__organization_id__overview_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WalletBalanceResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations":{"get":{"tags":["integrations"],"summary":"List Integrations","operationId":"list_integrations_api_v1_integrations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_IntegrationCatalogItem__"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/integrations/bitrix24":{"get":{"tags":["integrations"],"summary":"Get Bitrix24","operationId":"get_bitrix24_api_v1_integrations_bitrix24_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_Bitrix24StatusResponse_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/integrations/bitrix24/crm/webhook":{"put":{"tags":["integrations"],"summary":"Save Crm Webhook","operationId":"save_crm_webhook_api_v1_integrations_bitrix24_crm_webhook_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveCrmWebhookRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_Bitrix24StatusResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["integrations"],"summary":"Clear Crm Webhook","operationId":"clear_crm_webhook_api_v1_integrations_bitrix24_crm_webhook_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_Bitrix24StatusResponse_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/integrations/bitrix24/crm/test":{"post":{"tags":["integrations"],"summary":"Test Crm","operationId":"test_crm_api_v1_integrations_bitrix24_crm_test_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_TestConnectionResponse_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/integrations/bitrix24/crm/fetch-contacts":{"post":{"tags":["integrations"],"summary":"Fetch Crm Contacts","operationId":"fetch_crm_contacts_api_v1_integrations_bitrix24_crm_fetch_contacts_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_FetchContactsResponse_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/integrations/bitrix24/crm/pipelines":{"get":{"tags":["integrations"],"summary":"List Crm Pipelines","operationId":"list_crm_pipelines_api_v1_integrations_bitrix24_crm_pipelines_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_Bitrix24Pipeline__"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/integrations/bitrix24/crm/deals":{"get":{"tags":["integrations"],"summary":"List Crm Deals","operationId":"list_crm_deals_api_v1_integrations_bitrix24_crm_deals_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"pipeline_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Id"}},{"name":"contact_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_Bitrix24DealSummary__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/bitrix24/contacts/{contact_id}/links":{"get":{"tags":["integrations"],"summary":"Get Contact Bitrix Links","operationId":"get_contact_bitrix_links_api_v1_integrations_bitrix24_contacts__contact_id__links_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ContactBitrixLinksResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/bitrix24/contacts/{contact_id}/link":{"put":{"tags":["integrations"],"summary":"Set Contact Bitrix Link","operationId":"set_contact_bitrix_link_api_v1_integrations_bitrix24_contacts__contact_id__link_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BitrixContactLinkRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ContactBitrixLinksResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/bitrix24/openlines/credentials":{"put":{"tags":["integrations"],"summary":"Save Openlines Credentials","operationId":"save_openlines_credentials_api_v1_integrations_bitrix24_openlines_credentials_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SaveOpenlinesCredentialsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_Bitrix24StatusResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/integrations/bitrix24/openlines/register-connector":{"post":{"tags":["integrations"],"summary":"Register Openlines Connector","operationId":"register_openlines_connector_api_v1_integrations_bitrix24_openlines_register_connector_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_Bitrix24StatusResponse_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/integrations/bitrix24/openlines/disconnect":{"post":{"tags":["integrations"],"summary":"Disconnect Openlines","operationId":"disconnect_openlines_api_v1_integrations_bitrix24_openlines_disconnect_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_Bitrix24StatusResponse_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/integrations/bitrix24/settings":{"patch":{"tags":["integrations"],"summary":"Patch Bitrix24 Settings","operationId":"patch_bitrix24_settings_api_v1_integrations_bitrix24_settings_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PatchBitrix24SettingsRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_Bitrix24StatusResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/integrations/bitrix24/crm/fields":{"get":{"tags":["integrations"],"summary":"List Crm Fields","operationId":"list_crm_fields_api_v1_integrations_bitrix24_crm_fields_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_Bitrix24FieldCatalogResponse_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/integrations/bitrix24/crm/users":{"get":{"tags":["integrations"],"summary":"List Crm Users","operationId":"list_crm_users_api_v1_integrations_bitrix24_crm_users_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_Bitrix24CrmUsersResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/bitrix24/contacts/{contact_id}/custom-fields":{"get":{"tags":["integrations"],"summary":"Get Contact Custom Fields","operationId":"get_contact_custom_fields_api_v1_integrations_bitrix24_contacts__contact_id__custom_fields_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_Bitrix24CustomFieldsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["integrations"],"summary":"Update Contact Custom Field","operationId":"update_contact_custom_field_api_v1_integrations_bitrix24_contacts__contact_id__custom_fields_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBitrix24FieldRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_Bitrix24CustomFieldsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/bitrix24/contacts/{contact_id}/deals/{deal_id}/custom-fields":{"get":{"tags":["integrations"],"summary":"Get Deal Custom Fields","operationId":"get_deal_custom_fields_api_v1_integrations_bitrix24_contacts__contact_id__deals__deal_id__custom_fields_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_Bitrix24CustomFieldsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["integrations"],"summary":"Update Deal Custom Field","operationId":"update_deal_custom_field_api_v1_integrations_bitrix24_contacts__contact_id__deals__deal_id__custom_fields_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"deal_id","in":"path","required":true,"schema":{"type":"string","title":"Deal Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBitrix24FieldRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_Bitrix24CustomFieldsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/bitrix24/deals":{"post":{"tags":["integrations"],"summary":"Create Bitrix Deal","operationId":"create_bitrix_deal_api_v1_integrations_bitrix24_deals_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDealRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/integrations/bitrix24/contacts/{contact_id}/sync":{"post":{"tags":["integrations"],"summary":"Sync Bitrix Contact","operationId":"sync_bitrix_contact_api_v1_integrations_bitrix24_contacts__contact_id__sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/integrations/bitrix24/sync-jobs":{"get":{"tags":["integrations"],"summary":"List Sync Jobs","operationId":"list_sync_jobs_api_v1_integrations_bitrix24_sync_jobs_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_IntegrationSyncJobResponse__"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/overview":{"get":{"tags":["admin"],"summary":"Admin Overview","operationId":"admin_overview_api_v1_admin_overview_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_AdminOverviewResponse_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/organizations":{"get":{"tags":["admin"],"summary":"Admin List Organizations","operationId":"admin_list_organizations_api_v1_admin_organizations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_AdminOrganizationListItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/organizations/{organization_id}":{"get":{"tags":["admin"],"summary":"Admin Get Organization","operationId":"admin_get_organization_api_v1_admin_organizations__organization_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_AdminOrganizationDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["admin"],"summary":"Admin Delete Organization","operationId":"admin_delete_organization_api_v1_admin_organizations__organization_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"organization_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Organization Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/admin/system-health":{"get":{"tags":["admin"],"summary":"Admin System Health","operationId":"admin_system_health_api_v1_admin_system_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_SystemHealthResponse_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/analytics/channels":{"get":{"tags":["admin"],"summary":"Admin Channel Analytics","operationId":"admin_channel_analytics_api_v1_admin_analytics_channels_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_ChannelUsageStat__"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/admin/whatsapp/attach-credit-lines":{"post":{"tags":["admin"],"summary":"Admin Attach Credit Lines","description":"Share Truechat's Meta credit line onto every pending WhatsApp account.","operationId":"admin_attach_credit_lines_api_v1_admin_whatsapp_attach_credit_lines_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_str__Union_int__bool___"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/users/me":{"get":{"tags":["users"],"summary":"Get Me","operationId":"get_me_api_v1_users_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserMeResponse"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["users"],"summary":"Delete Me","operationId":"delete_me_api_v1_users_me_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAccountRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["users"],"summary":"Update Me","operationId":"update_me_api_v1_users_me_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateProfileRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserMeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/users/me/avatar":{"get":{"tags":["users"],"summary":"Get My Avatar","operationId":"get_my_avatar_api_v1_users_me_avatar_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["users"],"summary":"Upload My Avatar","operationId":"upload_my_avatar_api_v1_users_me_avatar_post","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_my_avatar_api_v1_users_me_avatar_post"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserMeResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["users"],"summary":"Delete My Avatar","operationId":"delete_my_avatar_api_v1_users_me_avatar_delete","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserMeResponse"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/users/{user_id}/avatar":{"get":{"tags":["users"],"summary":"Get User Avatar","operationId":"get_user_avatar_api_v1_users__user_id__avatar_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/users/me/change-password":{"post":{"tags":["users"],"summary":"Change Password","operationId":"change_password_api_v1_users_me_change_password_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangePasswordRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/organizations":{"get":{"tags":["organizations"],"summary":"List My Workspaces","operationId":"list_my_workspaces_api_v1_organizations_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_WorkspaceOption__"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["organizations"],"summary":"Create Workspace","operationId":"create_workspace_api_v1_organizations_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationCreateRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/organizations/me":{"get":{"tags":["organizations"],"summary":"Get My Organization","operationId":"get_my_organization_api_v1_organizations_me_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationResponse"}}}}},"security":[{"HTTPBearer":[]}]},"delete":{"tags":["organizations"],"summary":"Delete My Workspace","operationId":"delete_my_workspace_api_v1_organizations_me_delete","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationDeleteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/organizations/settings":{"get":{"tags":["organizations"],"summary":"Get Settings","operationId":"get_settings_api_v1_organizations_settings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_OrganizationSettingsResponse_"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["organizations"],"summary":"Update Settings","operationId":"update_settings_api_v1_organizations_settings_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationSettingsUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_OrganizationSettingsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/memberships/permissions/catalog":{"get":{"tags":["memberships"],"summary":"List Permission Catalog","operationId":"list_permission_catalog_api_v1_memberships_permissions_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_PermissionCatalogItem__"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/memberships/{membership_id}/permissions":{"get":{"tags":["memberships"],"summary":"Get Membership Permissions","operationId":"get_membership_permissions_api_v1_memberships__membership_id__permissions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_MembershipPermissionsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["memberships"],"summary":"Update Membership Permissions","operationId":"update_membership_permissions_api_v1_memberships__membership_id__permissions_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"membership_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Membership Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipPermissionsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_MembershipPermissionsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memberships":{"get":{"tags":["memberships"],"summary":"List Memberships","operationId":"list_memberships_api_v1_memberships_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_MembershipResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memberships/available":{"get":{"tags":["memberships"],"summary":"List Available Agents","operationId":"list_available_agents_api_v1_memberships_available_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_MembershipResponse__"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/memberships/{user_id}":{"delete":{"tags":["memberships"],"summary":"Remove Agent","operationId":"remove_agent_api_v1_memberships__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memberships/me/availability":{"get":{"tags":["memberships"],"summary":"My Availability","operationId":"my_availability_api_v1_memberships_me_availability_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_MembershipAvailabilityResponse_"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["memberships"],"summary":"Update My Availability","operationId":"update_my_availability_api_v1_memberships_me_availability_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipAvailabilityUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_MembershipAvailabilityResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/memberships/me/clock-in":{"post":{"tags":["memberships"],"summary":"Clock In","operationId":"clock_in_api_v1_memberships_me_clock_in_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_MembershipAvailabilityResponse_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/memberships/me/clock-out":{"post":{"tags":["memberships"],"summary":"Clock Out","operationId":"clock_out_api_v1_memberships_me_clock_out_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_MembershipAvailabilityResponse_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/memberships/me/break":{"post":{"tags":["memberships"],"summary":"Start Break","operationId":"start_break_api_v1_memberships_me_break_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipBreakStart"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_MembershipAvailabilityResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/memberships/me/end-break":{"post":{"tags":["memberships"],"summary":"End Break","operationId":"end_break_api_v1_memberships_me_end_break_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_MembershipAvailabilityResponse_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/memberships/{user_id}/capacity":{"patch":{"tags":["memberships"],"summary":"Update Member Capacity","operationId":"update_member_capacity_api_v1_memberships__user_id__capacity_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipCapacityUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_MembershipResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/memberships/invite":{"post":{"tags":["memberships"],"summary":"Invite Member","operationId":"invite_member_api_v1_memberships_invite_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipInviteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_MembershipInviteResult_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/memberships/{user_id}/role":{"patch":{"tags":["memberships"],"summary":"Update Member Role","operationId":"update_member_role_api_v1_memberships__user_id__role_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipRoleUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_MembershipResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/roles":{"get":{"tags":["roles"],"summary":"List Roles","operationId":"list_roles_api_v1_roles_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_RolePermissionsResponse__"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/roles/{role}":{"get":{"tags":["roles"],"summary":"Get Role","operationId":"get_role_api_v1_roles__role__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"role","in":"path","required":true,"schema":{"type":"string","title":"Role"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_RolePermissionsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/roles/{role}/permissions":{"put":{"tags":["roles"],"summary":"Update Role Permissions","operationId":"update_role_permissions_api_v1_roles__role__permissions_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"role","in":"path","required":true,"schema":{"type":"string","title":"Role"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RolePermissionsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_RolePermissionsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/permissions/catalog":{"get":{"tags":["permissions"],"summary":"List Permission Catalog","operationId":"list_permission_catalog_api_v1_permissions_catalog_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_PermissionCatalogItem__"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/api-keys":{"post":{"tags":["api-keys"],"summary":"Create Api Key","operationId":"create_api_key_api_v1_api_keys_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIKeyCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_APIKeyCreateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["api-keys"],"summary":"List Api Keys","operationId":"list_api_keys_api_v1_api_keys_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_APIKeyResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/api-keys/{api_key_id}":{"delete":{"tags":["api-keys"],"summary":"Revoke Api Key","operationId":"revoke_api_key_api_v1_api_keys__api_key_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"api_key_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Api Key Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_APIKeyResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbound-webhooks":{"post":{"tags":["inbound-webhooks"],"summary":"Create Inbound Webhook","operationId":"create_inbound_webhook_api_v1_inbound_webhooks_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboundWebhookCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_InboundWebhookCreateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["inbound-webhooks"],"summary":"List Inbound Webhooks","operationId":"list_inbound_webhooks_api_v1_inbound_webhooks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_InboundWebhookResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbound-webhooks/{webhook_id}/rotate":{"post":{"tags":["inbound-webhooks"],"summary":"Rotate Inbound Webhook","operationId":"rotate_inbound_webhook_api_v1_inbound_webhooks__webhook_id__rotate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_InboundWebhookRotateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbound-webhooks/{webhook_id}":{"delete":{"tags":["inbound-webhooks"],"summary":"Revoke Inbound Webhook","operationId":"revoke_inbound_webhook_api_v1_inbound_webhooks__webhook_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_InboundWebhookResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/hooks/{token}":{"post":{"tags":["hooks"],"summary":"Inbound Hook","operationId":"inbound_hook_api_v1_hooks__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"method","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["hooks"],"summary":"Inbound Hook","operationId":"inbound_hook_api_v1_hooks__token__post","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}},{"name":"method","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/audit-logs":{"get":{"tags":["audit-logs"],"summary":"List Audit Logs","operationId":"list_audit_logs_api_v1_audit_logs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"actions","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"description":"Comma-separated actions; a trailing * matches a prefix (e.g. auth.*).","title":"Actions"},"description":"Comma-separated actions; a trailing * matches a prefix (e.g. auth.*)."},{"name":"user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_AuditLogResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations":{"get":{"tags":["conversations"],"summary":"List Conversations","operationId":"list_conversations_api_v1_conversations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_ConversationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/{conversation_id}":{"get":{"tags":["conversations"],"summary":"Get Conversation","operationId":"get_conversation_api_v1_conversations__conversation_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversations/{conversation_id}/messages":{"get":{"tags":["conversations"],"summary":"List Conversation Messages","operationId":"list_conversation_messages_api_v1_conversations__conversation_id__messages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_MessageResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbox/unread-count":{"get":{"tags":["inbox"],"summary":"Get Inbox Unread Count","operationId":"get_inbox_unread_count_api_v1_inbox_unread_count_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_str__int__"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/inbox/conversations":{"get":{"tags":["inbox"],"summary":"List Inbox Conversations","operationId":"list_inbox_conversations_api_v1_inbox_conversations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Id"}},{"name":"channel_account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Account Id"}},{"name":"channel_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ChannelType"},{"type":"null"}],"title":"Channel Type"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}],"title":"Q"}},{"name":"bitrix_contact_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"description":"Exact Bitrix contact id (digits).","title":"Bitrix Contact Id"},"description":"Exact Bitrix contact id (digits)."},{"name":"deal_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"description":"Exact Bitrix deal id (digits).","title":"Deal Id"},"description":"Exact Bitrix deal id (digits)."},{"name":"bitrix_assigned_by_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"description":"Exact Bitrix deal assignee user id (digits).","title":"Bitrix Assigned By Id"},"description":"Exact Bitrix deal assignee user id (digits)."},{"name":"assigned_user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned User Id"}},{"name":"unassigned","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unassigned"}},{"name":"stage_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Stage Id"}},{"name":"unstaged","in":"query","required":false,"schema":{"type":"boolean","description":"Only conversations without a stage.","default":false,"title":"Unstaged"},"description":"Only conversations without a stage."},{"name":"board","in":"query","required":false,"schema":{"type":"boolean","description":"Kanban board view: hide archived and spam conversations.","default":false,"title":"Board"},"description":"Kanban board view: hide archived and spam conversations."},{"name":"assigned_team_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned Team Id"}},{"name":"tag_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tag Id"}},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ConversationPriority"},{"type":"null"}],"title":"Priority"}},{"name":"conversation_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ConversationType"},{"type":"null"}],"title":"Conversation Type"}},{"name":"unread","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"True = unread_count > 0; False = unread_count == 0.","title":"Unread"},"description":"True = unread_count > 0; False = unread_count == 0."},{"name":"created_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created After"}},{"name":"created_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created Before"}},{"name":"last_message_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message After"}},{"name":"last_message_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message Before"}},{"name":"awaiting_reply","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"description":"customer = a human agent spoke last; agent = the customer spoke last; template = a template was sent and the customer has not replied.","title":"Awaiting Reply"},"description":"customer = a human agent spoke last; agent = the customer spoke last; template = a template was sent and the customer has not replied."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_InboxConversationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbox/search/messages":{"get":{"tags":["inbox"],"summary":"Search Inbox Messages Globally","operationId":"search_inbox_messages_globally_api_v1_inbox_search_messages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"title":"Q"}},{"name":"assigned_user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned User Id"}},{"name":"unassigned","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unassigned"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_InboxGlobalMessageSearchHit_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbox/conversations/bulk":{"post":{"tags":["inbox"],"summary":"Bulk Update Inbox Conversations","operationId":"bulk_update_inbox_conversations_api_v1_inbox_conversations_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxBulkConversationUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_InboxBulkActionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/inbox/conversations/{conversation_id}":{"get":{"tags":["inbox"],"summary":"Get Inbox Conversation","operationId":"get_inbox_conversation_api_v1_inbox_conversations__conversation_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxConversationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["inbox"],"summary":"Update Inbox Conversation","operationId":"update_inbox_conversation_api_v1_inbox_conversations__conversation_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxConversationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxConversationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbox/conversations/{conversation_id}/comment-context":{"get":{"tags":["inbox"],"summary":"Get Comment Context","operationId":"get_comment_context_api_v1_inbox_conversations__conversation_id__comment_context_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentContextResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbox/conversations/{conversation_id}/read":{"post":{"tags":["inbox"],"summary":"Mark Inbox Conversation Read","operationId":"mark_inbox_conversation_read_api_v1_inbox_conversations__conversation_id__read_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbox/conversations/{conversation_id}/comments/private-reply":{"post":{"tags":["inbox"],"summary":"Private Reply To Comment","operationId":"private_reply_to_comment_api_v1_inbox_conversations__conversation_id__comments_private_reply_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentPrivateReplyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbox/conversations/{conversation_id}/comments/hide":{"post":{"tags":["inbox"],"summary":"Hide Comment","operationId":"hide_comment_api_v1_inbox_conversations__conversation_id__comments_hide_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentModerationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbox/conversations/{conversation_id}/comments/delete":{"post":{"tags":["inbox"],"summary":"Delete Comment","operationId":"delete_comment_api_v1_inbox_conversations__conversation_id__comments_delete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentModerationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbox/conversations/{conversation_id}/intervene":{"post":{"tags":["inbox"],"summary":"Intervene Inbox Conversation","operationId":"intervene_inbox_conversation_api_v1_inbox_conversations__conversation_id__intervene_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxInterveneRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxConversationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbox/conversations/{conversation_id}/owner":{"patch":{"tags":["inbox"],"summary":"Transfer Inbox Conversation Owner","operationId":"transfer_inbox_conversation_owner_api_v1_inbox_conversations__conversation_id__owner_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxTransferOwnerRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxConversationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbox/conversations/{conversation_id}/messages":{"get":{"tags":["inbox"],"summary":"List Inbox Conversation Messages","operationId":"list_inbox_conversation_messages_api_v1_inbox_conversations__conversation_id__messages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_InboxMessageResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbox/conversations/{conversation_id}/messages/search":{"get":{"tags":["inbox"],"summary":"Search Inbox Messages","operationId":"search_inbox_messages_api_v1_inbox_conversations__conversation_id__messages_search_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_InboxMessageResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbox/conversations/{conversation_id}/media":{"get":{"tags":["inbox"],"summary":"List Conversation Media","operationId":"list_conversation_media_api_v1_inbox_conversations__conversation_id__media_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"tab","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(images|videos|documents)$"},{"type":"null"}],"title":"Tab"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_ConversationMediaItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbox/media/upload":{"post":{"tags":["inbox"],"summary":"Upload Inbox Media","operationId":"upload_inbox_media_api_v1_inbox_media_upload_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_inbox_media_api_v1_inbox_media_upload_post"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_MediaUploadResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbox/media/{asset_id}/url":{"get":{"tags":["inbox"],"summary":"Get Media Signed Url","operationId":"get_media_signed_url_api_v1_inbox_media__asset_id__url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"asset_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Asset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_str__str__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbox/whatsapp/templates":{"get":{"tags":["inbox"],"summary":"List Whatsapp Templates","operationId":"list_whatsapp_templates_api_v1_inbox_whatsapp_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_WhatsAppTemplateResponse__"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/inbox/conversations/{conversation_id}/notes":{"post":{"tags":["inbox"],"summary":"Add Internal Note","operationId":"add_internal_note_api_v1_inbox_conversations__conversation_id__notes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxInternalNoteRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_InboxMessageResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbox/messages/send":{"post":{"tags":["inbox"],"summary":"Send Inbox Message","operationId":"send_inbox_message_api_v1_inbox_messages_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxSendMessageRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_InboxMessageResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/inbox/messages/send-template":{"post":{"tags":["inbox"],"summary":"Send Inbox Template","operationId":"send_inbox_template_api_v1_inbox_messages_send_template_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxSendTemplateRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_InboxMessageResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/inbox/messages/send-template-bulk":{"post":{"tags":["inbox"],"summary":"Send Inbox Template Bulk","operationId":"send_inbox_template_bulk_api_v1_inbox_messages_send_template_bulk_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxBulkSendTemplateRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_InboxBulkSendTemplateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/inbox/messages/{message_id}/retry":{"post":{"tags":["inbox"],"summary":"Retry Inbox Message","operationId":"retry_inbox_message_api_v1_inbox_messages__message_id__retry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Message Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_InboxMessageResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbox/conversations/{conversation_id}/participants":{"get":{"tags":["inbox"],"summary":"List Conversation Participants","operationId":"list_conversation_participants_api_v1_inbox_conversations__conversation_id__participants_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_ConversationParticipantResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["inbox"],"summary":"Add Conversation Participant","operationId":"add_conversation_participant_api_v1_inbox_conversations__conversation_id__participants_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationParticipantCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ConversationParticipantResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbox/conversations/{conversation_id}/participants/{user_id}":{"delete":{"tags":["inbox"],"summary":"Remove Conversation Participant","operationId":"remove_conversation_participant_api_v1_inbox_conversations__conversation_id__participants__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbox/conversations/{conversation_id}/tags":{"get":{"tags":["inbox"],"summary":"List Inbox Conversation Tags","operationId":"list_inbox_conversation_tags_api_v1_inbox_conversations__conversation_id__tags_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_ConversationTagResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["inbox"],"summary":"Assign Inbox Conversation Tag","operationId":"assign_inbox_conversation_tag_api_v1_inbox_conversations__conversation_id__tags_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationTagAssignRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ConversationTagResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbox/conversations/{conversation_id}/tags/{tag_id}":{"delete":{"tags":["inbox"],"summary":"Remove Inbox Conversation Tag","operationId":"remove_inbox_conversation_tag_api_v1_inbox_conversations__conversation_id__tags__tag_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}},{"name":"tag_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inbox/saved-filters":{"get":{"tags":["inbox"],"summary":"List Saved Filters","operationId":"list_saved_filters_api_v1_inbox_saved_filters_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_InboxSavedFilterResponse__"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["inbox"],"summary":"Create Saved Filter","operationId":"create_saved_filter_api_v1_inbox_saved_filters_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxSavedFilterCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_InboxSavedFilterResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/inbox/saved-filters/{saved_filter_id}":{"patch":{"tags":["inbox"],"summary":"Update Saved Filter","operationId":"update_saved_filter_api_v1_inbox_saved_filters__saved_filter_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"saved_filter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Saved Filter Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboxSavedFilterUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_InboxSavedFilterResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["inbox"],"summary":"Delete Saved Filter","operationId":"delete_saved_filter_api_v1_inbox_saved_filters__saved_filter_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"saved_filter_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Saved Filter Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications":{"get":{"tags":["notifications"],"summary":"List Notifications","operationId":"list_notifications_api_v1_notifications_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"unread","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Unread"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_NotificationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/unread-count":{"get":{"tags":["notifications"],"summary":"Get Unread Count","operationId":"get_unread_count_api_v1_notifications_unread_count_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_NotificationUnreadCount_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/notifications/read-all":{"post":{"tags":["notifications"],"summary":"Mark All Read","operationId":"mark_all_read_api_v1_notifications_read_all_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/notifications/preferences":{"get":{"tags":["notifications"],"summary":"Get Preferences","operationId":"get_preferences_api_v1_notifications_preferences_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_NotificationPreferencesResponse_"}}}}},"security":[{"HTTPBearer":[]}]},"put":{"tags":["notifications"],"summary":"Update Preferences","operationId":"update_preferences_api_v1_notifications_preferences_put","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPreferencesUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_NotificationPreferencesResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/notifications/devices":{"get":{"tags":["notifications"],"summary":"List Devices","operationId":"list_devices_api_v1_notifications_devices_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_PushDeviceResponse__"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["notifications"],"summary":"Register Device","operationId":"register_device_api_v1_notifications_devices_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushDeviceRegisterRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_PushDeviceResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/notifications/devices/unregister":{"post":{"tags":["notifications"],"summary":"Unregister Device By Token","operationId":"unregister_device_by_token_api_v1_notifications_devices_unregister_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushDeviceUnregisterRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_PushDeviceResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/notifications/devices/{device_id}":{"delete":{"tags":["notifications"],"summary":"Disable Device","operationId":"disable_device_api_v1_notifications_devices__device_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Device Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_PushDeviceResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/conversations/{conversation_id}/read":{"post":{"tags":["notifications"],"summary":"Mark Conversation Notifications Read","operationId":"mark_conversation_notifications_read_api_v1_notifications_conversations__conversation_id__read_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/notifications/{notification_id}/read":{"post":{"tags":["notifications"],"summary":"Mark Notification Read","operationId":"mark_notification_read_api_v1_notifications__notification_id__read_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"notification_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Notification Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_NotificationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/contacts":{"get":{"tags":["contacts"],"summary":"List Contacts","operationId":"list_contacts_api_v1_contacts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Id"}},{"name":"label_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Label Id"}},{"name":"tag_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tag Id"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}],"title":"Q"}},{"name":"assigned_user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned User Id"}},{"name":"unassigned","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unassigned"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_ContactListItemResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["contacts"],"summary":"Create Contact","operationId":"create_contact_api_v1_contacts_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/contacts/labels":{"get":{"tags":["contacts"],"summary":"List Contact Labels","operationId":"list_contact_labels_api_v1_contacts_labels_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_ContactLabelResponse__"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["contacts"],"summary":"Create Contact Label","operationId":"create_contact_label_api_v1_contacts_labels_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactLabelCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ContactLabelResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/contacts/labels/{label_id}":{"patch":{"tags":["contacts"],"summary":"Update Contact Label","operationId":"update_contact_label_api_v1_contacts_labels__label_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"label_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Label Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactLabelUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ContactLabelResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["contacts"],"summary":"Delete Contact Label","operationId":"delete_contact_label_api_v1_contacts_labels__label_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"label_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Label Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/contacts/{contact_id}":{"get":{"tags":["contacts"],"summary":"Get Contact","operationId":"get_contact_api_v1_contacts__contact_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["contacts"],"summary":"Update Contact","operationId":"update_contact_api_v1_contacts__contact_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/contacts/{contact_id}/assign":{"post":{"tags":["contacts"],"summary":"Assign Contact","operationId":"assign_contact_api_v1_contacts__contact_id__assign_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactAssignRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/contacts/{contact_id}/messaging-options":{"get":{"tags":["contacts"],"summary":"List Contact Messaging Options","operationId":"list_contact_messaging_options_api_v1_contacts__contact_id__messaging_options_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ContactMessagingOptionsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/contacts/{contact_id}/conversations":{"post":{"tags":["contacts"],"summary":"Start Contact Conversation","operationId":"start_contact_conversation_api_v1_contacts__contact_id__conversations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartContactConversationRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_InboxConversationResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["contacts"],"summary":"List Contact Conversations","operationId":"list_contact_conversations_api_v1_contacts__contact_id__conversations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_InboxConversationResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/contacts/{contact_id}/activity":{"get":{"tags":["contacts"],"summary":"List Contact Activity","operationId":"list_contact_activity_api_v1_contacts__contact_id__activity_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_ContactActivityItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/contacts/{contact_id}/tags/{label_id}":{"post":{"tags":["contacts"],"summary":"Assign Contact Label","operationId":"assign_contact_label_api_v1_contacts__contact_id__tags__label_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"label_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Label Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ContactLabelResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["contacts"],"summary":"Remove Contact Label","operationId":"remove_contact_label_api_v1_contacts__contact_id__tags__label_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"label_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Label Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/contacts/{contact_id}/labels/{label_id}":{"post":{"tags":["contacts"],"summary":"Assign Contact Label","operationId":"assign_contact_label_api_v1_contacts__contact_id__labels__label_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"label_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Label Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ContactLabelResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["contacts"],"summary":"Remove Contact Label","operationId":"remove_contact_label_api_v1_contacts__contact_id__labels__label_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"label_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Label Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/contacts/{contact_id}/notes":{"post":{"tags":["contacts"],"summary":"Add Contact Note","operationId":"add_contact_note_api_v1_contacts__contact_id__notes_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactNoteCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ContactNoteResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/contacts/{contact_id}/notes/{note_id}":{"patch":{"tags":["contacts"],"summary":"Update Contact Note","operationId":"update_contact_note_api_v1_contacts__contact_id__notes__note_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactNoteUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ContactNoteResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["contacts"],"summary":"Delete Contact Note","operationId":"delete_contact_note_api_v1_contacts__contact_id__notes__note_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}},{"name":"note_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Note Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/custom-fields":{"get":{"tags":["custom-fields"],"summary":"List Custom Fields","operationId":"list_custom_fields_api_v1_custom_fields_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"entity","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/CustomFieldEntity"},{"type":"null"}],"title":"Entity"}},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_CustomFieldDefinitionResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["custom-fields"],"summary":"Create Custom Field","operationId":"create_custom_field_api_v1_custom_fields_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldDefinitionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_CustomFieldDefinitionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/custom-fields/{field_id}":{"patch":{"tags":["custom-fields"],"summary":"Update Custom Field","operationId":"update_custom_field_api_v1_custom_fields__field_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"field_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Field Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldDefinitionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_CustomFieldDefinitionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/custom-fields/reorder":{"post":{"tags":["custom-fields"],"summary":"Reorder Custom Fields","operationId":"reorder_custom_fields_api_v1_custom_fields_reorder_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldReorderRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_CustomFieldDefinitionResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/custom-fields/contacts/{contact_id}":{"get":{"tags":["custom-fields"],"summary":"Get Contact Custom Fields","operationId":"get_contact_custom_fields_api_v1_custom_fields_contacts__contact_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_CustomFieldValuesResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["custom-fields"],"summary":"Update Contact Custom Fields","operationId":"update_contact_custom_fields_api_v1_custom_fields_contacts__contact_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"contact_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Contact Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldValuesUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_CustomFieldValuesResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/custom-fields/conversations/{conversation_id}":{"get":{"tags":["custom-fields"],"summary":"Get Conversation Custom Fields","operationId":"get_conversation_custom_fields_api_v1_custom_fields_conversations__conversation_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_CustomFieldValuesResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["custom-fields"],"summary":"Update Conversation Custom Fields","operationId":"update_conversation_custom_fields_api_v1_custom_fields_conversations__conversation_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomFieldValuesUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_CustomFieldValuesResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/conversation-tags":{"get":{"tags":["conversation-tags"],"summary":"List Conversation Tags","operationId":"list_conversation_tags_api_v1_conversation_tags_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_ConversationTagResponse__"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["conversation-tags"],"summary":"Create Conversation Tag","operationId":"create_conversation_tag_api_v1_conversation_tags_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationTagCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ConversationTagResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/conversation-tags/{tag_id}":{"patch":{"tags":["conversation-tags"],"summary":"Update Conversation Tag","operationId":"update_conversation_tag_api_v1_conversation_tags__tag_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tag_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationTagUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ConversationTagResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["conversation-tags"],"summary":"Delete Conversation Tag","operationId":"delete_conversation_tag_api_v1_conversation_tags__tag_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tag_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tags":{"get":{"tags":["tags"],"summary":"List Tags","operationId":"list_tags_api_v1_tags_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_ContactLabelResponse__"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["tags"],"summary":"Create Tag","operationId":"create_tag_api_v1_tags_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactLabelCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ContactLabelResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/tags/{tag_id}":{"patch":{"tags":["tags"],"summary":"Update Tag","operationId":"update_tag_api_v1_tags__tag_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tag_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactLabelUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ContactLabelResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["tags"],"summary":"Delete Tag","operationId":"delete_tag_api_v1_tags__tag_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"tag_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Tag Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sender-identity-mappings":{"get":{"tags":["sender-identity-mappings"],"summary":"List Sender Identity Mappings","operationId":"list_sender_identity_mappings_api_v1_sender_identity_mappings_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_SenderIdentityMappingResponse__"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["sender-identity-mappings"],"summary":"Create Sender Identity Mapping","operationId":"create_sender_identity_mapping_api_v1_sender_identity_mappings_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderIdentityMappingCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_SenderIdentityMappingResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/sender-identity-mappings/unmapped":{"get":{"tags":["sender-identity-mappings"],"summary":"List Unmapped Senders","operationId":"list_unmapped_senders_api_v1_sender_identity_mappings_unmapped_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_UnmappedSenderMessageResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/sender-identity-mappings/{mapping_id}":{"patch":{"tags":["sender-identity-mappings"],"summary":"Update Sender Identity Mapping","operationId":"update_sender_identity_mapping_api_v1_sender_identity_mappings__mapping_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"mapping_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Mapping Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderIdentityMappingUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_SenderIdentityMappingResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["sender-identity-mappings"],"summary":"Delete Sender Identity Mapping","operationId":"delete_sender_identity_mapping_api_v1_sender_identity_mappings__mapping_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"mapping_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Mapping Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/templates":{"get":{"tags":["templates"],"summary":"List Message Templates","description":"List WhatsApp/Messenger templates in the agent-app card format.","operationId":"list_message_templates_api_v1_templates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"search","in":"query","required":false,"schema":{"type":"string","maxLength":200,"default":"","title":"Search"}},{"name":"status","in":"query","required":false,"schema":{"enum":["all","approved","pending","rejected","other"],"type":"string","default":"all","title":"Status"}},{"name":"channel","in":"query","required":false,"schema":{"anyOf":[{"enum":["whatsapp","messenger"],"type":"string"},{"type":"null"}],"title":"Channel"}},{"name":"sort","in":"query","required":false,"schema":{"enum":["updated","name","status"],"type":"string","default":"updated","title":"Sort"}},{"name":"sort_asc","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Sort Asc"}},{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Refresh"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplateCatalogListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/templates/{template_id}":{"get":{"tags":["templates"],"summary":"Get Message Template","description":"Return one template for the agent-app details screen.","operationId":"get_message_template_api_v1_templates__template_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"refresh","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Refresh"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_TemplateCatalogItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/teams":{"get":{"tags":["teams"],"summary":"List Teams","operationId":"list_teams_api_v1_teams_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_TeamResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["teams"],"summary":"Create Team","operationId":"create_team_api_v1_teams_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_TeamResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/teams/{team_id}":{"get":{"tags":["teams"],"summary":"Get Team","operationId":"get_team_api_v1_teams__team_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_TeamResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["teams"],"summary":"Update Team","operationId":"update_team_api_v1_teams__team_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_TeamResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["teams"],"summary":"Delete Team","operationId":"delete_team_api_v1_teams__team_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Team Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/teams/{team_id}/members":{"post":{"tags":["teams"],"summary":"Add Team Member","operationId":"add_team_member_api_v1_teams__team_id__members_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamMemberCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_TeamMembershipResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/teams/{team_id}/members/{user_id}":{"delete":{"tags":["teams"],"summary":"Remove Team Member","operationId":"remove_team_member_api_v1_teams__team_id__members__user_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Team Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"User Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/teams/{team_id}/channel-accounts":{"get":{"tags":["teams"],"summary":"List Team Channel Accounts","operationId":"list_team_channel_accounts_api_v1_teams__team_id__channel_accounts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Team Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_TeamChannelAccountSummary__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["teams"],"summary":"Set Team Channel Accounts","operationId":"set_team_channel_accounts_api_v1_teams__team_id__channel_accounts_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"team_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Team Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TeamChannelAccountsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_TeamResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stages":{"get":{"tags":["stages"],"summary":"List Stages","operationId":"list_stages_api_v1_stages_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_StageResponse__"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["stages"],"summary":"Create Stage","operationId":"create_stage_api_v1_stages_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_StageResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/stages/board-summary":{"get":{"tags":["stages"],"summary":"Board Summary","operationId":"board_summary_api_v1_stages_board_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Id"}},{"name":"channel_account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Account Id"}},{"name":"channel_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ChannelType"},{"type":"null"}],"title":"Channel Type"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}],"title":"Q"}},{"name":"bitrix_contact_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Bitrix Contact Id"}},{"name":"deal_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Deal Id"}},{"name":"bitrix_assigned_by_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Bitrix Assigned By Id"}},{"name":"assigned_user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned User Id"}},{"name":"unassigned","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Unassigned"}},{"name":"assigned_team_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned Team Id"}},{"name":"tag_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Tag Id"}},{"name":"priority","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ConversationPriority"},{"type":"null"}],"title":"Priority"}},{"name":"conversation_type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/ConversationType"},{"type":"null"}],"title":"Conversation Type"}},{"name":"unread","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Unread"}},{"name":"created_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created After"}},{"name":"created_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created Before"}},{"name":"last_message_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message After"}},{"name":"last_message_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message Before"}},{"name":"awaiting_reply","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Awaiting Reply"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_StageBoardSummaryItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/stages/reorder":{"post":{"tags":["stages"],"summary":"Reorder Stages","operationId":"reorder_stages_api_v1_stages_reorder_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageReorderRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_StageResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/stages/{stage_id}":{"patch":{"tags":["stages"],"summary":"Update Stage","operationId":"update_stage_api_v1_stages__stage_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Stage Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StageUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_StageResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["stages"],"summary":"Delete Stage","operationId":"delete_stage_api_v1_stages__stage_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"stage_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Stage Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/csat/config":{"get":{"tags":["csat"],"summary":"Get Csat Config","operationId":"get_csat_config_api_v1_csat_config_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_CsatConfigResponse_"}}}}},"security":[{"HTTPBearer":[]}]},"patch":{"tags":["csat"],"summary":"Update Csat Config","operationId":"update_csat_config_api_v1_csat_config_patch","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CsatConfigUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_CsatConfigResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/csat/summary":{"get":{"tags":["csat"],"summary":"Get Csat Summary","operationId":"get_csat_summary_api_v1_csat_summary_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_CsatSummaryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/csat/responses":{"get":{"tags":["csat"],"summary":"List Csat Responses","operationId":"list_csat_responses_api_v1_csat_responses_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"score","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","maximum":5,"minimum":1},{"type":"null"}],"title":"Score"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_CsatResponseItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/csat/responses/{conversation_id}/send":{"post":{"tags":["csat"],"summary":"Send Csat Survey","operationId":"send_csat_survey_api_v1_csat_responses__conversation_id__send_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_CsatResponseItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/dashboard":{"get":{"tags":["reports"],"summary":"Get Dashboard Summary","operationId":"get_dashboard_summary_api_v1_reports_dashboard_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"}},{"name":"channel_account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_DashboardSummaryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/agent-performance":{"get":{"tags":["reports"],"summary":"Get Agent Performance","operationId":"get_agent_performance_api_v1_reports_agent_performance_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_AgentPerformanceItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/transactional":{"get":{"tags":["reports"],"summary":"Get Transactional Report","operationId":"get_transactional_report_api_v1_reports_transactional_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"channel_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Id"}},{"name":"assigned_user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned User Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_TransactionalReportResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/whatsapp-costs":{"get":{"tags":["reports"],"summary":"Get Whatsapp Costs Report","operationId":"get_whatsapp_costs_report_api_v1_reports_whatsapp_costs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"}},{"name":"channel_account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WhatsAppCostsReportResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/whatsapp-charges":{"get":{"tags":["reports"],"summary":"Get Whatsapp Charges Report","operationId":"get_whatsapp_charges_report_api_v1_reports_whatsapp_charges_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_account_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Account Id"}},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WhatsAppChargesResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/messages":{"get":{"tags":["reports"],"summary":"Get Messages Report","operationId":"get_messages_report_api_v1_reports_messages_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date From"}},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Date To"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"channel_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Id"}},{"name":"assigned_user_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned User Id"}},{"name":"sender_group","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"all, customer, agent, or other","title":"Sender Group"},"description":"all, customer, agent, or other"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_MessageReportResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/exports":{"get":{"tags":["reports"],"summary":"List Report Exports","operationId":"list_report_exports_api_v1_reports_exports_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_ReportExportResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["reports"],"summary":"Create Report Export","operationId":"create_report_export_api_v1_reports_exports_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportExportCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ReportExportResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/exports/{export_id}":{"get":{"tags":["reports"],"summary":"Get Report Export","operationId":"get_report_export_api_v1_reports_exports__export_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"export_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Export Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ReportExportResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/reports/exports/{export_id}/download":{"get":{"tags":["reports"],"summary":"Download Report Export","operationId":"download_report_export_api_v1_reports_exports__export_id__download_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"export_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Export Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/segments":{"get":{"tags":["segments"],"summary":"List Segments","operationId":"list_segments_api_v1_segments_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_SegmentResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["segments"],"summary":"Create Segment","operationId":"create_segment_api_v1_segments_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_SegmentResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/segments/{segment_id}":{"get":{"tags":["segments"],"summary":"Get Segment","operationId":"get_segment_api_v1_segments__segment_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"segment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Segment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_SegmentResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["segments"],"summary":"Update Segment","operationId":"update_segment_api_v1_segments__segment_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"segment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Segment Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_SegmentResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["segments"],"summary":"Delete Segment","operationId":"delete_segment_api_v1_segments__segment_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"segment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Segment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/segments/preview":{"post":{"tags":["segments"],"summary":"Preview Segment","operationId":"preview_segment_api_v1_segments_preview_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SegmentPreviewRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_SegmentPreviewResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/segments/{segment_id}/refresh-count":{"post":{"tags":["segments"],"summary":"Refresh Segment Count","operationId":"refresh_segment_count_api_v1_segments__segment_id__refresh_count_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"segment_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Segment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/broadcasts":{"get":{"tags":["broadcasts"],"summary":"List Broadcasts","operationId":"list_broadcasts_api_v1_broadcasts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/BroadcastStatus"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_BroadcastListItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["broadcasts"],"summary":"Create Broadcast","operationId":"create_broadcast_api_v1_broadcasts_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_BroadcastDetailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/broadcasts/preview-audience":{"post":{"tags":["broadcasts"],"summary":"Preview Audience","operationId":"preview_audience_api_v1_broadcasts_preview_audience_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AudiencePreviewRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_SegmentPreviewResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/broadcasts/{broadcast_id}":{"get":{"tags":["broadcasts"],"summary":"Get Broadcast","operationId":"get_broadcast_api_v1_broadcasts__broadcast_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Broadcast Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_BroadcastDetailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["broadcasts"],"summary":"Update Broadcast","operationId":"update_broadcast_api_v1_broadcasts__broadcast_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Broadcast Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_BroadcastDetailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["broadcasts"],"summary":"Delete Broadcast","operationId":"delete_broadcast_api_v1_broadcasts__broadcast_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Broadcast Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/broadcasts/{broadcast_id}/schedule":{"post":{"tags":["broadcasts"],"summary":"Schedule Broadcast","operationId":"schedule_broadcast_api_v1_broadcasts__broadcast_id__schedule_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Broadcast Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastScheduleRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_BroadcastDetailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/broadcasts/{broadcast_id}/action":{"post":{"tags":["broadcasts"],"summary":"Broadcast Action","operationId":"broadcast_action_api_v1_broadcasts__broadcast_id__action_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Broadcast Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastActionRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_BroadcastDetailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/broadcasts/{broadcast_id}/analytics":{"get":{"tags":["broadcasts"],"summary":"Broadcast Analytics","operationId":"broadcast_analytics_api_v1_broadcasts__broadcast_id__analytics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"broadcast_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Broadcast Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_BroadcastAnalyticsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/automations/catalog/triggers":{"get":{"tags":["automations"],"summary":"Catalog Triggers","operationId":"catalog_triggers_api_v1_automations_catalog_triggers_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_str__"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/automations/catalog/conditions":{"get":{"tags":["automations"],"summary":"Catalog Conditions","operationId":"catalog_conditions_api_v1_automations_catalog_conditions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_str__"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/automations/catalog/actions":{"get":{"tags":["automations"],"summary":"Catalog Actions","operationId":"catalog_actions_api_v1_automations_catalog_actions_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_str__"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/automations/templates":{"get":{"tags":["automations"],"summary":"List Templates","operationId":"list_templates_api_v1_automations_templates_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_WorkflowTemplateResponse__"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/automations":{"get":{"tags":["automations"],"summary":"List Automations","operationId":"list_automations_api_v1_automations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/WorkflowStatus"},{"type":"null"}],"title":"Status"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"include_archived","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Archived"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_WorkflowListItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["automations"],"summary":"Create Automation","operationId":"create_automation_api_v1_automations_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WorkflowDetailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/automations/events":{"post":{"tags":["automations"],"summary":"Emit Workflow Event","operationId":"emit_workflow_event_api_v1_automations_events_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowEventEmit"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/automations/executions/{execution_id}":{"get":{"tags":["automations"],"summary":"Get Execution","operationId":"get_execution_api_v1_automations_executions__execution_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"execution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Execution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WorkflowExecutionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/automations/executions/{execution_id}/cancel":{"post":{"tags":["automations"],"summary":"Cancel Execution","operationId":"cancel_execution_api_v1_automations_executions__execution_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"execution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Execution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WorkflowExecutionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/automations/executions/{execution_id}/retry":{"post":{"tags":["automations"],"summary":"Retry Execution","operationId":"retry_execution_api_v1_automations_executions__execution_id__retry_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"execution_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Execution Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WorkflowExecutionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/automations/{workflow_id}":{"get":{"tags":["automations"],"summary":"Get Automation","operationId":"get_automation_api_v1_automations__workflow_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WorkflowDetailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["automations"],"summary":"Update Automation","operationId":"update_automation_api_v1_automations__workflow_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WorkflowDetailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["automations"],"summary":"Delete Automation","operationId":"delete_automation_api_v1_automations__workflow_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/automations/{workflow_id}/graph":{"put":{"tags":["automations"],"summary":"Save Graph","operationId":"save_graph_api_v1_automations__workflow_id__graph_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowGraphUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WorkflowDetailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/automations/{workflow_id}/publish":{"post":{"tags":["automations"],"summary":"Publish Automation","operationId":"publish_automation_api_v1_automations__workflow_id__publish_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workflow Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WorkflowDetailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/automations/{workflow_id}/duplicate":{"post":{"tags":["automations"],"summary":"Duplicate Automation","operationId":"duplicate_automation_api_v1_automations__workflow_id__duplicate_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workflow Id"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WorkflowDetailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/automations/{workflow_id}/test":{"post":{"tags":["automations"],"summary":"Test Automation","operationId":"test_automation_api_v1_automations__workflow_id__test_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workflow Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowTestRunRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WorkflowExecutionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/automations/{workflow_id}/executions":{"get":{"tags":["automations"],"summary":"List Executions","operationId":"list_executions_api_v1_automations__workflow_id__executions_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workflow Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/WorkflowExecutionStatus"},{"type":"null"}],"title":"Status"}},{"name":"created_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created After"}},{"name":"created_before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created Before"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_WorkflowExecutionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/automations/{workflow_id}/analytics":{"get":{"tags":["automations"],"summary":"Automation Analytics","operationId":"automation_analytics_api_v1_automations__workflow_id__analytics_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"workflow_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Workflow Id"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"default":14,"title":"Days"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WorkflowAnalyticsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/config/settings":{"get":{"tags":["channels"],"summary":"Get Channel Settings","operationId":"get_channel_settings_api_v1_channels__channel_id__config_settings_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ChannelSettingsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/config/account":{"get":{"tags":["channels"],"summary":"Get Channel Account","operationId":"get_channel_account_api_v1_channels__channel_id__config_account_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ChannelAccountDetailsResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/config/profile":{"get":{"tags":["channels"],"summary":"Get Channel Profile","operationId":"get_channel_profile_api_v1_channels__channel_id__config_profile_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ChannelProfileResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["channels"],"summary":"Update Channel Profile","operationId":"update_channel_profile_api_v1_channels__channel_id__config_profile_put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelProfileUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ChannelProfileResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/config/profile/display-name":{"post":{"tags":["channels"],"summary":"Request Channel Display Name","description":"Submit a WhatsApp display-name change for Meta review.","operationId":"request_channel_display_name_api_v1_channels__channel_id__config_profile_display_name_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DisplayNameRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ChannelProfileResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/config/profile/official-business-account":{"post":{"tags":["channels"],"summary":"Request Channel Official Business Account","description":"Submit or resubmit Meta Official Business Account (blue check) application.","operationId":"request_channel_official_business_account_api_v1_channels__channel_id__config_profile_official_business_account_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OfficialBusinessAccountRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ChannelProfileResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/config/profile/picture":{"post":{"tags":["channels"],"summary":"Upload Channel Profile Picture","operationId":"upload_channel_profile_picture_api_v1_channels__channel_id__config_profile_picture_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_channel_profile_picture_api_v1_channels__channel_id__config_profile_picture_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ChannelProfileResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/config/templates":{"get":{"tags":["channels"],"summary":"List Channel Templates","operationId":"list_channel_templates_api_v1_channels__channel_id__config_templates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ChannelTemplateListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["channels"],"summary":"Create Channel Template","operationId":"create_channel_template_api_v1_channels__channel_id__config_templates_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateWhatsAppTemplateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WhatsAppTemplateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/config/templates/media-handle":{"post":{"tags":["channels"],"summary":"Upload Template Media Handle","description":"Upload sample HEADER media for a template and return Meta's resumable handle.","operationId":"upload_template_media_handle_api_v1_channels__channel_id__config_templates_media_handle_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_template_media_handle_api_v1_channels__channel_id__config_templates_media_handle_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_str__str__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/config/templates/{template_id}":{"put":{"tags":["channels"],"summary":"Update Channel Template","description":"Update an existing Meta template and resubmit it for review.","operationId":"update_channel_template_api_v1_channels__channel_id__config_templates__template_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateWhatsAppTemplateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WhatsAppTemplateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["channels"],"summary":"Delete Channel Template","operationId":"delete_channel_template_api_v1_channels__channel_id__config_templates__template_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}},{"name":"name","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Template name (required by Meta)","title":"Name"},"description":"Template name (required by Meta)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_str__bool__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/config/templates/{template_id}/variable-bindings":{"patch":{"tags":["channels"],"summary":"Update Template Variable Bindings","description":"Map {{n}} slots to CRM fields without changing the Meta template.","operationId":"update_template_variable_bindings_api_v1_channels__channel_id__config_templates__template_id__variable_bindings_patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"template_id","in":"path","required":true,"schema":{"type":"string","title":"Template Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateTemplateVariableBindingsRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WhatsAppTemplateResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/config/webhooks":{"get":{"tags":["channels"],"summary":"List Channel Webhooks","operationId":"list_channel_webhooks_api_v1_channels__channel_id__config_webhooks_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ChannelWebhookListResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["channels"],"summary":"Create Outbound Webhook","operationId":"create_outbound_webhook_api_v1_channels__channel_id__config_webhooks_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOutboundWebhookRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_OutboundWebhookConfig_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/config/webhooks/{webhook_id}":{"patch":{"tags":["channels"],"summary":"Update Outbound Webhook","operationId":"update_outbound_webhook_api_v1_channels__channel_id__config_webhooks__webhook_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateOutboundWebhookRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_OutboundWebhookConfig_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["channels"],"summary":"Delete Outbound Webhook","operationId":"delete_outbound_webhook_api_v1_channels__channel_id__config_webhooks__webhook_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_str__bool__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/config/webhooks/{webhook_id}/test":{"post":{"tags":["channels"],"summary":"Test Outbound Webhook","operationId":"test_outbound_webhook_api_v1_channels__channel_id__config_webhooks__webhook_id__test_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}},{"name":"sample","in":"query","required":false,"schema":{"type":"string","description":"Sample payload: agent, customer, or bot","default":"customer","title":"Sample"},"description":"Sample payload: agent, customer, or bot"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WebhookDeliveryResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/config/webhooks/{webhook_id}/rotate-secret":{"post":{"tags":["channels"],"summary":"Rotate Outbound Webhook Secret","operationId":"rotate_outbound_webhook_secret_api_v1_channels__channel_id__config_webhooks__webhook_id__rotate_secret_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_str__str__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/config/webhooks/{webhook_id}/deliveries":{"get":{"tags":["channels"],"summary":"List Outbound Webhook Deliveries","operationId":"list_outbound_webhook_deliveries_api_v1_channels__channel_id__config_webhooks__webhook_id__deliveries_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","title":"Webhook Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_WebhookDeliveryResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/config/account/register":{"post":{"tags":["channels"],"summary":"Register Whatsapp Cloud Api","description":"Register the linked WhatsApp number for Cloud API messaging.","operationId":"register_whatsapp_cloud_api_api_v1_channels__channel_id__config_account_register_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/config/webhooks/subscribe":{"post":{"tags":["channels"],"summary":"Subscribe Meta Webhooks","operationId":"subscribe_meta_webhooks_api_v1_channels__channel_id__config_webhooks_subscribe_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_str__bool__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/config/sandbox/send":{"post":{"tags":["channels"],"summary":"Sandbox Send Message","operationId":"sandbox_send_message_api_v1_channels__channel_id__config_sandbox_send_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SandboxSendRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_SandboxSendResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/config/billing":{"get":{"tags":["channels"],"summary":"Get Channel Billing","description":"Internal billing posture. Customers pay Truechat; this is not a customer screen.","operationId":"get_channel_billing_api_v1_channels__channel_id__config_billing_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ChannelBillingResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/config/billing/attach-credit-line":{"post":{"tags":["channels"],"summary":"Attach Credit Line","description":"Share our Solution Partner credit line with this client's WABA.","operationId":"attach_credit_line_api_v1_channels__channel_id__config_billing_attach_credit_line_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttachCreditLineRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WabaBillingProfileResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/config/billing/verify":{"post":{"tags":["channels"],"summary":"Verify Channel Billing","description":"Re-check funding against Meta now instead of waiting for the reconciler.","operationId":"verify_channel_billing_api_v1_channels__channel_id__config_billing_verify_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_WabaBillingProfileResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/config/billing/revoke-credit-line":{"post":{"tags":["channels"],"summary":"Revoke Credit Line","description":"Withdraw our credit line from a WABA (offboarding or non-payment).","operationId":"revoke_credit_line_api_v1_channels__channel_id__config_billing_revoke_credit_line_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RevokeCreditLineRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WabaBillingProfileResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/config/billing/mode":{"post":{"tags":["channels"],"summary":"Set Billing Mode","description":"Move a WABA between partner-funded and self-billed.","operationId":"set_billing_mode_api_v1_channels__channel_id__config_billing_mode_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingModeUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WabaBillingProfileResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/whatsapp/qr/sessions":{"post":{"tags":["channels"],"summary":"Start Whatsapp Qr Session","operationId":"start_whatsapp_qr_session_api_v1_channels_whatsapp_qr_sessions_post","requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WhatcrmQrSessionCreateRequest"},{"type":"null"}],"title":"Payload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WhatcrmQrSessionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/channels/whatsapp/qr/sessions/{session_id}":{"get":{"tags":["channels"],"summary":"Get Whatsapp Qr Session","operationId":"get_whatsapp_qr_session_api_v1_channels_whatsapp_qr_sessions__session_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WhatcrmQrSessionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/whatsapp/qr/sessions/{session_id}/refresh":{"post":{"tags":["channels"],"summary":"Refresh Whatsapp Qr Session","operationId":"refresh_whatsapp_qr_session_api_v1_channels_whatsapp_qr_sessions__session_id__refresh_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_WhatcrmQrSessionResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/whatsapp/gupshup/connect":{"post":{"tags":["channels"],"summary":"Connect Gupshup Whatsapp","operationId":"connect_gupshup_whatsapp_api_v1_channels_whatsapp_gupshup_connect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GupshupConnectRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_GupshupConnectResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/channels/whatsapp/gupshup/{account_id}/rotate-key":{"post":{"tags":["channels"],"summary":"Rotate Gupshup Api Key","operationId":"rotate_gupshup_api_key_api_v1_channels_whatsapp_gupshup__account_id__rotate_key_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GupshupRotateKeyRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_GupshupConnectResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/integrations/health":{"get":{"tags":["channels"],"summary":"List Integration Health","operationId":"list_integration_health_api_v1_channels_integrations_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_IntegrationHealthItem__"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/channels":{"get":{"tags":["channels"],"summary":"List Channels","operationId":"list_channels_api_v1_channels_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_ChannelListItemResponse__"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/channels/connected":{"get":{"tags":["channels"],"summary":"List Connected Channels","operationId":"list_connected_channels_api_v1_channels_connected_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_ConnectedChannelRow__"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/channels/{channel_id}":{"get":{"tags":["channels"],"summary":"Get Channel","operationId":"get_channel_api_v1_channels__channel_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ChannelDetailResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/{channel_id}/accounts/{account_id}":{"patch":{"tags":["channels"],"summary":"Rename Channel Account","operationId":"rename_channel_account_api_v1_channels__channel_id__accounts__account_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChannelAccountRenameRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ChannelAccountSummary_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["channels"],"summary":"Disconnect Channel Account","operationId":"disconnect_channel_account_api_v1_channels__channel_id__accounts__account_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Id"}},{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ChannelAccountSummary_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auto-replies":{"get":{"tags":["auto-replies"],"summary":"List Auto Replies","operationId":"list_auto_replies_api_v1_auto_replies_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"reply_kind","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^(automatic|quick)$"},{"type":"null"}],"title":"Reply Kind"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_AutoReplyResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["auto-replies"],"summary":"Create Auto Reply","operationId":"create_auto_reply_api_v1_auto_replies_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoReplyCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_AutoReplyResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auto-replies/inbox":{"get":{"tags":["auto-replies"],"summary":"List Inbox Quick Replies","operationId":"list_inbox_quick_replies_api_v1_auto_replies_inbox_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_AutoReplyResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auto-replies/by-shortcut":{"get":{"tags":["auto-replies"],"summary":"Lookup By Shortcut","operationId":"lookup_by_shortcut_api_v1_auto_replies_by_shortcut_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"title":"Q"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_AutoReplyResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auto-replies/folders":{"get":{"tags":["auto-replies"],"summary":"List Folders","operationId":"list_folders_api_v1_auto_replies_folders_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_CannedReplyFolderResponse__"}}}}},"security":[{"HTTPBearer":[]}]},"post":{"tags":["auto-replies"],"summary":"Create Folder","operationId":"create_folder_api_v1_auto_replies_folders_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CannedReplyFolderCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_CannedReplyFolderResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/auto-replies/folders/{folder_id}":{"patch":{"tags":["auto-replies"],"summary":"Update Folder","operationId":"update_folder_api_v1_auto_replies_folders__folder_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Folder Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CannedReplyFolderUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_CannedReplyFolderResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["auto-replies"],"summary":"Delete Folder","operationId":"delete_folder_api_v1_auto_replies_folders__folder_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"folder_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Folder Id"}}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auto-replies/{auto_reply_id}/favorite":{"post":{"tags":["auto-replies"],"summary":"Toggle Favorite","operationId":"toggle_favorite_api_v1_auto_replies__auto_reply_id__favorite_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"auto_reply_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Auto Reply Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_AutoReplyResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auto-replies/{auto_reply_id}/use":{"post":{"tags":["auto-replies"],"summary":"Mark Used","operationId":"mark_used_api_v1_auto_replies__auto_reply_id__use_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"auto_reply_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Auto Reply Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_AutoReplyResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auto-replies/{auto_reply_id}":{"put":{"tags":["auto-replies"],"summary":"Update Auto Reply","operationId":"update_auto_reply_api_v1_auto_replies__auto_reply_id__put","security":[{"HTTPBearer":[]}],"parameters":[{"name":"auto_reply_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Auto Reply Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoReplyUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_AutoReplyResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["auto-replies"],"summary":"Delete Auto Reply","operationId":"delete_auto_reply_api_v1_auto_replies__auto_reply_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"auto_reply_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Auto Reply Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_str__bool__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meta/connect/{channel_type}/url":{"get":{"tags":["meta"],"summary":"Get Connect Channel Url","operationId":"get_connect_channel_url_api_v1_meta_connect__channel_type__url_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_type","in":"path","required":true,"schema":{"$ref":"#/components/schemas/ConnectChannelType"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ConnectChannelURLResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meta/whatsapp/complete":{"post":{"tags":["meta"],"summary":"Complete Whatsapp Embedded Signup","description":"Complete WhatsApp Embedded Signup using session IDs from the JS SDK event.\n\nMeta delivers ``waba_id`` / ``phone_number_id`` via the ``WA_EMBEDDED_SIGNUP``\nmessage event, not reliably on the OAuth redirect URL. The frontend captures\nthose IDs and posts them here with the authorization code.","operationId":"complete_whatsapp_embedded_signup_api_v1_meta_whatsapp_complete_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppEmbeddedCompleteRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_OAuthCallbackResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/meta/embedded-signup/url":{"get":{"tags":["meta"],"summary":"Get Embedded Signup Url","operationId":"get_embedded_signup_url_api_v1_meta_embedded_signup_url_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_EmbeddedSignupURLResponse_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/meta/oauth/callback":{"get":{"tags":["meta"],"summary":"Oauth Callback","operationId":"oauth_callback_api_v1_meta_oauth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},{"name":"error_reason","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Reason"}},{"name":"error_description","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Description"}},{"name":"waba_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Waba Id"}},{"name":"phone_number_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/meta/sync-contacts":{"post":{"tags":["meta"],"summary":"Sync Meta Contacts","operationId":"sync_meta_contacts_api_v1_meta_sync_contacts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"background","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"Background"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":2000,"minimum":1,"default":500,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/telegram/connect":{"post":{"tags":["telegram"],"summary":"Connect Telegram Bot","operationId":"connect_telegram_bot_api_v1_telegram_connect_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TelegramConnectRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ChannelAccountSummary_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/tiktok/connect/url":{"get":{"tags":["tiktok"],"summary":"Get Tiktok Connect Url","operationId":"get_tiktok_connect_url_api_v1_tiktok_connect_url_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ConnectChannelURLResponse_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/tiktok/oauth/callback":{"get":{"tags":["tiktok"],"summary":"Tiktok Oauth Callback","operationId":"tiktok_oauth_callback_api_v1_tiktok_oauth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},{"name":"error_description","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Description"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/snapchat/connect/url":{"get":{"tags":["snapchat"],"summary":"Get Snapchat Connect Url","operationId":"get_snapchat_connect_url_api_v1_snapchat_connect_url_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ConnectChannelURLResponse_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/snapchat/oauth/callback":{"get":{"tags":["snapchat"],"summary":"Snapchat Oauth Callback","operationId":"snapchat_oauth_callback_api_v1_snapchat_oauth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},{"name":"error_description","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Description"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/snapchat/accounts/{account_id}/sync":{"post":{"tags":["snapchat"],"summary":"Sync Snapchat Account","operationId":"sync_snapchat_account_api_v1_snapchat_accounts__account_id__sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"account_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/snapchat/conversations/start":{"post":{"tags":["snapchat"],"summary":"Start Snapchat Conversation","description":"Create (or reopen) a Snap brand↔creator conversation and local inbox thread.","operationId":"start_snapchat_conversation_api_v1_snapchat_conversations_start_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"creator_profile_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"title":"Creator Profile Id"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/snapchat/creators/search":{"get":{"tags":["snapchat"],"summary":"Search Snapchat Creators","operationId":"search_snapchat_creators_api_v1_snapchat_creators_search_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":120,"title":"Q"}},{"name":"account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_dict_str__Any___"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/gmail/connect/url":{"get":{"tags":["gmail"],"summary":"Get Gmail Connect Url","operationId":"get_gmail_connect_url_api_v1_gmail_connect_url_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_ConnectChannelURLResponse_"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/gmail/oauth/callback":{"get":{"tags":["gmail"],"summary":"Gmail Oauth Callback","operationId":"gmail_oauth_callback_api_v1_gmail_oauth_callback_get","parameters":[{"name":"code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"}},{"name":"state","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"}},{"name":"error","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},{"name":"error_description","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Description"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/email/accounts":{"get":{"tags":["email"],"summary":"List Email Accounts","operationId":"list_email_accounts_api_v1_email_accounts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_EmailAccountResponse__"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/email/threads":{"get":{"tags":["email"],"summary":"List Email Threads","operationId":"list_email_threads_api_v1_email_threads_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Account Id"}},{"name":"label_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"default":"INBOX","title":"Label Id"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}],"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_EmailThreadListItem_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/email/threads/{conversation_id}":{"get":{"tags":["email"],"summary":"Get Email Thread","operationId":"get_email_thread_api_v1_email_threads__conversation_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_EmailThreadDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["email"],"summary":"Update Email Thread","operationId":"update_email_thread_api_v1_email_threads__conversation_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailThreadUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_EmailThreadDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/email/compose":{"post":{"tags":["email"],"summary":"Compose Email","operationId":"compose_email_api_v1_email_compose_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailComposeRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_EmailThreadDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/email/threads/{conversation_id}/reply":{"post":{"tags":["email"],"summary":"Reply Email","operationId":"reply_email_api_v1_email_threads__conversation_id__reply_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailComposeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_EmailThreadDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/email/threads/{conversation_id}/forward":{"post":{"tags":["email"],"summary":"Forward Email","operationId":"forward_email_api_v1_email_threads__conversation_id__forward_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailComposeRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_EmailThreadDetail_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/email/messages/{message_id}/attachments/{attachment_id}":{"get":{"tags":["email"],"summary":"Download Email Attachment","operationId":"download_email_attachment_api_v1_email_messages__message_id__attachments__attachment_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Message Id"}},{"name":"attachment_id","in":"path","required":true,"schema":{"type":"string","title":"Attachment Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/email/unread-count":{"get":{"tags":["email"],"summary":"Get Email Unread Count","operationId":"get_email_unread_count_api_v1_email_unread_count_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_str__int__"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/email/labels":{"get":{"tags":["email"],"summary":"List Email Labels","operationId":"list_email_labels_api_v1_email_labels_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_account_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_EmailLabelResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/email/search":{"get":{"tags":["email"],"summary":"Search Email","operationId":"search_email_api_v1_email_search_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_account_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Account Id"}},{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":500,"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_EmailThreadListItem__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/email/drafts":{"get":{"tags":["email"],"summary":"List Email Drafts","operationId":"list_email_drafts_api_v1_email_drafts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_account_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_EmailDraftResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["email"],"summary":"Create Email Draft","operationId":"create_email_draft_api_v1_email_drafts_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailDraftUpsertRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_EmailDraftResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/email/drafts/{draft_id}":{"patch":{"tags":["email"],"summary":"Update Email Draft","operationId":"update_email_draft_api_v1_email_drafts__draft_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Draft Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailDraftUpsertRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_EmailDraftResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["email"],"summary":"Delete Email Draft","operationId":"delete_email_draft_api_v1_email_drafts__draft_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"draft_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Draft Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_NoneType_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/email/send-as":{"get":{"tags":["email"],"summary":"List Send As","operationId":"list_send_as_api_v1_email_send_as_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_account_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_EmailSendAsResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/email/filters":{"get":{"tags":["email"],"summary":"List Email Filters","operationId":"list_email_filters_api_v1_email_filters_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_account_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_list_EmailFilterResponse__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/email/sync":{"post":{"tags":["email"],"summary":"Sync Email Account","operationId":"sync_email_account_api_v1_email_sync_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"channel_account_id","in":"query","required":true,"schema":{"type":"string","format":"uuid","title":"Channel Account Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_dict_str__Any__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/stripe":{"post":{"tags":["webhooks"],"summary":"Ingest Stripe Webhook","description":"Credit wallet top-ups once the payment provider confirms payment.","operationId":"ingest_stripe_webhook_api_v1_webhooks_stripe_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ingest Stripe Webhook Api V1 Webhooks Stripe Post"}}}}}}},"/api/v1/webhooks/meta":{"get":{"tags":["webhooks"],"summary":"Verify Meta Webhook","operationId":"verify_meta_webhook_api_v1_webhooks_meta_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["webhooks"],"summary":"Ingest Meta Webhook","operationId":"ingest_meta_webhook_api_v1_webhooks_meta_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ingest Meta Webhook Api V1 Webhooks Meta Post"}}}}}}},"/api/v1/webhooks/tiktok":{"post":{"tags":["webhooks"],"summary":"Ingest Tiktok Webhook","operationId":"ingest_tiktok_webhook_api_v1_webhooks_tiktok_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ingest Tiktok Webhook Api V1 Webhooks Tiktok Post"}}}}}}},"/api/v1/webhooks/gmail/pubsub":{"post":{"tags":["webhooks"],"summary":"Ingest Gmail Pubsub","description":"Google Pub/Sub push endpoint for Gmail users.watch notifications.","operationId":"ingest_gmail_pubsub_api_v1_webhooks_gmail_pubsub_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ingest Gmail Pubsub Api V1 Webhooks Gmail Pubsub Post"}}}}}}},"/api/v1/webhooks/telegram/{bot_id}":{"post":{"tags":["webhooks"],"summary":"Ingest Telegram Webhook","operationId":"ingest_telegram_webhook_api_v1_webhooks_telegram__bot_id__post","parameters":[{"name":"bot_id","in":"path","required":true,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ingest Telegram Webhook Api V1 Webhooks Telegram  Bot Id  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/telegram":{"post":{"tags":["webhooks"],"summary":"Ingest Telegram Webhook","operationId":"ingest_telegram_webhook_api_v1_webhooks_telegram_post","parameters":[{"name":"bot_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bot Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ingest Telegram Webhook Api V1 Webhooks Telegram Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/whatcrm":{"get":{"tags":["webhooks"],"summary":"Ingest Whatcrm Webhook","operationId":"ingest_whatcrm_webhook_api_v1_webhooks_whatcrm_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ingest Whatcrm Webhook Api V1 Webhooks Whatcrm Post"}}}}}},"post":{"tags":["webhooks"],"summary":"Ingest Whatcrm Webhook","operationId":"ingest_whatcrm_webhook_api_v1_webhooks_whatcrm_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Ingest Whatcrm Webhook Api V1 Webhooks Whatcrm Post"}}}}}}},"/api/v1/webhooks/gupshup/{webhook_token}":{"post":{"tags":["webhooks"],"summary":"Ingest Gupshup Webhook","operationId":"ingest_gupshup_webhook_api_v1_webhooks_gupshup__webhook_token__post","parameters":[{"name":"webhook_token","in":"path","required":true,"schema":{"type":"string","title":"Webhook Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ingest Gupshup Webhook Api V1 Webhooks Gupshup  Webhook Token  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["webhooks"],"summary":"Ingest Gupshup Webhook","operationId":"ingest_gupshup_webhook_api_v1_webhooks_gupshup__webhook_token__post","parameters":[{"name":"webhook_token","in":"path","required":true,"schema":{"type":"string","title":"Webhook Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Ingest Gupshup Webhook Api V1 Webhooks Gupshup  Webhook Token  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/bitrix24/oauth/{handler_token}":{"post":{"tags":["webhooks"],"summary":"Bitrix24 Oauth Handler","description":"Public handler URL for Bitrix24 local-app install/auth (access + refresh tokens).","operationId":"bitrix24_oauth_handler_api_v1_webhooks_bitrix24_oauth__handler_token__post","parameters":[{"name":"handler_token","in":"path","required":true,"schema":{"type":"string","title":"Handler Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Bitrix24 Oauth Handler Api V1 Webhooks Bitrix24 Oauth  Handler Token  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["webhooks"],"summary":"Bitrix24 Oauth Handler","description":"Public handler URL for Bitrix24 local-app install/auth (access + refresh tokens).","operationId":"bitrix24_oauth_handler_api_v1_webhooks_bitrix24_oauth__handler_token__post","parameters":[{"name":"handler_token","in":"path","required":true,"schema":{"type":"string","title":"Handler Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Bitrix24 Oauth Handler Api V1 Webhooks Bitrix24 Oauth  Handler Token  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/bitrix24/openlines/{handler_token}":{"post":{"tags":["webhooks"],"summary":"Bitrix24 Openlines Events","description":"Inbound Open Channels / imconnector events (agent replies).","operationId":"bitrix24_openlines_events_api_v1_webhooks_bitrix24_openlines__handler_token__post","parameters":[{"name":"handler_token","in":"path","required":true,"schema":{"type":"string","title":"Handler Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Bitrix24 Openlines Events Api V1 Webhooks Bitrix24 Openlines  Handler Token  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/bitrix24/templates/{handler_token}":{"post":{"tags":["webhooks"],"summary":"Bitrix24 Send Template","description":"Bitrix24 outbound webhook: queue an approved WhatsApp template send.\n\nAuth is the org ``oauth_handler_token`` in the path — no API key / Authorization header.\n\nBitrix Outbound Webhooks: pass send fields as HTTPS query params (GET or POST).\nOther clients may POST a JSON body (same fields as before). If the query string\ncontains any send field, the payload is taken from the query only.","operationId":"bitrix24_send_template_api_v1_webhooks_bitrix24_templates__handler_token__post","parameters":[{"name":"handler_token","in":"path","required":true,"schema":{"type":"string","title":"Handler Token"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Bitrix24 Send Template Api V1 Webhooks Bitrix24 Templates  Handler Token  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["webhooks"],"summary":"Bitrix24 Send Template","description":"Bitrix24 outbound webhook: queue an approved WhatsApp template send.\n\nAuth is the org ``oauth_handler_token`` in the path — no API key / Authorization header.\n\nBitrix Outbound Webhooks: pass send fields as HTTPS query params (GET or POST).\nOther clients may POST a JSON body (same fields as before). If the query string\ncontains any send field, the payload is taken from the query only.","operationId":"bitrix24_send_template_api_v1_webhooks_bitrix24_templates__handler_token__post","parameters":[{"name":"handler_token","in":"path","required":true,"schema":{"type":"string","title":"Handler Token"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Bitrix24 Send Template Api V1 Webhooks Bitrix24 Templates  Handler Token  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/webhooks/bitrix24/crm/{handler_token}":{"post":{"tags":["webhooks"],"summary":"Bitrix24 Crm Events","description":"Bitrix24 CRM outbound events (ONCRMCONTACTADD / ONCRMCONTACTUPDATE).","operationId":"bitrix24_crm_events_api_v1_webhooks_bitrix24_crm__handler_token__post","parameters":[{"name":"handler_token","in":"path","required":true,"schema":{"type":"string","title":"Handler Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Bitrix24 Crm Events Api V1 Webhooks Bitrix24 Crm  Handler Token  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["webhooks"],"summary":"Bitrix24 Crm Events","description":"Bitrix24 CRM outbound events (ONCRMCONTACTADD / ONCRMCONTACTUPDATE).","operationId":"bitrix24_crm_events_api_v1_webhooks_bitrix24_crm__handler_token__post","parameters":[{"name":"handler_token","in":"path","required":true,"schema":{"type":"string","title":"Handler Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Bitrix24 Crm Events Api V1 Webhooks Bitrix24 Crm  Handler Token  Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/messages/send":{"post":{"tags":["messages"],"summary":"Send Text Message","operationId":"send_text_message_api_v1_messages_send_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendTextMessageRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_MessageResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/messages/send-template":{"post":{"tags":["messages"],"summary":"Send Template Message","description":"Send an approved WhatsApp template to a customer phone (CRM / API key).","operationId":"send_template_message_api_v1_messages_send_template_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendTemplateMessageRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_MessageResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"HTTPBearer":[]}]}},"/api/v1/messages/{message_id}":{"get":{"tags":["messages"],"summary":"Get Message","operationId":"get_message_api_v1_messages__message_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Message Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageDetailResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/whatsapp-accounts":{"get":{"tags":["whatsapp-accounts"],"summary":"List Whatsapp Accounts","operationId":"list_whatsapp_accounts_api_v1_whatsapp_accounts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_WhatsAppBusinessAccountResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/phone-numbers":{"get":{"tags":["phone-numbers"],"summary":"List Phone Numbers","operationId":"list_phone_numbers_api_v1_phone_numbers_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedResponse_WhatsAppPhoneNumberResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/review":{"get":{"tags":["review"],"summary":"Review Guide","operationId":"review_guide_api_v1_review_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewGuideResponse"}}}}}}},"/api/v1/internal/replay/event/{event_id}":{"post":{"tags":["internal"],"summary":"Replay Dead Letter Event","operationId":"replay_dead_letter_event_api_v1_internal_replay_event__event_id__post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Event Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/APIResponse_DeadLetterEventResponse_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/metrics":{"get":{"tags":["metrics"],"summary":"Get Metrics","operationId":"get_metrics_api_v1_metrics_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}}}}},"components":{"schemas":{"APIKeyCreateRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":2,"title":"Name"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"live":{"type":"boolean","title":"Live","default":true}},"type":"object","required":["name"],"title":"APIKeyCreateRequest"},"APIKeyCreateResponse":{"properties":{"api_key":{"type":"string","title":"Api Key"},"key":{"$ref":"#/components/schemas/APIKeyResponse"}},"type":"object","required":["api_key","key"],"title":"APIKeyCreateResponse"},"APIKeyResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"key_prefix":{"type":"string","title":"Key Prefix"},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"revoked":{"type":"boolean","title":"Revoked"},"created_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"}},"type":"object","required":["id","created_at","updated_at","organization_id","name","key_prefix","scopes","last_used_at","expires_at","revoked","created_by"],"title":"APIKeyResponse"},"APIResponse_APIKeyCreateResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/APIKeyCreateResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[APIKeyCreateResponse]"},"APIResponse_APIKeyResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/APIKeyResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[APIKeyResponse]"},"APIResponse_AdminOrganizationDetail_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/AdminOrganizationDetail"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[AdminOrganizationDetail]"},"APIResponse_AdminOverviewResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/AdminOverviewResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[AdminOverviewResponse]"},"APIResponse_AutoReplyResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/AutoReplyResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[AutoReplyResponse]"},"APIResponse_BillingOverviewResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/BillingOverviewResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[BillingOverviewResponse]"},"APIResponse_BillingPortalResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/BillingPortalResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[BillingPortalResponse]"},"APIResponse_Bitrix24CrmUsersResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/Bitrix24CrmUsersResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[Bitrix24CrmUsersResponse]"},"APIResponse_Bitrix24CustomFieldsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/Bitrix24CustomFieldsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[Bitrix24CustomFieldsResponse]"},"APIResponse_Bitrix24FieldCatalogResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/Bitrix24FieldCatalogResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[Bitrix24FieldCatalogResponse]"},"APIResponse_Bitrix24StatusResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/Bitrix24StatusResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[Bitrix24StatusResponse]"},"APIResponse_BroadcastAnalyticsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/BroadcastAnalyticsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[BroadcastAnalyticsResponse]"},"APIResponse_BroadcastDetailResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/BroadcastDetailResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[BroadcastDetailResponse]"},"APIResponse_CannedReplyFolderResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/CannedReplyFolderResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[CannedReplyFolderResponse]"},"APIResponse_ChannelAccountDetailsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/ChannelAccountDetailsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[ChannelAccountDetailsResponse]"},"APIResponse_ChannelAccountSummary_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/ChannelAccountSummary"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[ChannelAccountSummary]"},"APIResponse_ChannelBillingResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/ChannelBillingResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[ChannelBillingResponse]"},"APIResponse_ChannelDetailResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/ChannelDetailResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[ChannelDetailResponse]"},"APIResponse_ChannelProfileResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/ChannelProfileResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[ChannelProfileResponse]"},"APIResponse_ChannelSettingsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/ChannelSettingsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[ChannelSettingsResponse]"},"APIResponse_ChannelTemplateListResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/ChannelTemplateListResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[ChannelTemplateListResponse]"},"APIResponse_ChannelWebhookListResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/ChannelWebhookListResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[ChannelWebhookListResponse]"},"APIResponse_CheckoutSessionResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/CheckoutSessionResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[CheckoutSessionResponse]"},"APIResponse_ConnectChannelURLResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/ConnectChannelURLResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[ConnectChannelURLResponse]"},"APIResponse_ContactBitrixLinksResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/ContactBitrixLinksResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[ContactBitrixLinksResponse]"},"APIResponse_ContactLabelResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/ContactLabelResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[ContactLabelResponse]"},"APIResponse_ContactMessagingOptionsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/ContactMessagingOptionsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[ContactMessagingOptionsResponse]"},"APIResponse_ContactNoteResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/ContactNoteResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[ContactNoteResponse]"},"APIResponse_ConversationParticipantResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/ConversationParticipantResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[ConversationParticipantResponse]"},"APIResponse_ConversationTagResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/ConversationTagResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[ConversationTagResponse]"},"APIResponse_CsatConfigResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/CsatConfigResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[CsatConfigResponse]"},"APIResponse_CsatResponseItem_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/CsatResponseItem"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[CsatResponseItem]"},"APIResponse_CsatSummaryResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/CsatSummaryResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[CsatSummaryResponse]"},"APIResponse_CustomFieldDefinitionResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/CustomFieldDefinitionResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[CustomFieldDefinitionResponse]"},"APIResponse_CustomFieldValuesResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/CustomFieldValuesResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[CustomFieldValuesResponse]"},"APIResponse_DashboardSummaryResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/DashboardSummaryResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[DashboardSummaryResponse]"},"APIResponse_DeadLetterEventResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/DeadLetterEventResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[DeadLetterEventResponse]"},"APIResponse_EmailDraftResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/EmailDraftResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[EmailDraftResponse]"},"APIResponse_EmailThreadDetail_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/EmailThreadDetail"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[EmailThreadDetail]"},"APIResponse_EmbeddedSignupURLResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/EmbeddedSignupURLResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[EmbeddedSignupURLResponse]"},"APIResponse_FetchContactsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/FetchContactsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[FetchContactsResponse]"},"APIResponse_GupshupConnectResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/GupshupConnectResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[GupshupConnectResponse]"},"APIResponse_InboundWebhookCreateResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/InboundWebhookCreateResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[InboundWebhookCreateResponse]"},"APIResponse_InboundWebhookResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/InboundWebhookResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[InboundWebhookResponse]"},"APIResponse_InboundWebhookRotateResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/InboundWebhookRotateResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[InboundWebhookRotateResponse]"},"APIResponse_InboxBulkActionResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/InboxBulkActionResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[InboxBulkActionResponse]"},"APIResponse_InboxBulkSendTemplateResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/InboxBulkSendTemplateResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[InboxBulkSendTemplateResponse]"},"APIResponse_InboxConversationResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/InboxConversationResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[InboxConversationResponse]"},"APIResponse_InboxMessageResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/InboxMessageResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[InboxMessageResponse]"},"APIResponse_InboxSavedFilterResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/InboxSavedFilterResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[InboxSavedFilterResponse]"},"APIResponse_MediaUploadResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/MediaUploadResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[MediaUploadResponse]"},"APIResponse_MembershipAvailabilityResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/MembershipAvailabilityResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[MembershipAvailabilityResponse]"},"APIResponse_MembershipInviteResult_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/MembershipInviteResult"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[MembershipInviteResult]"},"APIResponse_MembershipPermissionsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/MembershipPermissionsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[MembershipPermissionsResponse]"},"APIResponse_MembershipResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/MembershipResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[MembershipResponse]"},"APIResponse_MessageReportResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/MessageReportResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[MessageReportResponse]"},"APIResponse_MessageResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/MessageResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[MessageResponse]"},"APIResponse_NoneType_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"type":"null","title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[NoneType]"},"APIResponse_NotificationPreferencesResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/NotificationPreferencesResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[NotificationPreferencesResponse]"},"APIResponse_NotificationResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/NotificationResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[NotificationResponse]"},"APIResponse_NotificationUnreadCount_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/NotificationUnreadCount"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[NotificationUnreadCount]"},"APIResponse_OAuthCallbackResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/OAuthCallbackResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[OAuthCallbackResponse]"},"APIResponse_OrganizationSettingsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/OrganizationSettingsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[OrganizationSettingsResponse]"},"APIResponse_OutboundWebhookConfig_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/OutboundWebhookConfig"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[OutboundWebhookConfig]"},"APIResponse_PlanEntitlements_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/PlanEntitlements"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[PlanEntitlements]"},"APIResponse_PricingPolicyPage_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/PricingPolicyPage"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[PricingPolicyPage]"},"APIResponse_PricingPolicyResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/PricingPolicyResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[PricingPolicyResponse]"},"APIResponse_PushDeviceResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/PushDeviceResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[PushDeviceResponse]"},"APIResponse_RatesRecomputeResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/RatesRecomputeResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[RatesRecomputeResponse]"},"APIResponse_ReportExportResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/ReportExportResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[ReportExportResponse]"},"APIResponse_RolePermissionsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/RolePermissionsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[RolePermissionsResponse]"},"APIResponse_SandboxSendResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/SandboxSendResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[SandboxSendResponse]"},"APIResponse_SegmentPreviewResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/SegmentPreviewResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[SegmentPreviewResponse]"},"APIResponse_SegmentResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/SegmentResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[SegmentResponse]"},"APIResponse_SenderIdentityMappingResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/SenderIdentityMappingResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[SenderIdentityMappingResponse]"},"APIResponse_StageResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/StageResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[StageResponse]"},"APIResponse_SystemHealthResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/SystemHealthResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[SystemHealthResponse]"},"APIResponse_TeamMembershipResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/TeamMembershipResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[TeamMembershipResponse]"},"APIResponse_TeamResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/TeamResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[TeamResponse]"},"APIResponse_TemplateCatalogItem_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/TemplateCatalogItem"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[TemplateCatalogItem]"},"APIResponse_TestConnectionResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/TestConnectionResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[TestConnectionResponse]"},"APIResponse_TransactionalReportResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/TransactionalReportResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[TransactionalReportResponse]"},"APIResponse_WabaBillingProfileResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/WabaBillingProfileResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[WabaBillingProfileResponse]"},"APIResponse_WalletAdminRateResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/WalletAdminRateResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[WalletAdminRateResponse]"},"APIResponse_WalletBalanceResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/WalletBalanceResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[WalletBalanceResponse]"},"APIResponse_WalletOverviewResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/WalletOverviewResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[WalletOverviewResponse]"},"APIResponse_WalletTopUpResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/WalletTopUpResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[WalletTopUpResponse]"},"APIResponse_WalletTransactionPage_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/WalletTransactionPage"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[WalletTransactionPage]"},"APIResponse_WalletTransactionResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/WalletTransactionResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[WalletTransactionResponse]"},"APIResponse_WebhookDeliveryResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/WebhookDeliveryResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[WebhookDeliveryResponse]"},"APIResponse_WhatcrmQrSessionResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/WhatcrmQrSessionResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[WhatcrmQrSessionResponse]"},"APIResponse_WhatsAppChargesResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/WhatsAppChargesResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[WhatsAppChargesResponse]"},"APIResponse_WhatsAppCostsReportResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/WhatsAppCostsReportResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[WhatsAppCostsReportResponse]"},"APIResponse_WhatsAppTemplateResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/WhatsAppTemplateResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[WhatsAppTemplateResponse]"},"APIResponse_WorkflowAnalyticsResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/WorkflowAnalyticsResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[WorkflowAnalyticsResponse]"},"APIResponse_WorkflowDetailResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/WorkflowDetailResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[WorkflowDetailResponse]"},"APIResponse_WorkflowExecutionResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"$ref":"#/components/schemas/WorkflowExecutionResponse"},{"type":"null"}]},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[WorkflowExecutionResponse]"},"APIResponse_dict_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[dict]"},"APIResponse_dict_str__Any__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[dict[str, Any]]"},"APIResponse_dict_str__Union_int__bool___":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"boolean"}]},"type":"object"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[dict[str, Union[int, bool]]]"},"APIResponse_dict_str__bool__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[dict[str, bool]]"},"APIResponse_dict_str__int__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[dict[str, int]]"},"APIResponse_dict_str__str__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[dict[str, str]]"},"APIResponse_list_AgentPerformanceItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/AgentPerformanceItem"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[AgentPerformanceItem]]"},"APIResponse_list_AutoReplyResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/AutoReplyResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[AutoReplyResponse]]"},"APIResponse_list_Bitrix24DealSummary__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/Bitrix24DealSummary"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[Bitrix24DealSummary]]"},"APIResponse_list_Bitrix24Pipeline__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/Bitrix24Pipeline"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[Bitrix24Pipeline]]"},"APIResponse_list_CannedReplyFolderResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/CannedReplyFolderResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[CannedReplyFolderResponse]]"},"APIResponse_list_ChannelListItemResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ChannelListItemResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[ChannelListItemResponse]]"},"APIResponse_list_ChannelUsageStat__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ChannelUsageStat"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[ChannelUsageStat]]"},"APIResponse_list_ConnectedChannelRow__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ConnectedChannelRow"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[ConnectedChannelRow]]"},"APIResponse_list_ContactActivityItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContactActivityItem"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[ContactActivityItem]]"},"APIResponse_list_ContactLabelResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ContactLabelResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[ContactLabelResponse]]"},"APIResponse_list_ConversationParticipantResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ConversationParticipantResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[ConversationParticipantResponse]]"},"APIResponse_list_ConversationTagResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ConversationTagResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[ConversationTagResponse]]"},"APIResponse_list_CsatResponseItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/CsatResponseItem"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[CsatResponseItem]]"},"APIResponse_list_CustomFieldDefinitionResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/CustomFieldDefinitionResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[CustomFieldDefinitionResponse]]"},"APIResponse_list_EmailAccountResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/EmailAccountResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[EmailAccountResponse]]"},"APIResponse_list_EmailDraftResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/EmailDraftResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[EmailDraftResponse]]"},"APIResponse_list_EmailFilterResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/EmailFilterResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[EmailFilterResponse]]"},"APIResponse_list_EmailLabelResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/EmailLabelResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[EmailLabelResponse]]"},"APIResponse_list_EmailSendAsResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/EmailSendAsResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[EmailSendAsResponse]]"},"APIResponse_list_EmailThreadListItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/EmailThreadListItem"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[EmailThreadListItem]]"},"APIResponse_list_InboxConversationResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/InboxConversationResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[InboxConversationResponse]]"},"APIResponse_list_InboxSavedFilterResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/InboxSavedFilterResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[InboxSavedFilterResponse]]"},"APIResponse_list_IntegrationCatalogItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/IntegrationCatalogItem"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[IntegrationCatalogItem]]"},"APIResponse_list_IntegrationHealthItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/IntegrationHealthItem"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[IntegrationHealthItem]]"},"APIResponse_list_IntegrationSyncJobResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/IntegrationSyncJobResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[IntegrationSyncJobResponse]]"},"APIResponse_list_InvoiceResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/InvoiceResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[InvoiceResponse]]"},"APIResponse_list_MembershipResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/MembershipResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[MembershipResponse]]"},"APIResponse_list_PermissionCatalogItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/PermissionCatalogItem"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[PermissionCatalogItem]]"},"APIResponse_list_PlanDefinition__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/PlanDefinition"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[PlanDefinition]]"},"APIResponse_list_PushDeviceResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/PushDeviceResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[PushDeviceResponse]]"},"APIResponse_list_ReportExportResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/ReportExportResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[ReportExportResponse]]"},"APIResponse_list_RolePermissionsResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/RolePermissionsResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[RolePermissionsResponse]]"},"APIResponse_list_SenderIdentityMappingResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/SenderIdentityMappingResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[SenderIdentityMappingResponse]]"},"APIResponse_list_StageBoardSummaryItem__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/StageBoardSummaryItem"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[StageBoardSummaryItem]]"},"APIResponse_list_StageResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/StageResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[StageResponse]]"},"APIResponse_list_TeamChannelAccountSummary__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/TeamChannelAccountSummary"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[TeamChannelAccountSummary]]"},"APIResponse_list_TeamResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/TeamResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[TeamResponse]]"},"APIResponse_list_UnmappedSenderMessageResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/UnmappedSenderMessageResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[UnmappedSenderMessageResponse]]"},"APIResponse_list_UsageDataPoint__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/UsageDataPoint"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[UsageDataPoint]]"},"APIResponse_list_WabaBillingProfileResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/WabaBillingProfileResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[WabaBillingProfileResponse]]"},"APIResponse_list_WalletAdminRateResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/WalletAdminRateResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[WalletAdminRateResponse]]"},"APIResponse_list_WalletDailySpendPoint__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/WalletDailySpendPoint"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[WalletDailySpendPoint]]"},"APIResponse_list_WalletRateResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/WalletRateResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[WalletRateResponse]]"},"APIResponse_list_WalletTopUpResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/WalletTopUpResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[WalletTopUpResponse]]"},"APIResponse_list_WebhookDeliveryResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/WebhookDeliveryResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[WebhookDeliveryResponse]]"},"APIResponse_list_WhatsAppTemplateResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/WhatsAppTemplateResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[WhatsAppTemplateResponse]]"},"APIResponse_list_WorkflowTemplateResponse__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/WorkflowTemplateResponse"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[WorkflowTemplateResponse]]"},"APIResponse_list_WorkspaceOption__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"$ref":"#/components/schemas/WorkspaceOption"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[WorkspaceOption]]"},"APIResponse_list_dict_str__Any___":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[dict[str, Any]]]"},"APIResponse_list_str__":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Data"},"meta":{"additionalProperties":true,"type":"object","title":"Meta"}},"type":"object","required":["message"],"title":"APIResponse[list[str]]"},"AddonCheckoutRequest":{"properties":{"type":{"type":"string","enum":["extra_user","extra_channel"],"title":"Type"},"quantity":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Quantity","default":1},"account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id"}},"type":"object","required":["type"],"title":"AddonCheckoutRequest"},"AdminOrganizationDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"plan":{"$ref":"#/components/schemas/OrganizationPlan"},"is_active":{"type":"boolean","title":"Is Active"},"member_count":{"type":"integer","title":"Member Count","default":0},"channel_count":{"type":"integer","title":"Channel Count","default":0},"subscription_status":{"type":"string","title":"Subscription Status","default":"active"},"renewal_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Renewal At"},"usage":{"$ref":"#/components/schemas/UsageSummary"},"recent_activity_count":{"type":"integer","title":"Recent Activity Count","default":0}},"type":"object","required":["id","created_at","updated_at","name","slug","plan","is_active","usage"],"title":"AdminOrganizationDetail"},"AdminOrganizationListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"plan":{"$ref":"#/components/schemas/OrganizationPlan"},"is_active":{"type":"boolean","title":"Is Active"},"member_count":{"type":"integer","title":"Member Count","default":0},"channel_count":{"type":"integer","title":"Channel Count","default":0}},"type":"object","required":["id","created_at","updated_at","name","slug","plan","is_active"],"title":"AdminOrganizationListItem"},"AdminOverviewResponse":{"properties":{"organizations_total":{"type":"integer","title":"Organizations Total"},"users_total":{"type":"integer","title":"Users Total"},"active_subscriptions":{"type":"integer","title":"Active Subscriptions"},"revenue_mrr_cents":{"type":"integer","title":"Revenue Mrr Cents"},"messages_today":{"type":"integer","title":"Messages Today"},"connected_channels":{"type":"integer","title":"Connected Channels"}},"type":"object","required":["organizations_total","users_total","active_subscriptions","revenue_mrr_cents","messages_today","connected_channels"],"title":"AdminOverviewResponse"},"AgentAvailabilityStatus":{"type":"string","enum":["offline","available","busy","away","break"],"title":"AgentAvailabilityStatus"},"AgentBreakType":{"type":"string","enum":["washroom","prayer","lunch","personal","meeting","training"],"title":"AgentBreakType"},"AgentPerformanceItem":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"conversations_handled":{"type":"integer","title":"Conversations Handled","default":0},"conversations_closed":{"type":"integer","title":"Conversations Closed","default":0},"messages_sent":{"type":"integer","title":"Messages Sent","default":0},"avg_first_response_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg First Response Minutes"},"avg_resolution_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Resolution Minutes"},"csat_average":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Csat Average"},"online_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Online Minutes"}},"type":"object","required":["user_id"],"title":"AgentPerformanceItem"},"AttachCreditLineRequest":{"properties":{"waba_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Waba Id"},"waba_currency":{"anyOf":[{"type":"string","maxLength":8,"minLength":3},{"type":"null"}],"title":"Waba Currency"}},"type":"object","title":"AttachCreditLineRequest"},"AudiencePreviewRequest":{"properties":{"segment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Segment Id"},"filters":{"anyOf":[{"$ref":"#/components/schemas/SegmentFilters"},{"type":"null"}]},"channel_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Id"},"limit":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Limit","default":25}},"type":"object","title":"AudiencePreviewRequest"},"AuditLogResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"action":{"type":"string","title":"Action"},"resource_type":{"type":"string","title":"Resource Type"},"resource_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Id"},"extra":{"additionalProperties":true,"type":"object","title":"Extra"},"ip_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ip Address"},"user_agent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Agent"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organization_id","user_id","action","resource_type","resource_id","extra","ip_address","user_agent","created_at"],"title":"AuditLogResponse"},"AuthResponse":{"properties":{"tokens":{"$ref":"#/components/schemas/TokenPair"},"must_change_password":{"type":"boolean","title":"Must Change Password","default":false}},"type":"object","required":["tokens"],"title":"AuthResponse"},"AutoReplyCreate":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"reply_kind":{"type":"string","enum":["automatic","quick"],"title":"Reply Kind","default":"automatic"},"channel_scope":{"type":"string","enum":["all","whatsapp","instagram","messenger","telegram","tiktok","snapchat"],"title":"Channel Scope","default":"all"},"channel_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Id"},"trigger_type":{"type":"string","enum":["first_message","keyword","any_message"],"title":"Trigger Type","default":"first_message"},"keywords":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Keywords"},"message_text":{"type":"string","maxLength":4096,"minLength":1,"title":"Message Text"},"enabled":{"type":"boolean","title":"Enabled","default":true},"priority":{"type":"integer","maximum":1000.0,"minimum":0.0,"title":"Priority","default":0},"folder_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Folder Id"},"shortcut":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Shortcut"},"restricted_team_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Restricted Team Ids"},"restricted_role":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Restricted Role"}},"type":"object","required":["name","message_text"],"title":"AutoReplyCreate"},"AutoReplyResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"reply_kind":{"type":"string","title":"Reply Kind"},"channel_scope":{"type":"string","title":"Channel Scope"},"channel_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Id"},"trigger_type":{"type":"string","title":"Trigger Type"},"keywords":{"items":{"type":"string"},"type":"array","title":"Keywords"},"message_text":{"type":"string","title":"Message Text"},"enabled":{"type":"boolean","title":"Enabled"},"priority":{"type":"integer","title":"Priority"},"folder_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Folder Id"},"shortcut":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Shortcut"},"restricted_team_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Restricted Team Ids"},"restricted_role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Restricted Role"},"usage_count":{"type":"integer","title":"Usage Count","default":0},"is_favorite":{"type":"boolean","title":"Is Favorite","default":false}},"type":"object","required":["id","created_at","updated_at","organization_id","name","reply_kind","channel_scope","channel_id","trigger_type","message_text","enabled","priority"],"title":"AutoReplyResponse"},"AutoReplyUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Name"},"reply_kind":{"anyOf":[{"type":"string","enum":["automatic","quick"]},{"type":"null"}],"title":"Reply Kind"},"channel_scope":{"anyOf":[{"type":"string","enum":["all","whatsapp","instagram","messenger","telegram","tiktok","snapchat"]},{"type":"null"}],"title":"Channel Scope"},"channel_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Id"},"trigger_type":{"anyOf":[{"type":"string","enum":["first_message","keyword","any_message"]},{"type":"null"}],"title":"Trigger Type"},"keywords":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":20},{"type":"null"}],"title":"Keywords"},"message_text":{"anyOf":[{"type":"string","maxLength":4096,"minLength":1},{"type":"null"}],"title":"Message Text"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"priority":{"anyOf":[{"type":"integer","maximum":1000.0,"minimum":0.0},{"type":"null"}],"title":"Priority"},"folder_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Folder Id"},"shortcut":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Shortcut"},"restricted_team_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Restricted Team Ids"},"restricted_role":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Restricted Role"}},"type":"object","title":"AutoReplyUpdate"},"BillingModeUpdate":{"properties":{"waba_id":{"type":"string","maxLength":64,"title":"Waba Id"},"mode":{"type":"string","enum":["partner_credit","self_billed"],"title":"Mode"},"reason":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Reason"}},"type":"object","required":["waba_id","mode"],"title":"BillingModeUpdate"},"BillingOverviewResponse":{"properties":{"plan":{"$ref":"#/components/schemas/OrganizationPlan"},"subscription_status":{"type":"string","title":"Subscription Status"},"renewal_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Renewal At"},"cancel_at_period_end":{"type":"boolean","title":"Cancel At Period End","default":false},"usage":{"$ref":"#/components/schemas/UsageSummary"},"limits":{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"string"}]},"type":"object","title":"Limits"},"entitlements":{"$ref":"#/components/schemas/PlanEntitlements"},"extra_users":{"type":"integer","title":"Extra Users","default":0},"extra_channels":{"type":"integer","title":"Extra Channels","default":0},"included_agents":{"type":"integer","title":"Included Agents","default":0},"included_channels":{"type":"integer","title":"Included Channels","default":0},"extra_user_cents":{"type":"integer","title":"Extra User Cents","default":1000},"extra_channel_cents":{"type":"integer","title":"Extra Channel Cents","default":2500},"trial_ends_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Trial Ends At"},"is_trialing":{"type":"boolean","title":"Is Trialing","default":false}},"type":"object","required":["plan","subscription_status","renewal_at","usage","limits"],"title":"BillingOverviewResponse"},"BillingPortalResponse":{"properties":{"portal_url":{"type":"string","title":"Portal Url"}},"type":"object","required":["portal_url"],"title":"BillingPortalResponse"},"Bitrix24CrmUser":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"active":{"type":"boolean","title":"Active","default":true}},"type":"object","required":["id","name"],"title":"Bitrix24CrmUser"},"Bitrix24CrmUsersResponse":{"properties":{"users":{"items":{"$ref":"#/components/schemas/Bitrix24CrmUser"},"type":"array","title":"Users"}},"type":"object","title":"Bitrix24CrmUsersResponse"},"Bitrix24CustomFieldsResponse":{"properties":{"entity_type":{"type":"string","enum":["contact","deal"],"title":"Entity Type"},"external_id":{"type":"string","title":"External Id"},"fields":{"items":{"$ref":"#/components/schemas/Bitrix24FieldValue"},"type":"array","title":"Fields"}},"type":"object","required":["entity_type","external_id"],"title":"Bitrix24CustomFieldsResponse"},"Bitrix24DealChannelRule":{"properties":{"channel_id":{"type":"string","format":"uuid","title":"Channel Id"},"channel_account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Account Id"},"mode":{"type":"string","enum":["create","update_existing"],"title":"Mode","default":"create"},"pipeline_id":{"type":"string","title":"Pipeline Id","default":"0"},"stage_id":{"type":"string","title":"Stage Id"},"deal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Id"}},"type":"object","required":["channel_id","stage_id"],"title":"Bitrix24DealChannelRule"},"Bitrix24DealSummary":{"properties":{"id":{"type":"string","title":"Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"stage_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Id"},"pipeline_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Id"},"contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Id"},"portal_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Portal Url"}},"type":"object","required":["id"],"title":"Bitrix24DealSummary"},"Bitrix24FieldCatalogResponse":{"properties":{"contact":{"items":{"$ref":"#/components/schemas/Bitrix24FieldDefinition"},"type":"array","title":"Contact"},"deal":{"items":{"$ref":"#/components/schemas/Bitrix24FieldDefinition"},"type":"array","title":"Deal"},"selected_fields":{"$ref":"#/components/schemas/Bitrix24SelectedFields"}},"type":"object","title":"Bitrix24FieldCatalogResponse"},"Bitrix24FieldDefinition":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"type":{"type":"string","title":"Type"},"multiple":{"type":"boolean","title":"Multiple","default":false},"required":{"type":"boolean","title":"Required","default":false},"read_only":{"type":"boolean","title":"Read Only","default":false},"options":{"items":{"$ref":"#/components/schemas/Bitrix24FieldOption"},"type":"array","title":"Options"}},"type":"object","required":["id","title","type"],"title":"Bitrix24FieldDefinition"},"Bitrix24FieldOption":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"}},"type":"object","required":["id","label"],"title":"Bitrix24FieldOption"},"Bitrix24FieldValue":{"properties":{"field":{"$ref":"#/components/schemas/Bitrix24FieldDefinition"},"value":{"title":"Value"}},"type":"object","required":["field"],"title":"Bitrix24FieldValue"},"Bitrix24KanbanCardFields":{"properties":{"show_deal_title":{"type":"boolean","title":"Show Deal Title","default":false},"show_stage_name":{"type":"boolean","title":"Show Stage Name","default":true},"show_assigned_by":{"type":"boolean","title":"Show Assigned By","default":true},"deal_field_ids":{"items":{"type":"string"},"type":"array","title":"Deal Field Ids"}},"type":"object","title":"Bitrix24KanbanCardFields","description":"Allowlisted deal fields shown on inbox Kanban cards."},"Bitrix24Pipeline":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"stages":{"items":{"$ref":"#/components/schemas/Bitrix24PipelineStage"},"type":"array","title":"Stages"}},"type":"object","required":["id","name"],"title":"Bitrix24Pipeline"},"Bitrix24PipelineStage":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"sort":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sort"},"semantics":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Semantics"}},"type":"object","required":["id","name"],"title":"Bitrix24PipelineStage"},"Bitrix24SelectedFields":{"properties":{"contact":{"items":{"type":"string"},"type":"array","title":"Contact"},"deal":{"items":{"type":"string"},"type":"array","title":"Deal"}},"type":"object","title":"Bitrix24SelectedFields"},"Bitrix24Settings":{"properties":{"sync_contacts":{"type":"boolean","title":"Sync Contacts","default":true},"sync_deals":{"type":"boolean","title":"Sync Deals","default":true},"sync_activities":{"type":"boolean","title":"Sync Activities","default":true},"auto_create_deal":{"type":"boolean","title":"Auto Create Deal","default":false},"open_channels_enabled":{"type":"boolean","title":"Open Channels Enabled","default":true},"connector_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Connector Id"},"line_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Line Id"},"default_deal_title":{"type":"string","title":"Default Deal Title","default":"Truechat conversation"},"deal_channel_rules":{"items":{"$ref":"#/components/schemas/Bitrix24DealChannelRule"},"type":"array","title":"Deal Channel Rules"},"selected_fields":{"$ref":"#/components/schemas/Bitrix24SelectedFields"},"kanban_card_fields":{"$ref":"#/components/schemas/Bitrix24KanbanCardFields"}},"type":"object","title":"Bitrix24Settings"},"Bitrix24StatusResponse":{"properties":{"provider":{"type":"string","title":"Provider","default":"bitrix24"},"status":{"type":"string","title":"Status"},"portal_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Portal Domain"},"crm_status":{"type":"string","title":"Crm Status"},"crm_webhook_configured":{"type":"boolean","title":"Crm Webhook Configured"},"openlines_status":{"type":"string","title":"Openlines Status"},"client_id_configured":{"type":"boolean","title":"Client Id Configured"},"has_tokens":{"type":"boolean","title":"Has Tokens"},"oauth_handler_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oauth Handler Url"},"crm_events_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Events Url"},"template_webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Webhook Url"},"token_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Token Expires At"},"connector_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Connector Id"},"line_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Line Id"},"settings":{"$ref":"#/components/schemas/Bitrix24Settings"},"last_sync_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Sync At"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"}},"type":"object","required":["status","crm_status","crm_webhook_configured","openlines_status","client_id_configured","has_tokens","settings"],"title":"Bitrix24StatusResponse"},"BitrixContactLinkRequest":{"properties":{"external_id":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"External Id"}},"type":"object","title":"BitrixContactLinkRequest","description":"Owner-only Bitrix CRM contact link. Empty/null external_id clears the link."},"Body_upload_channel_profile_picture_api_v1_channels__channel_id__config_profile_picture_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_channel_profile_picture_api_v1_channels__channel_id__config_profile_picture_post"},"Body_upload_inbox_media_api_v1_inbox_media_upload_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_inbox_media_api_v1_inbox_media_upload_post"},"Body_upload_my_avatar_api_v1_users_me_avatar_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_my_avatar_api_v1_users_me_avatar_post"},"Body_upload_template_media_handle_api_v1_channels__channel_id__config_templates_media_handle_post":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_template_media_handle_api_v1_channels__channel_id__config_templates_media_handle_post"},"BreakTypeOption":{"properties":{"id":{"$ref":"#/components/schemas/AgentBreakType"},"label":{"type":"string","title":"Label"}},"type":"object","required":["id","label"],"title":"BreakTypeOption"},"BroadcastActionRequest":{"properties":{"action":{"type":"string","enum":["start","pause","resume","cancel"],"title":"Action"}},"type":"object","required":["action"],"title":"BroadcastActionRequest"},"BroadcastAnalyticsPoint":{"properties":{"date":{"type":"string","title":"Date"},"sent":{"type":"integer","title":"Sent","default":0},"delivered":{"type":"integer","title":"Delivered","default":0},"read":{"type":"integer","title":"Read","default":0},"replies":{"type":"integer","title":"Replies","default":0}},"type":"object","required":["date"],"title":"BroadcastAnalyticsPoint"},"BroadcastAnalyticsResponse":{"properties":{"stats":{"$ref":"#/components/schemas/BroadcastStats"},"timeline":{"items":{"$ref":"#/components/schemas/BroadcastAnalyticsPoint"},"type":"array","title":"Timeline"}},"type":"object","required":["stats","timeline"],"title":"BroadcastAnalyticsResponse"},"BroadcastCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"channel_type":{"$ref":"#/components/schemas/ChannelType"},"channel_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Id"},"channel_account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Account Id"},"segment_id":{"type":"string","format":"uuid","title":"Segment Id"},"message_payload":{"$ref":"#/components/schemas/BroadcastMessagePayload"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"status":{"$ref":"#/components/schemas/BroadcastStatus","default":"draft"}},"type":"object","required":["name","channel_type","segment_id"],"title":"BroadcastCreate"},"BroadcastDetailResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/BroadcastStatus"},"channel_type":{"$ref":"#/components/schemas/ChannelType"},"channel_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Id"},"segment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Segment Id"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"stats":{"$ref":"#/components/schemas/BroadcastStats"},"message_payload":{"additionalProperties":true,"type":"object","title":"Message Payload"},"created_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By User Id"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["id","created_at","updated_at","organization_id","name","status","channel_type","channel_id","segment_id","scheduled_at","started_at","completed_at","stats","message_payload","created_by_user_id"],"title":"BroadcastDetailResponse"},"BroadcastListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"status":{"$ref":"#/components/schemas/BroadcastStatus"},"channel_type":{"$ref":"#/components/schemas/ChannelType"},"channel_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Id"},"segment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Segment Id"},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"stats":{"$ref":"#/components/schemas/BroadcastStats"}},"type":"object","required":["id","created_at","updated_at","organization_id","name","status","channel_type","channel_id","segment_id","scheduled_at","started_at","completed_at","stats"],"title":"BroadcastListItem"},"BroadcastMessagePayload":{"properties":{"message_type":{"type":"string","enum":["template","text"],"title":"Message Type","default":"text"},"template_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Name"},"language_code":{"type":"string","title":"Language Code","default":"en_US"},"components":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Components"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"}},"type":"object","title":"BroadcastMessagePayload"},"BroadcastScheduleRequest":{"properties":{"scheduled_at":{"type":"string","format":"date-time","title":"Scheduled At"}},"type":"object","required":["scheduled_at"],"title":"BroadcastScheduleRequest"},"BroadcastStats":{"properties":{"sent":{"type":"integer","title":"Sent","default":0},"delivered":{"type":"integer","title":"Delivered","default":0},"read":{"type":"integer","title":"Read","default":0},"replies":{"type":"integer","title":"Replies","default":0},"failed":{"type":"integer","title":"Failed","default":0},"pending":{"type":"integer","title":"Pending","default":0},"total_recipients":{"type":"integer","title":"Total Recipients","default":0}},"type":"object","title":"BroadcastStats"},"BroadcastStatus":{"type":"string","enum":["draft","scheduled","running","paused","completed","failed"],"title":"BroadcastStatus"},"BroadcastUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"channel_type":{"anyOf":[{"$ref":"#/components/schemas/ChannelType"},{"type":"null"}]},"channel_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Id"},"channel_account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Account Id"},"segment_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Segment Id"},"message_payload":{"anyOf":[{"$ref":"#/components/schemas/BroadcastMessagePayload"},{"type":"null"}]},"scheduled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled At"},"status":{"anyOf":[{"$ref":"#/components/schemas/BroadcastStatus"},{"type":"null"}]}},"type":"object","title":"BroadcastUpdate"},"CannedReplyFolderCreate":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"position":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Position"}},"type":"object","required":["name"],"title":"CannedReplyFolderCreate"},"CannedReplyFolderResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"position":{"type":"integer","title":"Position","default":0}},"type":"object","required":["id","created_at","updated_at","organization_id","name"],"title":"CannedReplyFolderResponse"},"CannedReplyFolderUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Name"},"position":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Position"}},"type":"object","title":"CannedReplyFolderUpdate"},"ChangePasswordRequest":{"properties":{"current_password":{"type":"string","maxLength":128,"minLength":1,"title":"Current Password"},"new_password":{"type":"string","maxLength":128,"minLength":12,"title":"New Password"}},"type":"object","required":["current_password","new_password"],"title":"ChangePasswordRequest"},"ChangePlanRequest":{"properties":{"plan":{"$ref":"#/components/schemas/OrganizationPlan"}},"type":"object","required":["plan"],"title":"ChangePlanRequest"},"ChannelAccountDetailsResponse":{"properties":{"channel_id":{"type":"string","format":"uuid","title":"Channel Id"},"channel_type":{"type":"string","title":"Channel Type"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"business_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Name"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"profile_picture_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Picture Url"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"waba_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Waba Id"},"phone_number_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number Id"},"api_phone_number_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Api Phone Number Id"},"page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Id"},"ig_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ig User Id"},"account_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Status"},"phone_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Status"},"quality_rating":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quality Rating"},"messaging_limit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Messaging Limit"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"onboarded":{"type":"boolean","title":"Onboarded","default":false},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["channel_id","channel_type"],"title":"ChannelAccountDetailsResponse"},"ChannelAccountRenameRequest":{"properties":{"account_name":{"type":"string","maxLength":255,"minLength":1,"title":"Account Name"}},"type":"object","required":["account_name"],"title":"ChannelAccountRenameRequest"},"ChannelAccountSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"external_account_id":{"type":"string","title":"External Account Id"},"account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Name"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"status":{"type":"string","title":"Status"},"token_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Token Expires At"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","external_account_id","account_name","status","token_expires_at","created_at"],"title":"ChannelAccountSummary"},"ChannelBillingResponse":{"properties":{"partner_billing_enabled":{"type":"boolean","title":"Partner Billing Enabled"},"credit_line_configured":{"type":"boolean","title":"Credit Line Configured"},"payment_method_ready":{"type":"boolean","title":"Payment Method Ready","default":false},"meta_currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Currency"},"meta_primary_funding_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Primary Funding Id"},"meta_account_review_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Account Review Status"},"owner_business_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Business Id"},"credit_lines":{"items":{"$ref":"#/components/schemas/MetaCreditLineResponse"},"type":"array","title":"Credit Lines"},"meta_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Error"},"waba_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Waba Id"},"profiles":{"items":{"$ref":"#/components/schemas/WabaBillingProfileResponse"},"type":"array","title":"Profiles"}},"type":"object","required":["partner_billing_enabled","credit_line_configured","profiles"],"title":"ChannelBillingResponse"},"ChannelDetailResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"accounts":{"items":{"$ref":"#/components/schemas/ChannelAccountSummary"},"type":"array","title":"Accounts"},"webhook_status":{"type":"string","title":"Webhook Status","default":"unknown"},"sync_status":{"type":"string","title":"Sync Status","default":"unknown"},"quality_rating":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quality Rating"}},"type":"object","required":["id","created_at","updated_at","organization_id","type","name","status"],"title":"ChannelDetailResponse"},"ChannelListItemResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"},"status":{"type":"string","title":"Status"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"account_count":{"type":"integer","title":"Account Count","default":0},"accounts":{"items":{"$ref":"#/components/schemas/ChannelAccountSummary"},"type":"array","title":"Accounts"}},"type":"object","required":["id","created_at","updated_at","organization_id","type","name","status"],"title":"ChannelListItemResponse"},"ChannelProfileResponse":{"properties":{"about":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"About"},"address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"profile_picture_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Picture Url"},"websites":{"items":{"type":"string"},"type":"array","title":"Websites"},"vertical":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vertical"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"phone_number_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number Id"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"name_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name Status"},"new_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Display Name"},"new_name_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"New Name Status"},"is_official_business_account":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Official Business Account"},"oba_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oba Status"},"oba_status_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oba Status Message"},"waba_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Waba Id"},"facebook_page_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Facebook Page Id"},"facebook_page_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Facebook Page Name"},"instagram_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instagram Account Id"},"instagram_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instagram Username"},"meta_manager_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Manager Url"}},"type":"object","title":"ChannelProfileResponse"},"ChannelProfileUpdateRequest":{"properties":{"about":{"anyOf":[{"type":"string","maxLength":139},{"type":"null"}],"title":"About"},"address":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Address"},"description":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Description"},"email":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Email"},"websites":{"items":{"type":"string"},"type":"array","title":"Websites"},"vertical":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Vertical"},"profile_picture_handle":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Profile Picture Handle"}},"type":"object","title":"ChannelProfileUpdateRequest"},"ChannelSettingsResponse":{"properties":{"channel_id":{"type":"string","format":"uuid","title":"Channel Id"},"channel_type":{"type":"string","title":"Channel Type"},"app_id":{"type":"string","title":"App Id"},"meta_webhook_url":{"type":"string","title":"Meta Webhook Url"},"meta_verify_token":{"type":"string","title":"Meta Verify Token"},"template_messaging_enabled":{"type":"boolean","title":"Template Messaging Enabled","default":true},"partner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Partner Name"}},"type":"object","required":["channel_id","channel_type","app_id","meta_webhook_url","meta_verify_token"],"title":"ChannelSettingsResponse"},"ChannelTemplateListResponse":{"properties":{"templates":{"items":{"$ref":"#/components/schemas/WhatsAppTemplateResponse"},"type":"array","title":"Templates"}},"type":"object","title":"ChannelTemplateListResponse"},"ChannelType":{"type":"string","enum":["whatsapp","instagram","messenger","tiktok","snapchat","telegram","email","sms","webchat"],"title":"ChannelType"},"ChannelUsageStat":{"properties":{"channel_type":{"type":"string","title":"Channel Type"},"message_count":{"type":"integer","title":"Message Count"}},"type":"object","required":["channel_type","message_count"],"title":"ChannelUsageStat"},"ChannelWebhookListResponse":{"properties":{"meta_inbound_url":{"type":"string","title":"Meta Inbound Url"},"meta_subscribed":{"type":"boolean","title":"Meta Subscribed"},"outbound_webhooks":{"items":{"$ref":"#/components/schemas/OutboundWebhookConfig"},"type":"array","title":"Outbound Webhooks"}},"type":"object","required":["meta_inbound_url","meta_subscribed"],"title":"ChannelWebhookListResponse"},"CheckoutSessionResponse":{"properties":{"checkout_url":{"type":"string","title":"Checkout Url"},"session_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Session Id"}},"type":"object","required":["checkout_url"],"title":"CheckoutSessionResponse"},"CommentContextResponse":{"properties":{"available":{"type":"boolean","title":"Available","default":true},"platform":{"type":"string","enum":["facebook","instagram"],"title":"Platform"},"source_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body"},"media_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Media Url"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"permalink":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Permalink"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"owner_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Name"},"owner_avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Avatar Url"},"commenter_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commenter Name"},"commenter_username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commenter Username"},"commenter_avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Commenter Avatar Url"},"unavailable_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unavailable Reason"}},"type":"object","required":["platform"],"title":"CommentContextResponse"},"CommentModerationRequest":{"properties":{"comment_id":{"anyOf":[{"type":"string","maxLength":190},{"type":"null"}],"title":"Comment Id"},"hide":{"type":"boolean","title":"Hide","default":true}},"type":"object","title":"CommentModerationRequest"},"CommentPrivateReplyRequest":{"properties":{"text":{"type":"string","maxLength":2000,"minLength":1,"title":"Text"}},"type":"object","required":["text"],"title":"CommentPrivateReplyRequest"},"ConnectChannelType":{"type":"string","enum":["whatsapp","instagram","messenger"],"title":"ConnectChannelType"},"ConnectChannelURLResponse":{"properties":{"url":{"type":"string","title":"Url"},"state":{"type":"string","title":"State"},"channel_type":{"type":"string","title":"Channel Type"},"app_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App Id"},"config_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Config Id"},"graph_api_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Graph Api Version"}},"type":"object","required":["url","state","channel_type"],"title":"ConnectChannelURLResponse"},"ConnectedChannelRow":{"properties":{"id":{"type":"string","title":"Id"},"channel_type":{"type":"string","title":"Channel Type"},"channel_id":{"type":"string","format":"uuid","title":"Channel Id"},"account_name":{"type":"string","title":"Account Name"},"external_account_id":{"type":"string","title":"External Account Id"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"status":{"type":"string","title":"Status"},"connected_at":{"type":"string","format":"date-time","title":"Connected At"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"billing_hold":{"type":"boolean","title":"Billing Hold","default":false}},"type":"object","required":["id","channel_type","channel_id","account_name","external_account_id","status","connected_at"],"title":"ConnectedChannelRow"},"ContactActivityItem":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","enum":["message","note","label","assignment","conversation"],"title":"Type"},"title":{"type":"string","title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"actor_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Actor Id"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"occurred_at":{"type":"string","format":"date-time","title":"Occurred At"}},"type":"object","required":["id","type","title","occurred_at"],"title":"ContactActivityItem"},"ContactAssignRequest":{"properties":{"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned User Id"}},"type":"object","title":"ContactAssignRequest"},"ContactBitrixLinksResponse":{"properties":{"contact":{"anyOf":[{"$ref":"#/components/schemas/IntegrationEntityLinkResponse"},{"type":"null"}]},"deals":{"items":{"$ref":"#/components/schemas/IntegrationEntityLinkResponse"},"type":"array","title":"Deals"}},"type":"object","title":"ContactBitrixLinksResponse"},"ContactChannelSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","type","name"],"title":"ContactChannelSummary"},"ContactCreate":{"properties":{"channel_id":{"type":"string","format":"uuid","title":"Channel Id"},"display_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Display Name"},"phone_number":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Phone Number"},"username":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Username"},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned User Id"},"label_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Label Ids"}},"type":"object","required":["channel_id"],"title":"ContactCreate"},"ContactDetailResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"channel_id":{"type":"string","format":"uuid","title":"Channel Id"},"external_user_id":{"type":"string","title":"External User Id"},"whatsapp_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whatsapp User Id"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"labels":{"items":{"$ref":"#/components/schemas/ContactLabelResponse"},"type":"array","title":"Labels"},"notes":{"items":{"$ref":"#/components/schemas/ContactNoteResponse"},"type":"array","title":"Notes"},"channel":{"anyOf":[{"$ref":"#/components/schemas/ContactChannelSummary"},{"type":"null"}]},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned User Id"},"last_activity_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity At"}},"type":"object","required":["id","created_at","updated_at","organization_id","channel_id","external_user_id","display_name","username","avatar_url","metadata"],"title":"ContactDetailResponse"},"ContactLabelCreate":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"kind":{"type":"string","title":"Kind","default":"custom"},"color":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Color"}},"type":"object","required":["name"],"title":"ContactLabelCreate"},"ContactLabelResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"kind":{"type":"string","title":"Kind"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"is_archived":{"type":"boolean","title":"Is Archived","default":false}},"type":"object","required":["id","created_at","updated_at","organization_id","name","kind","color"],"title":"ContactLabelResponse"},"ContactLabelUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Name"},"kind":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Kind"},"color":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Color"},"is_archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Archived"}},"type":"object","title":"ContactLabelUpdate"},"ContactListItemResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"channel_id":{"type":"string","format":"uuid","title":"Channel Id"},"external_user_id":{"type":"string","title":"External User Id"},"whatsapp_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whatsapp User Id"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"channel":{"anyOf":[{"$ref":"#/components/schemas/ContactChannelSummary"},{"type":"null"}]},"labels":{"items":{"$ref":"#/components/schemas/ContactLabelResponse"},"type":"array","title":"Labels"},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned User Id"},"last_activity_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity At"}},"type":"object","required":["id","created_at","updated_at","organization_id","channel_id","external_user_id","display_name","username","avatar_url"],"title":"ContactListItemResponse"},"ContactMessagingOption":{"properties":{"channel_account_id":{"type":"string","format":"uuid","title":"Channel Account Id"},"channel_id":{"type":"string","format":"uuid","title":"Channel Id"},"channel_type":{"type":"string","title":"Channel Type"},"account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Name"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contact Id"},"conversation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Conversation Id"},"has_existing_conversation":{"type":"boolean","title":"Has Existing Conversation","default":false}},"type":"object","required":["channel_account_id","channel_id","channel_type"],"title":"ContactMessagingOption"},"ContactMessagingOptionsResponse":{"properties":{"options":{"items":{"$ref":"#/components/schemas/ContactMessagingOption"},"type":"array","title":"Options"}},"type":"object","title":"ContactMessagingOptionsResponse"},"ContactNoteCreate":{"properties":{"note":{"type":"string","maxLength":5000,"minLength":1,"title":"Note"}},"type":"object","required":["note"],"title":"ContactNoteCreate"},"ContactNoteResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"contact_id":{"type":"string","format":"uuid","title":"Contact Id"},"author_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Author Id"},"note":{"type":"string","title":"Note"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organization_id","contact_id","author_id","note","created_at"],"title":"ContactNoteResponse"},"ContactNoteUpdate":{"properties":{"note":{"type":"string","maxLength":5000,"minLength":1,"title":"Note"}},"type":"object","required":["note"],"title":"ContactNoteUpdate"},"ContactUpdate":{"properties":{"display_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Display Name"},"username":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Username"},"avatar_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Avatar Url"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned User Id"}},"type":"object","title":"ContactUpdate"},"ConversationMediaItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"message_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Message Id"},"media_type":{"type":"string","title":"Media Type"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"file_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Size"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"caption":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Caption"}},"type":"object","required":["id","message_id","media_type","mime_type","file_size","created_at"],"title":"ConversationMediaItem"},"ConversationParticipantCreate":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"role":{"$ref":"#/components/schemas/ConversationParticipantRole","default":"collaborator"}},"type":"object","required":["user_id"],"title":"ConversationParticipantCreate"},"ConversationParticipantResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"role":{"$ref":"#/components/schemas/ConversationParticipantRole"},"added_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Added By User Id"},"user":{"anyOf":[{"$ref":"#/components/schemas/ConversationParticipantUserSummary"},{"type":"null"}]}},"type":"object","required":["id","created_at","updated_at","organization_id","conversation_id","user_id","role"],"title":"ConversationParticipantResponse"},"ConversationParticipantRole":{"type":"string","enum":["collaborator","observer"],"title":"ConversationParticipantRole"},"ConversationParticipantUserSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"full_name":{"type":"string","title":"Full Name"},"email":{"type":"string","title":"Email"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"}},"type":"object","required":["id","full_name","email"],"title":"ConversationParticipantUserSummary"},"ConversationPriority":{"type":"string","enum":["low","normal","high","urgent"],"title":"ConversationPriority"},"ConversationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"channel_id":{"type":"string","format":"uuid","title":"Channel Id"},"contact_id":{"type":"string","format":"uuid","title":"Contact Id"},"channel_account_id":{"type":"string","format":"uuid","title":"Channel Account Id"},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned User Id"},"status":{"$ref":"#/components/schemas/ConversationStatus","default":"open"},"last_message_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message At"},"unread_count":{"type":"integer","title":"Unread Count","default":0},"whatsapp_phone_number_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Whatsapp Phone Number Id"},"customer_wa_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Wa Id"},"customer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Name"}},"type":"object","required":["id","created_at","updated_at","organization_id","channel_id","contact_id","channel_account_id","last_message_at"],"title":"ConversationResponse"},"ConversationStatus":{"type":"string","enum":["new","open","pending","waiting_customer","waiting_agent","escalated","resolved","closed","archived","spam"],"title":"ConversationStatus"},"ConversationTagAssignRequest":{"properties":{"tag_id":{"type":"string","format":"uuid","title":"Tag Id"}},"type":"object","required":["tag_id"],"title":"ConversationTagAssignRequest"},"ConversationTagCreate":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"color":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Color"}},"type":"object","required":["name"],"title":"ConversationTagCreate"},"ConversationTagResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"is_archived":{"type":"boolean","title":"Is Archived","default":false}},"type":"object","required":["id","created_at","updated_at","organization_id","name"],"title":"ConversationTagResponse"},"ConversationTagUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Name"},"color":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Color"},"is_archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Archived"}},"type":"object","title":"ConversationTagUpdate"},"ConversationType":{"type":"string","enum":["customer_service","internal_direct","internal_group","external_user_group","public_group","hybrid_group","public_comment"],"title":"ConversationType"},"CreateDealRequest":{"properties":{"contact_id":{"type":"string","format":"uuid","title":"Contact Id"},"conversation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Conversation Id"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"}},"type":"object","required":["contact_id"],"title":"CreateDealRequest"},"CreateOutboundWebhookRequest":{"properties":{"name":{"type":"string","maxLength":64,"minLength":1,"title":"Name"},"callback_url":{"type":"string","maxLength":2083,"minLength":1,"format":"uri","title":"Callback Url"},"payload_format":{"type":"string","enum":["meta_v3","truechat_v2","trueshup_v1"],"title":"Payload Format","default":"trueshup_v1"},"events":{"items":{"type":"string"},"type":"array","title":"Events"},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers"}},"type":"object","required":["name","callback_url"],"title":"CreateOutboundWebhookRequest"},"CreateWhatsAppTemplateRequest":{"properties":{"name":{"type":"string","maxLength":512,"minLength":1,"pattern":"^[a-z0-9_]+$","title":"Name"},"category":{"type":"string","enum":["MARKETING","UTILITY","AUTHENTICATION"],"title":"Category"},"language":{"type":"string","maxLength":32,"title":"Language","default":"en_US"},"components":{"items":{"$ref":"#/components/schemas/WhatsAppTemplateComponent"},"type":"array","minItems":1,"title":"Components"},"variable_bindings":{"anyOf":[{"additionalProperties":{"additionalProperties":{"type":"string"},"type":"object"},"type":"object"},{"type":"null"}],"title":"Variable Bindings"}},"type":"object","required":["name","category","components"],"title":"CreateWhatsAppTemplateRequest"},"CsatConfigResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled","default":false},"prompt_text":{"type":"string","title":"Prompt Text","default":"How would you rate your experience? Reply with a number from 1 to 5."},"trigger":{"type":"string","enum":["on_close","on_resolved","on_closed"],"title":"Trigger","default":"on_close"},"expire_hours":{"type":"integer","title":"Expire Hours","default":72}},"type":"object","title":"CsatConfigResponse"},"CsatConfigUpdate":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"prompt_text":{"anyOf":[{"type":"string","maxLength":2000,"minLength":1},{"type":"null"}],"title":"Prompt Text"},"trigger":{"anyOf":[{"type":"string","enum":["on_close","on_resolved","on_closed"]},{"type":"null"}],"title":"Trigger"},"expire_hours":{"anyOf":[{"type":"integer","maximum":720.0,"minimum":1.0},{"type":"null"}],"title":"Expire Hours"}},"type":"object","title":"CsatConfigUpdate"},"CsatResponseItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"channel_id":{"type":"string","format":"uuid","title":"Channel Id"},"message_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Message Id"},"status":{"type":"string","title":"Status"},"score":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Score"},"comment":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Comment"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"responded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Responded At"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"agent_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Agent User Id"},"agent_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agent Name"},"contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contact Id"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"channel_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Type"}},"type":"object","required":["id","created_at","updated_at","organization_id","conversation_id","channel_id","status"],"title":"CsatResponseItem"},"CsatSummaryResponse":{"properties":{"date_from":{"type":"string","format":"date-time","title":"Date From"},"date_to":{"type":"string","format":"date-time","title":"Date To"},"average_score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Average Score"},"response_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Response Rate"},"sent_count":{"type":"integer","title":"Sent Count","default":0},"responded_count":{"type":"integer","title":"Responded Count","default":0},"expired_count":{"type":"integer","title":"Expired Count","default":0},"failed_count":{"type":"integer","title":"Failed Count","default":0},"skipped_count":{"type":"integer","title":"Skipped Count","default":0},"distribution":{"additionalProperties":{"type":"integer"},"type":"object","title":"Distribution"}},"type":"object","required":["date_from","date_to"],"title":"CsatSummaryResponse"},"CustomFieldDefinitionCreate":{"properties":{"entity":{"$ref":"#/components/schemas/CustomFieldEntity"},"label":{"type":"string","maxLength":120,"minLength":1,"title":"Label"},"key":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Key"},"field_type":{"$ref":"#/components/schemas/CustomFieldType"},"options":{"items":{"$ref":"#/components/schemas/CustomFieldOption"},"type":"array","title":"Options"},"required_stage_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Required Stage Ids"},"position":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Position"}},"type":"object","required":["entity","label","field_type"],"title":"CustomFieldDefinitionCreate"},"CustomFieldDefinitionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"entity":{"$ref":"#/components/schemas/CustomFieldEntity"},"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"field_type":{"$ref":"#/components/schemas/CustomFieldType"},"options":{"items":{"$ref":"#/components/schemas/CustomFieldOption"},"type":"array","title":"Options"},"required_stage_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Required Stage Ids"},"position":{"type":"integer","title":"Position","default":0},"is_archived":{"type":"boolean","title":"Is Archived","default":false}},"type":"object","required":["id","created_at","updated_at","organization_id","entity","key","label","field_type"],"title":"CustomFieldDefinitionResponse"},"CustomFieldDefinitionUpdate":{"properties":{"label":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Label"},"field_type":{"anyOf":[{"$ref":"#/components/schemas/CustomFieldType"},{"type":"null"}]},"options":{"anyOf":[{"items":{"$ref":"#/components/schemas/CustomFieldOption"},"type":"array"},{"type":"null"}],"title":"Options"},"required_stage_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Required Stage Ids"},"position":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Position"},"is_archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Archived"}},"type":"object","title":"CustomFieldDefinitionUpdate"},"CustomFieldEntity":{"type":"string","enum":["contact","conversation"],"title":"CustomFieldEntity"},"CustomFieldOption":{"properties":{"id":{"type":"string","maxLength":64,"minLength":1,"title":"Id"},"label":{"type":"string","maxLength":120,"minLength":1,"title":"Label"}},"type":"object","required":["id","label"],"title":"CustomFieldOption"},"CustomFieldReorderRequest":{"properties":{"entity":{"$ref":"#/components/schemas/CustomFieldEntity"},"field_ids":{"items":{"type":"string","format":"uuid"},"type":"array","minItems":1,"title":"Field Ids"}},"type":"object","required":["entity","field_ids"],"title":"CustomFieldReorderRequest"},"CustomFieldType":{"type":"string","enum":["text","number","date","boolean","select","multi_select","url"],"title":"CustomFieldType"},"CustomFieldValuesResponse":{"properties":{"entity":{"$ref":"#/components/schemas/CustomFieldEntity"},"fields":{"items":{"$ref":"#/components/schemas/CustomFieldDefinitionResponse"},"type":"array","title":"Fields"},"values":{"additionalProperties":true,"type":"object","title":"Values"}},"type":"object","required":["entity","fields"],"title":"CustomFieldValuesResponse"},"CustomFieldValuesUpdate":{"properties":{"values":{"additionalProperties":true,"type":"object","title":"Values"}},"type":"object","title":"CustomFieldValuesUpdate"},"DashboardAccessibleAccount":{"properties":{"channel_account_id":{"type":"string","format":"uuid","title":"Channel Account Id"},"channel_id":{"type":"string","format":"uuid","title":"Channel Id"},"channel_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Type"},"account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Name"},"source_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Number"}},"type":"object","required":["channel_account_id","channel_id"],"title":"DashboardAccessibleAccount"},"DashboardChannelBreakdown":{"properties":{"channel_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Id"},"channel_account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Account Id"},"channel_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Type"},"channel_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Name"},"account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Name"},"source_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Number"},"conversation_count":{"type":"integer","title":"Conversation Count","default":0},"message_count":{"type":"integer","title":"Message Count","default":0},"spent_micros":{"type":"integer","title":"Spent Micros","default":0}},"type":"object","title":"DashboardChannelBreakdown"},"DashboardSummaryResponse":{"properties":{"date_from":{"type":"string","format":"date-time","title":"Date From"},"date_to":{"type":"string","format":"date-time","title":"Date To"},"open_conversations":{"type":"integer","title":"Open Conversations","default":0},"closed_conversations":{"type":"integer","title":"Closed Conversations","default":0},"avg_first_response_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg First Response Minutes"},"avg_resolution_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avg Resolution Minutes"},"csat_average":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Csat Average"},"csat_response_count":{"type":"integer","title":"Csat Response Count","default":0},"csat_response_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Csat Response Rate"},"message_count":{"type":"integer","title":"Message Count","default":0},"timeline":{"items":{"$ref":"#/components/schemas/DashboardTimelinePoint"},"type":"array","title":"Timeline"},"by_channel":{"items":{"$ref":"#/components/schemas/DashboardChannelBreakdown"},"type":"array","title":"By Channel"},"by_status":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Status"},"selected_channel_account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Selected Channel Account Id"},"accessible_accounts":{"items":{"$ref":"#/components/schemas/DashboardAccessibleAccount"},"type":"array","title":"Accessible Accounts"},"month_spent_micros":{"type":"integer","title":"Month Spent Micros","default":0},"month_billable_messages":{"type":"integer","title":"Month Billable Messages","default":0},"month_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Month From"},"month_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Month To"}},"type":"object","required":["date_from","date_to"],"title":"DashboardSummaryResponse"},"DashboardTimelinePoint":{"properties":{"date":{"type":"string","title":"Date"},"conversations":{"type":"integer","title":"Conversations","default":0},"messages":{"type":"integer","title":"Messages","default":0},"closed":{"type":"integer","title":"Closed","default":0}},"type":"object","required":["date"],"title":"DashboardTimelinePoint"},"DeadLetterEventResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"event_type":{"type":"string","title":"Event Type"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"reason":{"type":"string","title":"Reason"},"retry_count":{"type":"integer","title":"Retry Count"},"failed_at":{"type":"string","format":"date-time","title":"Failed At"}},"type":"object","required":["id","organization_id","event_type","payload","reason","retry_count","failed_at"],"title":"DeadLetterEventResponse"},"DeleteAccountRequest":{"properties":{"password":{"type":"string","maxLength":128,"minLength":1,"title":"Password"}},"type":"object","required":["password"],"title":"DeleteAccountRequest"},"DisplayNameRequest":{"properties":{"new_display_name":{"type":"string","maxLength":256,"minLength":1,"title":"New Display Name"}},"type":"object","required":["new_display_name"],"title":"DisplayNameRequest"},"EmailAccountResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"email":{"type":"string","title":"Email"},"account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Name"},"status":{"type":"string","title":"Status"},"provider":{"type":"string","title":"Provider","default":"gmail"},"picture":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Picture"},"watch_expiration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Watch Expiration"},"history_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"History Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","email","status","created_at","updated_at"],"title":"EmailAccountResponse"},"EmailAddress":{"properties":{"name":{"type":"string","title":"Name","default":""},"email":{"type":"string","title":"Email"}},"type":"object","required":["email"],"title":"EmailAddress"},"EmailAttachmentMeta":{"properties":{"filename":{"type":"string","title":"Filename"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Size"},"attachment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attachment Id"},"content_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Id"},"inline":{"type":"boolean","title":"Inline","default":false}},"type":"object","required":["filename"],"title":"EmailAttachmentMeta"},"EmailComposeRequest":{"properties":{"channel_account_id":{"type":"string","format":"uuid","title":"Channel Account Id"},"to":{"items":{"type":"string"},"type":"array","minItems":1,"title":"To"},"subject":{"type":"string","title":"Subject","default":""},"plain_body":{"type":"string","title":"Plain Body","default":""},"html_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Body"},"cc":{"items":{"type":"string"},"type":"array","title":"Cc"},"bcc":{"items":{"type":"string"},"type":"array","title":"Bcc"},"from_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Email"},"reply_to_message_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reply To Message Id"},"conversation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Conversation Id"},"gmail_thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gmail Thread Id"},"mode":{"type":"string","title":"Mode","default":"compose"},"attachments":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Attachments"}},"type":"object","required":["channel_account_id","to"],"title":"EmailComposeRequest"},"EmailDraftResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"channel_account_id":{"type":"string","format":"uuid","title":"Channel Account Id"},"conversation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Conversation Id"},"gmail_draft_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gmail Draft Id"},"gmail_thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gmail Thread Id"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snippet"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","channel_account_id","updated_at"],"title":"EmailDraftResponse"},"EmailDraftUpsertRequest":{"properties":{"channel_account_id":{"type":"string","format":"uuid","title":"Channel Account Id"},"conversation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Conversation Id"},"gmail_thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gmail Thread Id"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"to":{"items":{"type":"string"},"type":"array","title":"To"},"cc":{"items":{"type":"string"},"type":"array","title":"Cc"},"bcc":{"items":{"type":"string"},"type":"array","title":"Bcc"},"plain_body":{"type":"string","title":"Plain Body","default":""},"html_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Body"},"from_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"From Email"}},"type":"object","required":["channel_account_id"],"title":"EmailDraftUpsertRequest"},"EmailFilterResponse":{"properties":{"id":{"type":"string","title":"Id"},"criteria":{"additionalProperties":true,"type":"object","title":"Criteria"},"action":{"additionalProperties":true,"type":"object","title":"Action"}},"type":"object","required":["id"],"title":"EmailFilterResponse"},"EmailLabelResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"label_id":{"type":"string","title":"Label Id"},"name":{"type":"string","title":"Name"},"label_type":{"type":"string","title":"Label Type"},"color":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Color"},"messages_unread":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Messages Unread"},"threads_unread":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Threads Unread"}},"type":"object","required":["id","label_id","name","label_type"],"title":"EmailLabelResponse"},"EmailMessageResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"external_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Message Id"},"direction":{"type":"string","title":"Direction"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snippet"},"plain_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plain Body"},"html_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html Body"},"from_addresses":{"items":{"$ref":"#/components/schemas/EmailAddress"},"type":"array","title":"From Addresses"},"to":{"items":{"$ref":"#/components/schemas/EmailAddress"},"type":"array","title":"To"},"cc":{"items":{"$ref":"#/components/schemas/EmailAddress"},"type":"array","title":"Cc"},"bcc":{"items":{"$ref":"#/components/schemas/EmailAddress"},"type":"array","title":"Bcc"},"attachments":{"items":{"$ref":"#/components/schemas/EmailAttachmentMeta"},"type":"array","title":"Attachments"},"label_ids":{"items":{"type":"string"},"type":"array","title":"Label Ids"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"is_unread":{"type":"boolean","title":"Is Unread","default":false}},"type":"object","required":["id","conversation_id","direction","created_at"],"title":"EmailMessageResponse"},"EmailSendAsResponse":{"properties":{"send_as_email":{"type":"string","title":"Send As Email"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"is_primary":{"type":"boolean","title":"Is Primary","default":false},"is_default":{"type":"boolean","title":"Is Default","default":false},"verification_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verification Status"}},"type":"object","required":["send_as_email"],"title":"EmailSendAsResponse"},"EmailThreadDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"channel_account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Account Id"},"contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contact Id"},"gmail_thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gmail Thread Id"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snippet"},"participants":{"items":{"type":"string"},"type":"array","title":"Participants"},"label_ids":{"items":{"type":"string"},"type":"array","title":"Label Ids"},"is_starred":{"type":"boolean","title":"Is Starred","default":false},"is_important":{"type":"boolean","title":"Is Important","default":false},"is_unread":{"type":"boolean","title":"Is Unread","default":false},"has_attachments":{"type":"boolean","title":"Has Attachments","default":false},"snoozed_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Snoozed Until"},"unread_count":{"type":"integer","title":"Unread Count","default":0},"last_message_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message At"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"messages":{"items":{"$ref":"#/components/schemas/EmailMessageResponse"},"type":"array","title":"Messages"}},"type":"object","required":["id"],"title":"EmailThreadDetail"},"EmailThreadListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"channel_account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Account Id"},"contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contact Id"},"gmail_thread_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gmail Thread Id"},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subject"},"snippet":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Snippet"},"participants":{"items":{"type":"string"},"type":"array","title":"Participants"},"label_ids":{"items":{"type":"string"},"type":"array","title":"Label Ids"},"is_starred":{"type":"boolean","title":"Is Starred","default":false},"is_important":{"type":"boolean","title":"Is Important","default":false},"is_unread":{"type":"boolean","title":"Is Unread","default":false},"has_attachments":{"type":"boolean","title":"Has Attachments","default":false},"snoozed_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Snoozed Until"},"unread_count":{"type":"integer","title":"Unread Count","default":0},"last_message_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message At"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},"type":"object","required":["id"],"title":"EmailThreadListItem"},"EmailThreadUpdateRequest":{"properties":{"archive":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Archive"},"trash":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Trash"},"spam":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Spam"},"star":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Star"},"important":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Important"},"mark_read":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mark Read"},"add_label_ids":{"items":{"type":"string"},"type":"array","title":"Add Label Ids"},"remove_label_ids":{"items":{"type":"string"},"type":"array","title":"Remove Label Ids"},"snoozed_until":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Snoozed Until"},"clear_snooze":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Clear Snooze"}},"type":"object","title":"EmailThreadUpdateRequest"},"EmbeddedSignupURLResponse":{"properties":{"url":{"type":"string","title":"Url"},"state":{"type":"string","title":"State"}},"type":"object","required":["url","state"],"title":"EmbeddedSignupURLResponse"},"FetchContactsResponse":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"},"status":{"type":"string","title":"Status"},"imported":{"type":"integer","title":"Imported","default":0},"updated":{"type":"integer","title":"Updated","default":0},"skipped":{"type":"integer","title":"Skipped","default":0},"errors":{"type":"integer","title":"Errors","default":0},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["job_id","status"],"title":"FetchContactsResponse"},"ForgotPasswordRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"}},"type":"object","required":["email"],"title":"ForgotPasswordRequest"},"GupshupConnectRequest":{"properties":{"api_key":{"type":"string","maxLength":512,"minLength":8,"title":"Api Key"},"app_name":{"type":"string","maxLength":120,"minLength":1,"title":"App Name"},"app_id":{"type":"string","maxLength":120,"minLength":1,"title":"App Id"},"source_number":{"type":"string","maxLength":32,"minLength":8,"title":"Source Number"},"account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id","description":"Reconnect an existing Gupshup WhatsApp account."}},"type":"object","required":["api_key","app_name","app_id","source_number"],"title":"GupshupConnectRequest"},"GupshupConnectResponse":{"properties":{"account_id":{"type":"string","format":"uuid","title":"Account Id"},"channel_id":{"type":"string","format":"uuid","title":"Channel Id"},"provider":{"type":"string","title":"Provider"},"status":{"type":"string","title":"Status"},"app_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App Name"},"app_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App Id"},"source_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Number"},"account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Name"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url"},"webhook_setup_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Setup Note"},"api_key_set":{"type":"boolean","title":"Api Key Set","default":true},"billing_hold":{"type":"boolean","title":"Billing Hold","default":false}},"type":"object","required":["account_id","channel_id","provider","status"],"title":"GupshupConnectResponse"},"GupshupRotateKeyRequest":{"properties":{"api_key":{"type":"string","maxLength":512,"minLength":8,"title":"Api Key"}},"type":"object","required":["api_key"],"title":"GupshupRotateKeyRequest"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"InboundWebhookCreateRequest":{"properties":{"name":{"type":"string","maxLength":120,"minLength":2,"title":"Name"},"allowed_methods":{"items":{"type":"string"},"type":"array","title":"Allowed Methods"}},"type":"object","required":["name"],"title":"InboundWebhookCreateRequest"},"InboundWebhookCreateResponse":{"properties":{"webhook":{"$ref":"#/components/schemas/InboundWebhookResponse"},"token":{"type":"string","title":"Token"},"url":{"type":"string","title":"Url"},"api_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key"}},"type":"object","required":["webhook","token","url"],"title":"InboundWebhookCreateResponse"},"InboundWebhookResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"created_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By"},"token_prefix":{"type":"string","title":"Token Prefix"},"api_key_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Api Key Id"},"api_key_prefix":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Api Key Prefix"},"allowed_methods":{"items":{"type":"string"},"type":"array","title":"Allowed Methods"},"enabled":{"type":"boolean","title":"Enabled"},"revoked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Revoked At"},"last_used_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Used At"},"url_template":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url Template"}},"type":"object","required":["id","created_at","updated_at","organization_id","name","created_by","token_prefix","api_key_id","allowed_methods","enabled","revoked_at","last_used_at"],"title":"InboundWebhookResponse"},"InboundWebhookRotateResponse":{"properties":{"webhook":{"$ref":"#/components/schemas/InboundWebhookResponse"},"token":{"type":"string","title":"Token"},"url":{"type":"string","title":"Url"}},"type":"object","required":["webhook","token","url"],"title":"InboundWebhookRotateResponse"},"InboxAssigneeSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"}},"type":"object","required":["id"],"title":"InboxAssigneeSummary"},"InboxBulkActionResponse":{"properties":{"succeeded":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Succeeded"},"failed":{"items":{"$ref":"#/components/schemas/InboxBulkItemResult"},"type":"array","title":"Failed"}},"type":"object","title":"InboxBulkActionResponse"},"InboxBulkConversationUpdate":{"properties":{"conversation_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":50,"minItems":1,"title":"Conversation Ids"},"status":{"anyOf":[{"$ref":"#/components/schemas/ConversationStatus"},{"type":"null"}]},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned User Id"},"assigned_team_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned Team Id"},"priority":{"anyOf":[{"$ref":"#/components/schemas/ConversationPriority"},{"type":"null"}]},"mark_read":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Mark Read"}},"type":"object","required":["conversation_ids"],"title":"InboxBulkConversationUpdate"},"InboxBulkItemResult":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"ok":{"type":"boolean","title":"Ok","default":true},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["conversation_id"],"title":"InboxBulkItemResult"},"InboxBulkSendTemplateRequest":{"properties":{"conversation_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":50,"minItems":1,"title":"Conversation Ids"},"template_name":{"type":"string","maxLength":512,"minLength":1,"title":"Template Name"},"language_code":{"type":"string","maxLength":32,"title":"Language Code","default":"en_US"},"components":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Components"},"category":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Category"}},"type":"object","required":["conversation_ids","template_name"],"title":"InboxBulkSendTemplateRequest"},"InboxBulkSendTemplateResponse":{"properties":{"queued":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Queued"},"failed":{"items":{"$ref":"#/components/schemas/InboxBulkTemplateItemResult"},"type":"array","title":"Failed"}},"type":"object","title":"InboxBulkSendTemplateResponse"},"InboxBulkTemplateItemResult":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"ok":{"type":"boolean","title":"Ok","default":true},"message_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Message Id"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"type":"object","required":["conversation_id"],"title":"InboxBulkTemplateItemResult"},"InboxChannelAccountSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Name"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"external_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Account Id"},"status":{"type":"string","title":"Status"}},"type":"object","required":["id","status"],"title":"InboxChannelAccountSummary"},"InboxChannelSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","type","name"],"title":"InboxChannelSummary"},"InboxContactSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"external_user_id":{"type":"string","title":"External User Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"},"whatsapp_user_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Whatsapp User Id"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"}},"type":"object","required":["id","external_user_id","display_name","username","avatar_url"],"title":"InboxContactSummary"},"InboxConversationCrm":{"properties":{"bitrix_contact_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bitrix Contact Id"},"bitrix_contact_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bitrix Contact Url"},"bitrix_deal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bitrix Deal Id"},"bitrix_deal_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bitrix Deal Url"},"deal_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Title"},"stage_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Id"},"stage_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Name"},"assigned_by_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned By Id"},"assigned_by_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned By Name"},"card_fields":{"items":{"$ref":"#/components/schemas/InboxDealCardField"},"type":"array","title":"Card Fields"}},"type":"object","title":"InboxConversationCrm","description":"Bitrix CRM ids/urls enriched on list/detail (no live Bitrix HTTP)."},"InboxConversationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"channel_id":{"type":"string","format":"uuid","title":"Channel Id"},"contact_id":{"type":"string","format":"uuid","title":"Contact Id"},"channel_account_id":{"type":"string","format":"uuid","title":"Channel Account Id"},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned User Id"},"assigned_user":{"anyOf":[{"$ref":"#/components/schemas/InboxAssigneeSummary"},{"type":"null"}]},"owner_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Owner User Id"},"owner_user":{"anyOf":[{"$ref":"#/components/schemas/InboxAssigneeSummary"},{"type":"null"}]},"assigned_team_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned Team Id"},"status":{"$ref":"#/components/schemas/ConversationStatus"},"conversation_type":{"$ref":"#/components/schemas/ConversationType","default":"customer_service"},"priority":{"$ref":"#/components/schemas/ConversationPriority","default":"normal"},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"stage_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Stage Id"},"unread_count":{"type":"integer","title":"Unread Count","default":0},"first_response_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"First Response At"},"last_customer_message_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Customer Message At"},"last_agent_message_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Agent Message At"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closed At"},"customer_waiting_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Customer Waiting Since"},"agent_waiting_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Agent Waiting Since"},"template_awaiting_since":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Template Awaiting Since"},"source_campaign":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Campaign"},"custom_fields":{"additionalProperties":true,"type":"object","title":"Custom Fields"},"lead_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Lead Id"},"deal_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deal Id"},"crm_refs":{"additionalProperties":true,"type":"object","title":"Crm Refs"},"crm":{"anyOf":[{"$ref":"#/components/schemas/InboxConversationCrm"},{"type":"null"}]},"csat_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csat Status"},"last_message_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message At"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"channel":{"anyOf":[{"$ref":"#/components/schemas/InboxChannelSummary"},{"type":"null"}]},"channel_account":{"anyOf":[{"$ref":"#/components/schemas/InboxChannelAccountSummary"},{"type":"null"}]},"contact":{"anyOf":[{"$ref":"#/components/schemas/InboxContactSummary"},{"type":"null"}]},"tags":{"items":{"$ref":"#/components/schemas/ConversationTagResponse"},"type":"array","title":"Tags"},"participants":{"items":{"$ref":"#/components/schemas/ConversationParticipantResponse"},"type":"array","title":"Participants"},"whatsapp_phone_number_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Whatsapp Phone Number Id"},"customer_wa_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Wa Id"},"customer_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Customer Name"},"source_post_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Post Id"},"source_comment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Comment Id"},"last_message":{"anyOf":[{"$ref":"#/components/schemas/InboxLastMessagePreview"},{"type":"null"}]},"whatsapp_session_open":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Whatsapp Session Open"},"whatsapp_session_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Whatsapp Session Expires At"},"viewer_can_reply":{"type":"boolean","title":"Viewer Can Reply","default":true},"viewer_can_intervene":{"type":"boolean","title":"Viewer Can Intervene","default":false}},"type":"object","required":["id","created_at","updated_at","organization_id","channel_id","contact_id","channel_account_id","assigned_user_id","status","last_message_at","metadata"],"title":"InboxConversationResponse"},"InboxConversationUpdate":{"properties":{"status":{"anyOf":[{"$ref":"#/components/schemas/ConversationStatus"},{"type":"null"}]},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned User Id"},"assigned_team_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned Team Id"},"priority":{"anyOf":[{"$ref":"#/components/schemas/ConversationPriority"},{"type":"null"}]},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage"},"stage_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Stage Id"},"expected_assigned_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Expected Assigned User Id"},"expected_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expected Updated At"}},"type":"object","title":"InboxConversationUpdate"},"InboxDealCardField":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"value":{"type":"string","title":"Value"}},"type":"object","required":["id","title","value"],"title":"InboxDealCardField","description":"One denormalized Bitrix deal field ready to render on a Kanban card."},"InboxGlobalMessageSearchHit":{"properties":{"message_id":{"type":"string","format":"uuid","title":"Message Id"},"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"preview":{"type":"string","title":"Preview"},"message_type":{"type":"string","title":"Message Type"},"direction":{"type":"string","title":"Direction"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"contact_id":{"type":"string","format":"uuid","title":"Contact Id"},"contact_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Display Name"},"contact_avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Avatar Url"},"channel_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Type"}},"type":"object","required":["message_id","conversation_id","preview","message_type","direction","created_at","contact_id"],"title":"InboxGlobalMessageSearchHit"},"InboxInternalNoteRequest":{"properties":{"text":{"type":"string","maxLength":10000,"minLength":1,"title":"Text"},"mentioned_user_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Mentioned User Ids"}},"type":"object","required":["text"],"title":"InboxInternalNoteRequest"},"InboxInterveneRequest":{"properties":{"expected_assigned_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Expected Assigned User Id"},"expected_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expected Updated At"}},"type":"object","title":"InboxInterveneRequest"},"InboxLastMessagePreview":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"message_type":{"type":"string","title":"Message Type"},"direction":{"type":"string","title":"Direction"},"status":{"type":"string","title":"Status"},"preview":{"type":"string","title":"Preview"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","message_type","direction","status","preview","created_at"],"title":"InboxLastMessagePreview"},"InboxMessageResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"channel_id":{"type":"string","format":"uuid","title":"Channel Id"},"external_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Message Id"},"client_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Client Message Id"},"wa_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wa Message Id"},"direction":{"$ref":"#/components/schemas/MessageDirection"},"message_type":{"$ref":"#/components/schemas/MessageType"},"status":{"$ref":"#/components/schemas/MessageStatus"},"content":{"additionalProperties":true,"type":"object","title":"Content"},"raw_payload":{"additionalProperties":true,"type":"object","title":"Raw Payload"},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"},"read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read At"},"failed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Failed At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"sender_type":{"anyOf":[{"$ref":"#/components/schemas/MessageSenderType"},{"type":"null"}]},"sender_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Sender User Id"},"sender_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Display Name"},"sender_external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender External Id"},"reply_to_message_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reply To Message Id"},"edited_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Edited At"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"is_bot_generated":{"type":"boolean","title":"Is Bot Generated","default":false},"is_automation_generated":{"type":"boolean","title":"Is Automation Generated","default":false},"crm_sync_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Sync Status"},"message_source":{"anyOf":[{"$ref":"#/components/schemas/MessageSource"},{"type":"null"}]},"whatsapp_phone_number_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Whatsapp Phone Number Id"},"media_assets":{"items":{"$ref":"#/components/schemas/MediaAssetResponse"},"type":"array","title":"Media Assets"}},"type":"object","required":["id","organization_id","conversation_id","channel_id","external_message_id","direction","message_type","status","content","raw_payload","sent_at","delivered_at","read_at","failed_at","created_at"],"title":"InboxMessageResponse"},"InboxSavedFilterCreate":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name"},"filters":{"$ref":"#/components/schemas/InboxSavedFilterPayload"}},"additionalProperties":false,"type":"object","required":["name","filters"],"title":"InboxSavedFilterCreate"},"InboxSavedFilterPayload":{"properties":{"channel_type":{"type":"string","title":"Channel Type","default":"all"},"channel_account_id":{"type":"string","title":"Channel Account Id","default":"all"},"status":{"type":"string","title":"Status","default":"all"},"assigned_user_id":{"type":"string","title":"Assigned User Id","default":"all"},"assigned_team_id":{"type":"string","title":"Assigned Team Id","default":"all"},"priority":{"type":"string","title":"Priority","default":"all"},"conversation_type":{"type":"string","title":"Conversation Type","default":"all"},"tag_id":{"type":"string","title":"Tag Id","default":"all"},"read_state":{"type":"string","enum":["all","unread","read"],"title":"Read State","default":"all"},"awaiting_reply":{"type":"string","enum":["all","customer","agent","template"],"title":"Awaiting Reply","default":"all"},"created_after":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created After"},"created_before":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created Before"},"last_message_after":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message After"},"last_message_before":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message Before"},"bitrix_contact_id":{"type":"string","title":"Bitrix Contact Id","default":""},"deal_id":{"type":"string","title":"Deal Id","default":""},"bitrix_assigned_by_id":{"type":"string","title":"Bitrix Assigned By Id","default":""}},"additionalProperties":false,"type":"object","title":"InboxSavedFilterPayload","description":"Whitelisted inbox filter snapshot. Search is intentionally absent."},"InboxSavedFilterResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"created_by_user_id":{"type":"string","format":"uuid","title":"Created By User Id"},"name":{"type":"string","title":"Name"},"filters":{"$ref":"#/components/schemas/InboxSavedFilterPayload"}},"type":"object","required":["id","created_at","updated_at","organization_id","created_by_user_id","name","filters"],"title":"InboxSavedFilterResponse"},"InboxSavedFilterUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Name"},"filters":{"anyOf":[{"$ref":"#/components/schemas/InboxSavedFilterPayload"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"InboxSavedFilterUpdate"},"InboxSendMessageRequest":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"message_type":{"type":"string","title":"Message Type","default":"text"},"content":{"additionalProperties":true,"type":"object","title":"Content"},"reply_to_message_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Reply To Message Id"},"client_message_id":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Client Message Id"}},"type":"object","required":["conversation_id"],"title":"InboxSendMessageRequest"},"InboxSendTemplateRequest":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"template_name":{"type":"string","maxLength":512,"minLength":1,"title":"Template Name"},"language_code":{"type":"string","maxLength":32,"title":"Language Code","default":"en_US"},"components":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Components"},"category":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Category"}},"type":"object","required":["conversation_id","template_name"],"title":"InboxSendTemplateRequest"},"InboxTransferOwnerRequest":{"properties":{"owner_user_id":{"type":"string","format":"uuid","title":"Owner User Id"}},"type":"object","required":["owner_user_id"],"title":"InboxTransferOwnerRequest"},"IntegrationCatalogItem":{"properties":{"provider":{"type":"string","title":"Provider"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"status":{"type":"string","title":"Status"},"crm_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Crm Status"},"openlines_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Openlines Status"},"href":{"type":"string","title":"Href"}},"type":"object","required":["provider","name","description","status","href"],"title":"IntegrationCatalogItem"},"IntegrationEntityLinkResponse":{"properties":{"id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Id"},"entity_type":{"type":"string","title":"Entity Type"},"local_id":{"type":"string","format":"uuid","title":"Local Id"},"external_id":{"type":"string","title":"External Id"},"portal_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Portal Url"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"stage_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stage Id"},"pipeline_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pipeline Id"},"source":{"anyOf":[{"type":"string","enum":["linked","live"]},{"type":"null"}],"title":"Source"},"extra":{"additionalProperties":true,"type":"object","title":"Extra"}},"type":"object","required":["entity_type","local_id","external_id"],"title":"IntegrationEntityLinkResponse"},"IntegrationHealthItem":{"properties":{"channel_account_id":{"type":"string","format":"uuid","title":"Channel Account Id"},"channel_id":{"type":"string","format":"uuid","title":"Channel Id"},"channel_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Type"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"status":{"type":"string","title":"Status"},"quality_rating":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quality Rating"},"messaging_limit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Messaging Limit"},"account_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Status"},"last_sync_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Sync At"},"outbound_webhook_success_rate_24h":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Outbound Webhook Success Rate 24H"},"outbound_webhook_success_rate_7d":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Outbound Webhook Success Rate 7D"},"outbound_webhook_total_24h":{"type":"integer","title":"Outbound Webhook Total 24H","default":0},"outbound_webhook_failed_24h":{"type":"integer","title":"Outbound Webhook Failed 24H","default":0},"inbound_webhook_failed_24h":{"type":"integer","title":"Inbound Webhook Failed 24H","default":0},"inbound_webhook_failed_7d":{"type":"integer","title":"Inbound Webhook Failed 7D","default":0}},"type":"object","required":["channel_account_id","channel_id","status"],"title":"IntegrationHealthItem"},"IntegrationSyncJobResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"job_type":{"type":"string","title":"Job Type"},"status":{"type":"string","title":"Status"},"attempts":{"type":"integer","title":"Attempts"},"last_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Error"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"result":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Result"}},"type":"object","required":["id","job_type","status","attempts","last_error","created_at","completed_at"],"title":"IntegrationSyncJobResponse"},"InvoiceResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"invoice_number":{"type":"string","title":"Invoice Number"},"amount_cents":{"type":"integer","title":"Amount Cents"},"currency":{"type":"string","title":"Currency"},"status":{"type":"string","title":"Status"},"pdf_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pdf Url"},"hosted_invoice_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hosted Invoice Url"},"stripe_invoice_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Stripe Invoice Id"},"source":{"type":"string","title":"Source","default":"manual"},"period_start":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Period Start"},"period_end":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Period End"}},"type":"object","required":["id","created_at","updated_at","organization_id","invoice_number","amount_cents","currency","status","pdf_url"],"title":"InvoiceResponse"},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":128,"minLength":1,"title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"LoginResponse":{"properties":{"tokens":{"anyOf":[{"$ref":"#/components/schemas/TokenPair"},{"type":"null"}]},"requires_organization_selection":{"type":"boolean","title":"Requires Organization Selection","default":false},"selection_token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Selection Token"},"organizations":{"items":{"$ref":"#/components/schemas/WorkspaceOption"},"type":"array","title":"Organizations"},"must_change_password":{"type":"boolean","title":"Must Change Password","default":false}},"type":"object","title":"LoginResponse"},"LogoutRequest":{"properties":{"refresh_token":{"anyOf":[{"type":"string","minLength":20},{"type":"null"}],"title":"Refresh Token"},"device_token":{"anyOf":[{"type":"string","maxLength":512,"minLength":8},{"type":"null"}],"title":"Device Token"}},"type":"object","title":"LogoutRequest","description":"Body refresh is optional when the HttpOnly `bs_refresh` cookie is present."},"ManualTopUpRequest":{"properties":{"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"amount_cents":{"type":"integer","maximum":10000000.0,"exclusiveMinimum":0.0,"title":"Amount Cents"},"reference":{"type":"string","maxLength":191,"minLength":3,"title":"Reference"},"note":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Note"}},"type":"object","required":["organization_id","amount_cents","reference"],"title":"ManualTopUpRequest"},"MediaAssetResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"message_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Message Id"},"media_type":{"type":"string","title":"Media Type"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"file_size":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Size"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"},"thumbnail_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail Url"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organization_id","message_id","media_type","mime_type","file_size","created_at"],"title":"MediaAssetResponse"},"MediaUploadResponse":{"properties":{"asset_id":{"type":"string","format":"uuid","title":"Asset Id"},"media_type":{"type":"string","title":"Media Type"},"mime_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mime Type"},"file_size":{"type":"integer","title":"File Size"},"filename":{"type":"string","title":"Filename"},"url":{"type":"string","title":"Url"}},"type":"object","required":["asset_id","media_type","mime_type","file_size","filename","url"],"title":"MediaUploadResponse"},"MembershipAvailabilityResponse":{"properties":{"availability_status":{"$ref":"#/components/schemas/AgentAvailabilityStatus"},"break_type":{"anyOf":[{"$ref":"#/components/schemas/AgentBreakType"},{"type":"null"}]},"break_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Break Label"},"clocked_in_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Clocked In At"},"clocked_out_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Clocked Out At"},"is_clocked_in":{"type":"boolean","title":"Is Clocked In"},"is_on_break":{"type":"boolean","title":"Is On Break","default":false},"is_receiving_messages":{"type":"boolean","title":"Is Receiving Messages","default":false},"last_routed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Routed At"},"max_active_conversations":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Active Conversations"},"break_started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Break Started At"},"break_allowance_seconds":{"type":"integer","title":"Break Allowance Seconds","default":3600},"break_used_seconds":{"type":"integer","title":"Break Used Seconds","default":0},"break_remaining_seconds":{"type":"integer","title":"Break Remaining Seconds","default":3600},"can_start_break":{"type":"boolean","title":"Can Start Break","default":true},"break_types":{"items":{"$ref":"#/components/schemas/BreakTypeOption"},"type":"array","title":"Break Types"}},"type":"object","required":["availability_status","is_clocked_in"],"title":"MembershipAvailabilityResponse"},"MembershipAvailabilityUpdate":{"properties":{"status":{"$ref":"#/components/schemas/AgentAvailabilityStatus"},"break_type":{"anyOf":[{"$ref":"#/components/schemas/AgentBreakType"},{"type":"null"}]}},"type":"object","required":["status"],"title":"MembershipAvailabilityUpdate"},"MembershipBreakStart":{"properties":{"break_type":{"$ref":"#/components/schemas/AgentBreakType","default":"personal"}},"type":"object","title":"MembershipBreakStart"},"MembershipCapacityUpdate":{"properties":{"max_active_conversations":{"anyOf":[{"type":"integer","maximum":500.0,"minimum":1.0},{"type":"null"}],"title":"Max Active Conversations"}},"type":"object","title":"MembershipCapacityUpdate"},"MembershipInviteRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"role":{"$ref":"#/components/schemas/MembershipRole","default":"agent"},"full_name":{"anyOf":[{"type":"string","maxLength":160,"minLength":1},{"type":"null"}],"title":"Full Name"}},"type":"object","required":["email"],"title":"MembershipInviteRequest"},"MembershipInviteResult":{"properties":{"membership":{"$ref":"#/components/schemas/MembershipResponse"},"created_user":{"type":"boolean","title":"Created User"},"email_sent":{"type":"boolean","title":"Email Sent"},"temporary_password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Temporary Password"}},"type":"object","required":["membership","created_user","email_sent"],"title":"MembershipInviteResult"},"MembershipPermissionsResponse":{"properties":{"membership_id":{"type":"string","format":"uuid","title":"Membership Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"role":{"type":"string","title":"Role"},"effective":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Effective"},"overrides":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Overrides"},"role_defaults":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Role Defaults"}},"type":"object","required":["membership_id","user_id","role","effective"],"title":"MembershipPermissionsResponse"},"MembershipPermissionsUpdate":{"properties":{"overrides":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Overrides"}},"type":"object","title":"MembershipPermissionsUpdate"},"MembershipResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"role":{"$ref":"#/components/schemas/MembershipRole"},"invited_by":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Invited By"},"joined_at":{"type":"string","format":"date-time","title":"Joined At"},"availability_status":{"$ref":"#/components/schemas/AgentAvailabilityStatus","default":"offline"},"clocked_in_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Clocked In At"},"clocked_out_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Clocked Out At"},"break_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Break Type"},"last_routed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Routed At"},"max_active_conversations":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Active Conversations"},"permission_overrides":{"additionalProperties":true,"type":"object","title":"Permission Overrides"},"user":{"anyOf":[{"$ref":"#/components/schemas/MembershipUserResponse"},{"type":"null"}]}},"type":"object","required":["id","created_at","updated_at","organization_id","user_id","role","invited_by","joined_at"],"title":"MembershipResponse"},"MembershipRole":{"type":"string","enum":["owner","admin","developer","agent","team_leader","viewer"],"title":"MembershipRole"},"MembershipRoleUpdate":{"properties":{"role":{"$ref":"#/components/schemas/MembershipRole"}},"type":"object","required":["role"],"title":"MembershipRoleUpdate"},"MembershipUserResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"full_name":{"type":"string","title":"Full Name"},"email":{"type":"string","format":"email","title":"Email"},"is_active":{"type":"boolean","title":"Is Active"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bio"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"}},"type":"object","required":["id","created_at","updated_at","full_name","email","is_active"],"title":"MembershipUserResponse"},"MessageDeliveryAttemptResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"message_id":{"type":"string","format":"uuid","title":"Message Id"},"attempt_number":{"type":"integer","title":"Attempt Number"},"status":{"type":"string","title":"Status"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"started_at":{"type":"string","format":"date-time","title":"Started At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","message_id","attempt_number","status","error","started_at","completed_at"],"title":"MessageDeliveryAttemptResponse"},"MessageDetailResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"channel_id":{"type":"string","format":"uuid","title":"Channel Id"},"whatsapp_phone_number_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Whatsapp Phone Number Id"},"external_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Message Id"},"wa_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wa Message Id"},"direction":{"$ref":"#/components/schemas/MessageDirection"},"message_type":{"$ref":"#/components/schemas/MessageType"},"status":{"$ref":"#/components/schemas/MessageStatus"},"content":{"additionalProperties":true,"type":"object","title":"Content"},"raw_payload":{"additionalProperties":true,"type":"object","title":"Raw Payload"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"},"read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read At"},"failed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Failed At"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"delivery_attempts":{"items":{"$ref":"#/components/schemas/MessageDeliveryAttemptResponse"},"type":"array","title":"Delivery Attempts","default":[]},"status_history":{"items":{"$ref":"#/components/schemas/MessageStatusHistoryResponse"},"type":"array","title":"Status History","default":[]}},"type":"object","required":["id","organization_id","conversation_id","channel_id","direction","message_type","status","content","raw_payload","sent_at","delivered_at","read_at","failed_at","created_at"],"title":"MessageDetailResponse"},"MessageDirection":{"type":"string","enum":["incoming","outgoing"],"title":"MessageDirection"},"MessageReportItem":{"properties":{"message_id":{"type":"string","format":"uuid","title":"Message Id"},"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"direction":{"type":"string","title":"Direction"},"sender_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Type"},"sender_display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Display Name"},"sender_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Sender User Id"},"message_type":{"type":"string","title":"Message Type"},"status":{"type":"string","title":"Status"},"content_preview":{"type":"string","title":"Content Preview"},"channel_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Id"},"channel_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Type"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned User Id"},"assigned_user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned User Name"},"conversation_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Conversation Status"}},"type":"object","required":["message_id","conversation_id","created_at","direction","message_type","status","content_preview"],"title":"MessageReportItem"},"MessageReportResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MessageReportItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"MessageReportResponse"},"MessageResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"channel_id":{"type":"string","format":"uuid","title":"Channel Id"},"whatsapp_phone_number_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Whatsapp Phone Number Id"},"external_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Message Id"},"wa_message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wa Message Id"},"direction":{"$ref":"#/components/schemas/MessageDirection"},"message_type":{"$ref":"#/components/schemas/MessageType"},"status":{"$ref":"#/components/schemas/MessageStatus"},"content":{"additionalProperties":true,"type":"object","title":"Content"},"raw_payload":{"additionalProperties":true,"type":"object","title":"Raw Payload"},"sent_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Sent At"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"},"read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read At"},"failed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Failed At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","organization_id","conversation_id","channel_id","direction","message_type","status","content","raw_payload","sent_at","delivered_at","read_at","failed_at","created_at"],"title":"MessageResponse"},"MessageSenderType":{"type":"string","enum":["customer","external_user","agent","supervisor","bot","system","integration"],"title":"MessageSenderType"},"MessageSource":{"type":"string","enum":["truechat_web","whatsapp_business_api","whatsapp_web","whatsapp_mobile","third_party","api","automation","system"],"title":"MessageSource"},"MessageStatus":{"type":"string","enum":["queued","sending","sent","delivered","read","failed","received"],"title":"MessageStatus"},"MessageStatusHistoryResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"message_id":{"type":"string","format":"uuid","title":"Message Id"},"status":{"type":"string","title":"Status"},"source":{"type":"string","title":"Source"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","message_id","status","source","payload","created_at"],"title":"MessageStatusHistoryResponse"},"MessageType":{"type":"string","enum":["text","image","audio","video","document","sticker","interactive","template","reaction","voice_note","contact_card","location","link","internal_note","system_event","bot_message","unknown"],"title":"MessageType"},"MetaCreditLineResponse":{"properties":{"id":{"type":"string","title":"Id"},"legal_entity_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legal Entity Name"}},"type":"object","required":["id"],"title":"MetaCreditLineResponse"},"NotificationChannelPreference":{"properties":{"in_app":{"type":"boolean","title":"In App","default":true},"push":{"type":"boolean","title":"Push","default":true}},"type":"object","title":"NotificationChannelPreference"},"NotificationPayload":{"properties":{"schema_version":{"type":"integer","title":"Schema Version","default":1},"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"message_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Message Id"},"contact_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Contact Id"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"channel_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Type"}},"type":"object","required":["conversation_id"],"title":"NotificationPayload"},"NotificationPreferencesResponse":{"properties":{"message.inbound":{"$ref":"#/components/schemas/NotificationChannelPreference"},"conversation.assigned":{"$ref":"#/components/schemas/NotificationChannelPreference"}},"type":"object","title":"NotificationPreferencesResponse"},"NotificationPreferencesUpdate":{"properties":{"message.inbound":{"anyOf":[{"$ref":"#/components/schemas/NotificationChannelPreference"},{"type":"null"}]},"conversation.assigned":{"anyOf":[{"$ref":"#/components/schemas/NotificationChannelPreference"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"NotificationPreferencesUpdate"},"NotificationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"type":{"$ref":"#/components/schemas/NotificationType"},"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body"},"event_count":{"type":"integer","title":"Event Count"},"payload":{"$ref":"#/components/schemas/NotificationPayload"},"read_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Read At"}},"type":"object","required":["id","created_at","updated_at","organization_id","type","title","body","event_count","payload"],"title":"NotificationResponse"},"NotificationType":{"type":"string","enum":["message.inbound","conversation.assigned"],"title":"NotificationType"},"NotificationUnreadCount":{"properties":{"unread_group_count":{"type":"integer","title":"Unread Group Count"},"unread_event_count":{"type":"integer","title":"Unread Event Count"}},"type":"object","required":["unread_group_count","unread_event_count"],"title":"NotificationUnreadCount"},"OAuthCallbackResponse":{"properties":{"connected":{"type":"boolean","title":"Connected"},"channel_type":{"type":"string","title":"Channel Type","default":"whatsapp"},"waba_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Waba Id"},"external_account_ids":{"items":{"type":"string"},"type":"array","title":"External Account Ids"}},"type":"object","required":["connected"],"title":"OAuthCallbackResponse"},"OfficialBusinessAccountRequest":{"properties":{"business_name":{"type":"string","maxLength":256,"minLength":1,"title":"Business Name"},"business_description":{"type":"string","maxLength":2000,"minLength":1,"title":"Business Description"},"website_url":{"type":"string","maxLength":512,"minLength":1,"title":"Website Url"},"contact_email":{"type":"string","maxLength":128,"minLength":3,"title":"Contact Email"},"primary_country_of_operation":{"type":"string","maxLength":64,"minLength":2,"title":"Primary Country Of Operation"},"primary_language":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Primary Language"},"parent_business_or_brand":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Parent Business Or Brand"},"supporting_links":{"items":{"type":"string"},"type":"array","maxItems":10,"title":"Supporting Links"},"additional_supporting_information":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Additional Supporting Information"}},"type":"object","required":["business_name","business_description","website_url","contact_email","primary_country_of_operation"],"title":"OfficialBusinessAccountRequest","description":"Submit or resubmit Meta Official Business Account (blue check) application."},"OrganizationCreateRequest":{"properties":{"name":{"type":"string","maxLength":160,"minLength":2,"title":"Name"}},"type":"object","required":["name"],"title":"OrganizationCreateRequest"},"OrganizationDeleteRequest":{"properties":{"password":{"type":"string","minLength":1,"title":"Password"},"confirm_name":{"type":"string","maxLength":160,"minLength":1,"title":"Confirm Name"}},"type":"object","required":["password","confirm_name"],"title":"OrganizationDeleteRequest"},"OrganizationPlan":{"type":"string","enum":["free","basic","starter","growth","professional","enterprise"],"title":"OrganizationPlan"},"OrganizationResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"name":{"type":"string","title":"Name"},"slug":{"type":"string","title":"Slug"},"plan":{"$ref":"#/components/schemas/OrganizationPlan"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["id","created_at","updated_at","name","slug","plan","is_active"],"title":"OrganizationResponse"},"OrganizationSettingsResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"timezone":{"type":"string","title":"Timezone"},"webhook_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Webhook Url"},"branding":{"additionalProperties":true,"type":"object","title":"Branding"},"business_hours":{"additionalProperties":true,"type":"object","title":"Business Hours"},"extra":{"additionalProperties":true,"type":"object","title":"Extra"}},"type":"object","required":["id","created_at","updated_at","organization_id","timezone","webhook_url","branding","extra"],"title":"OrganizationSettingsResponse"},"OrganizationSettingsUpdate":{"properties":{"timezone":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Timezone"},"webhook_url":{"anyOf":[{"type":"string","minLength":1,"format":"uri"},{"type":"null"}],"title":"Webhook Url"},"branding":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Branding"},"business_hours":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Business Hours"},"metadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Metadata"}},"type":"object","title":"OrganizationSettingsUpdate"},"OutboundWebhookConfig":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"callback_url":{"type":"string","title":"Callback Url"},"payload_format":{"type":"string","enum":["meta_v3","truechat_v2","trueshup_v1"],"title":"Payload Format","default":"trueshup_v1"},"events":{"items":{"type":"string"},"type":"array","title":"Events"},"headers":{"additionalProperties":{"type":"string"},"type":"object","title":"Headers"},"enabled":{"type":"boolean","title":"Enabled","default":true},"has_secret":{"type":"boolean","title":"Has Secret","default":false},"secret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Secret"}},"type":"object","required":["id","name","callback_url"],"title":"OutboundWebhookConfig"},"PaginatedResponse_APIKeyResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"items":{"$ref":"#/components/schemas/APIKeyResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"type":"object","required":["message","data","meta"],"title":"PaginatedResponse[APIKeyResponse]"},"PaginatedResponse_AdminOrganizationListItem_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"items":{"$ref":"#/components/schemas/AdminOrganizationListItem"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"type":"object","required":["message","data","meta"],"title":"PaginatedResponse[AdminOrganizationListItem]"},"PaginatedResponse_AuditLogResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"items":{"$ref":"#/components/schemas/AuditLogResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"type":"object","required":["message","data","meta"],"title":"PaginatedResponse[AuditLogResponse]"},"PaginatedResponse_BroadcastListItem_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"items":{"$ref":"#/components/schemas/BroadcastListItem"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"type":"object","required":["message","data","meta"],"title":"PaginatedResponse[BroadcastListItem]"},"PaginatedResponse_ContactListItemResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"items":{"$ref":"#/components/schemas/ContactListItemResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"type":"object","required":["message","data","meta"],"title":"PaginatedResponse[ContactListItemResponse]"},"PaginatedResponse_ConversationMediaItem_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"items":{"$ref":"#/components/schemas/ConversationMediaItem"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"type":"object","required":["message","data","meta"],"title":"PaginatedResponse[ConversationMediaItem]"},"PaginatedResponse_ConversationResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"items":{"$ref":"#/components/schemas/ConversationResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"type":"object","required":["message","data","meta"],"title":"PaginatedResponse[ConversationResponse]"},"PaginatedResponse_EmailThreadListItem_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"items":{"$ref":"#/components/schemas/EmailThreadListItem"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"type":"object","required":["message","data","meta"],"title":"PaginatedResponse[EmailThreadListItem]"},"PaginatedResponse_InboundWebhookResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"items":{"$ref":"#/components/schemas/InboundWebhookResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"type":"object","required":["message","data","meta"],"title":"PaginatedResponse[InboundWebhookResponse]"},"PaginatedResponse_InboxConversationResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"items":{"$ref":"#/components/schemas/InboxConversationResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"type":"object","required":["message","data","meta"],"title":"PaginatedResponse[InboxConversationResponse]"},"PaginatedResponse_InboxGlobalMessageSearchHit_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"items":{"$ref":"#/components/schemas/InboxGlobalMessageSearchHit"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"type":"object","required":["message","data","meta"],"title":"PaginatedResponse[InboxGlobalMessageSearchHit]"},"PaginatedResponse_InboxMessageResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"items":{"$ref":"#/components/schemas/InboxMessageResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"type":"object","required":["message","data","meta"],"title":"PaginatedResponse[InboxMessageResponse]"},"PaginatedResponse_MembershipResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"items":{"$ref":"#/components/schemas/MembershipResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"type":"object","required":["message","data","meta"],"title":"PaginatedResponse[MembershipResponse]"},"PaginatedResponse_MessageResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"items":{"$ref":"#/components/schemas/MessageResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"type":"object","required":["message","data","meta"],"title":"PaginatedResponse[MessageResponse]"},"PaginatedResponse_NotificationResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"items":{"$ref":"#/components/schemas/NotificationResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"type":"object","required":["message","data","meta"],"title":"PaginatedResponse[NotificationResponse]"},"PaginatedResponse_SegmentResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"items":{"$ref":"#/components/schemas/SegmentResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"type":"object","required":["message","data","meta"],"title":"PaginatedResponse[SegmentResponse]"},"PaginatedResponse_WhatsAppBusinessAccountResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"items":{"$ref":"#/components/schemas/WhatsAppBusinessAccountResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"type":"object","required":["message","data","meta"],"title":"PaginatedResponse[WhatsAppBusinessAccountResponse]"},"PaginatedResponse_WhatsAppPhoneNumberResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"items":{"$ref":"#/components/schemas/WhatsAppPhoneNumberResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"type":"object","required":["message","data","meta"],"title":"PaginatedResponse[WhatsAppPhoneNumberResponse]"},"PaginatedResponse_WorkflowExecutionResponse_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"items":{"$ref":"#/components/schemas/WorkflowExecutionResponse"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"type":"object","required":["message","data","meta"],"title":"PaginatedResponse[WorkflowExecutionResponse]"},"PaginatedResponse_WorkflowListItem_":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"items":{"$ref":"#/components/schemas/WorkflowListItem"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/PaginationMeta"}},"type":"object","required":["message","data","meta"],"title":"PaginatedResponse[WorkflowListItem]"},"PaginationMeta":{"properties":{"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["limit","offset","total"],"title":"PaginationMeta"},"PatchBitrix24SettingsRequest":{"properties":{"sync_contacts":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sync Contacts"},"sync_deals":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sync Deals"},"sync_activities":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Sync Activities"},"auto_create_deal":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Create Deal"},"open_channels_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Open Channels Enabled"},"default_deal_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Default Deal Title"},"line_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Line Id"},"deal_channel_rules":{"anyOf":[{"items":{"$ref":"#/components/schemas/Bitrix24DealChannelRule"},"type":"array"},{"type":"null"}],"title":"Deal Channel Rules"},"selected_fields":{"anyOf":[{"$ref":"#/components/schemas/Bitrix24SelectedFields"},{"type":"null"}]},"kanban_card_fields":{"anyOf":[{"$ref":"#/components/schemas/Bitrix24KanbanCardFields"},{"type":"null"}]}},"type":"object","title":"PatchBitrix24SettingsRequest"},"PermissionCatalogItem":{"properties":{"key":{"type":"string","title":"Key"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"},"category":{"type":"string","title":"Category"}},"type":"object","required":["key","label","description","category"],"title":"PermissionCatalogItem"},"PhoneNumberStatus":{"type":"string","enum":["active","pending","disconnected","error"],"title":"PhoneNumberStatus"},"PlanDefinition":{"properties":{"id":{"$ref":"#/components/schemas/OrganizationPlan"},"name":{"type":"string","title":"Name"},"price_monthly_cents":{"type":"integer","title":"Price Monthly Cents"},"description":{"type":"string","title":"Description"},"features":{"items":{"$ref":"#/components/schemas/PlanFeature"},"type":"array","title":"Features"},"limits":{"additionalProperties":{"anyOf":[{"type":"integer"},{"type":"string"}]},"type":"object","title":"Limits"},"entitlements":{"$ref":"#/components/schemas/PlanEntitlements"},"extra_user_cents":{"type":"integer","title":"Extra User Cents","default":1000},"extra_channel_cents":{"type":"integer","title":"Extra Channel Cents","default":2500},"price_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Price Label"}},"type":"object","required":["id","name","price_monthly_cents","description","features","limits"],"title":"PlanDefinition"},"PlanEntitlements":{"properties":{"tiktok":{"type":"boolean","title":"Tiktok","default":false},"automations":{"type":"boolean","title":"Automations","default":false},"auto_reply":{"type":"boolean","title":"Auto Reply","default":false},"chatbot":{"type":"boolean","title":"Chatbot","default":false},"broadcast":{"type":"boolean","title":"Broadcast","default":false},"reports":{"type":"boolean","title":"Reports","default":false},"crm":{"type":"boolean","title":"Crm","default":false},"api_webhooks":{"type":"boolean","title":"Api Webhooks","default":false}},"type":"object","title":"PlanEntitlements"},"PlanFeature":{"properties":{"name":{"type":"string","title":"Name"},"included":{"anyOf":[{"type":"boolean"},{"type":"string"}],"title":"Included"}},"type":"object","required":["name","included"],"title":"PlanFeature"},"PricingPolicyCreate":{"properties":{"markup_bps":{"type":"integer","maximum":10000.0,"minimum":0.0,"title":"Markup Bps"},"platform_fee_micros":{"type":"integer","minimum":0.0,"title":"Platform Fee Micros","default":0},"charge_service_messages":{"type":"boolean","title":"Charge Service Messages","default":false},"note":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Note"},"recompute_sell_prices":{"type":"boolean","title":"Recompute Sell Prices","default":true}},"type":"object","required":["markup_bps"],"title":"PricingPolicyCreate"},"PricingPolicyPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PricingPolicyResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"PricingPolicyPage"},"PricingPolicyResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"currency":{"type":"string","title":"Currency"},"markup_bps":{"type":"integer","title":"Markup Bps"},"platform_fee_micros":{"type":"integer","title":"Platform Fee Micros"},"charge_service_messages":{"type":"boolean","title":"Charge Service Messages"},"effective_from":{"type":"string","format":"date-time","title":"Effective From"},"created_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By User Id"},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","currency","markup_bps","platform_fee_micros","charge_service_messages","effective_from","created_at"],"title":"PricingPolicyResponse"},"PushDeviceRegisterRequest":{"properties":{"provider":{"type":"string","const":"expo","title":"Provider","default":"expo"},"platform":{"type":"string","enum":["ios","android"],"title":"Platform"},"token":{"type":"string","maxLength":512,"minLength":8,"title":"Token"},"device_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Device Name"},"app_version":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"App Version"}},"type":"object","required":["platform","token"],"title":"PushDeviceRegisterRequest"},"PushDeviceResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"provider":{"type":"string","title":"Provider"},"platform":{"type":"string","title":"Platform"},"device_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Device Name"},"app_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"App Version"},"last_seen_at":{"type":"string","format":"date-time","title":"Last Seen At"},"disabled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Disabled At"}},"type":"object","required":["id","created_at","updated_at","organization_id","provider","platform","last_seen_at"],"title":"PushDeviceResponse"},"PushDeviceUnregisterRequest":{"properties":{"token":{"type":"string","maxLength":512,"minLength":8,"title":"Token"}},"type":"object","required":["token"],"title":"PushDeviceUnregisterRequest"},"RatesRecomputeResponse":{"properties":{"updated":{"type":"integer","title":"Updated"},"markup_bps":{"type":"integer","title":"Markup Bps"},"platform_fee_micros":{"type":"integer","title":"Platform Fee Micros"}},"type":"object","required":["updated","markup_bps","platform_fee_micros"],"title":"RatesRecomputeResponse"},"RefreshTokenRequest":{"properties":{"refresh_token":{"anyOf":[{"type":"string","minLength":20},{"type":"null"}],"title":"Refresh Token"}},"type":"object","title":"RefreshTokenRequest","description":"Body refresh is optional when the HttpOnly `bs_refresh` cookie is present."},"RegisterRequest":{"properties":{"organization_name":{"type":"string","maxLength":160,"minLength":2,"title":"Organization Name"},"full_name":{"type":"string","maxLength":160,"minLength":2,"title":"Full Name"},"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","maxLength":128,"minLength":12,"title":"Password"},"confirm_password":{"type":"string","maxLength":128,"minLength":12,"title":"Confirm Password"}},"type":"object","required":["organization_name","full_name","email","password","confirm_password"],"title":"RegisterRequest"},"ReportExportCreate":{"properties":{"report_type":{"type":"string","pattern":"^(transactional|agent_performance|dashboard|messages|whatsapp_costs)$","title":"Report Type"},"format":{"type":"string","pattern":"^(csv)$","title":"Format","default":"csv"},"filters":{"additionalProperties":true,"type":"object","title":"Filters"}},"type":"object","required":["report_type"],"title":"ReportExportCreate"},"ReportExportResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"requested_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Requested By User Id"},"report_type":{"type":"string","title":"Report Type"},"format":{"type":"string","title":"Format"},"filters":{"additionalProperties":true,"type":"object","title":"Filters"},"status":{"type":"string","title":"Status"},"file_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Path"},"download_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Download Url"},"row_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Row Count"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["id","created_at","updated_at","organization_id","report_type","format","status"],"title":"ReportExportResponse"},"ResetPasswordRequest":{"properties":{"token":{"type":"string","minLength":20,"title":"Token"},"password":{"type":"string","maxLength":128,"minLength":12,"title":"Password"},"confirm_password":{"type":"string","maxLength":128,"minLength":12,"title":"Confirm Password"}},"type":"object","required":["token","password","confirm_password"],"title":"ResetPasswordRequest"},"ReviewChannelStatus":{"properties":{"channel":{"type":"string","title":"Channel"},"state":{"type":"string","title":"State"},"description":{"type":"string","title":"Description"}},"type":"object","required":["channel","state","description"],"title":"ReviewChannelStatus"},"ReviewCredential":{"properties":{"label":{"type":"string","title":"Label"},"email":{"type":"string","title":"Email"},"role":{"type":"string","title":"Role"}},"type":"object","required":["label","email","role"],"title":"ReviewCredential"},"ReviewGuideResponse":{"properties":{"enabled":{"type":"boolean","title":"Enabled"},"app_name":{"type":"string","title":"App Name"},"recording_mode":{"type":"boolean","title":"Recording Mode"},"banner":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Banner"},"instructions":{"items":{"$ref":"#/components/schemas/ReviewInstruction"},"type":"array","title":"Instructions"},"supported_channels":{"items":{"$ref":"#/components/schemas/ReviewChannelStatus"},"type":"array","title":"Supported Channels"},"permissions":{"items":{"$ref":"#/components/schemas/ReviewPermissionMapping"},"type":"array","title":"Permissions"},"demo_credentials":{"items":{"$ref":"#/components/schemas/ReviewCredential"},"type":"array","title":"Demo Credentials"},"test_flow":{"items":{"type":"string"},"type":"array","title":"Test Flow"}},"type":"object","required":["enabled","app_name","recording_mode"],"title":"ReviewGuideResponse"},"ReviewInstruction":{"properties":{"title":{"type":"string","title":"Title"},"body":{"type":"string","title":"Body"}},"type":"object","required":["title","body"],"title":"ReviewInstruction"},"ReviewPermissionMapping":{"properties":{"permission":{"type":"string","title":"Permission"},"product_area":{"type":"string","title":"Product Area"},"review_flow":{"items":{"type":"string"},"type":"array","title":"Review Flow"},"purpose":{"type":"string","title":"Purpose"}},"type":"object","required":["permission","product_area","purpose"],"title":"ReviewPermissionMapping"},"RevokeCreditLineRequest":{"properties":{"waba_id":{"type":"string","maxLength":64,"title":"Waba Id"},"reason":{"type":"string","maxLength":255,"minLength":3,"title":"Reason"}},"type":"object","required":["waba_id","reason"],"title":"RevokeCreditLineRequest"},"RolePermissionsResponse":{"properties":{"role":{"type":"string","title":"Role"},"label":{"type":"string","title":"Label"},"description":{"type":"string","title":"Description"},"permissions":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Permissions"},"locked_on":{"items":{"type":"string"},"type":"array","title":"Locked On"},"version":{"type":"integer","title":"Version"},"member_count":{"type":"integer","title":"Member Count","default":0}},"type":"object","required":["role","label","description","version"],"title":"RolePermissionsResponse"},"RolePermissionsUpdate":{"properties":{"permissions":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Permissions"},"version":{"type":"integer","minimum":1.0,"title":"Version"}},"type":"object","required":["version"],"title":"RolePermissionsUpdate"},"SandboxSendRequest":{"properties":{"to":{"type":"string","maxLength":160,"minLength":1,"title":"To","description":"Phone, WhatsApp BSUID, Page-scoped ID, or Instagram-scoped user ID."},"message":{"type":"string","maxLength":4096,"title":"Message","default":""},"message_type":{"type":"string","enum":["text","image","video","document","audio","voice_note","interactive","template"],"title":"Message Type","default":"text"},"media_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Media Url"},"media_filename":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Media Filename"},"interactive":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Interactive"},"template_name":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Template Name"},"template_language":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Template Language"},"template_components":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Template Components"},"template_category":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Template Category"}},"type":"object","required":["to"],"title":"SandboxSendRequest"},"SandboxSendResponse":{"properties":{"message_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Id"},"status":{"type":"string","title":"Status"},"raw_response":{"additionalProperties":true,"type":"object","title":"Raw Response"}},"type":"object","required":["status"],"title":"SandboxSendResponse"},"SaveCrmWebhookRequest":{"properties":{"webhook_url":{"type":"string","maxLength":2048,"minLength":20,"title":"Webhook Url"}},"type":"object","required":["webhook_url"],"title":"SaveCrmWebhookRequest"},"SaveOpenlinesCredentialsRequest":{"properties":{"client_id":{"type":"string","maxLength":255,"minLength":1,"title":"Client Id"},"client_secret":{"type":"string","maxLength":512,"minLength":1,"title":"Client Secret"}},"type":"object","required":["client_id","client_secret"],"title":"SaveOpenlinesCredentialsRequest"},"SegmentCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Description"},"filters":{"$ref":"#/components/schemas/SegmentFilters"}},"type":"object","required":["name"],"title":"SegmentCreate"},"SegmentFilters":{"properties":{"label_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Label Ids"},"label_match":{"type":"string","enum":["any","all"],"title":"Label Match","default":"any"},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned User Id"},"unassigned_only":{"type":"boolean","title":"Unassigned Only","default":false},"channel_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Id"},"last_activity_after":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity After"},"last_activity_before":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity Before"},"created_after":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created After"},"created_before":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created Before"},"min_conversation_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Min Conversation Count"},"max_conversation_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Conversation Count"}},"type":"object","title":"SegmentFilters"},"SegmentPreviewContact":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name"},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"},"external_user_id":{"type":"string","title":"External User Id"},"channel_id":{"type":"string","format":"uuid","title":"Channel Id"},"last_activity_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Activity At"},"conversation_count":{"type":"integer","title":"Conversation Count","default":0}},"type":"object","required":["id","display_name","external_user_id","channel_id"],"title":"SegmentPreviewContact"},"SegmentPreviewRequest":{"properties":{"filters":{"$ref":"#/components/schemas/SegmentFilters"},"limit":{"type":"integer","maximum":100.0,"minimum":1.0,"title":"Limit","default":25}},"type":"object","required":["filters"],"title":"SegmentPreviewRequest"},"SegmentPreviewResponse":{"properties":{"total":{"type":"integer","title":"Total"},"contacts":{"items":{"$ref":"#/components/schemas/SegmentPreviewContact"},"type":"array","title":"Contacts"},"truncated":{"type":"boolean","title":"Truncated","default":false}},"type":"object","required":["total","contacts"],"title":"SegmentPreviewResponse"},"SegmentResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"filters":{"additionalProperties":true,"type":"object","title":"Filters"},"cached_contact_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cached Contact Count"}},"type":"object","required":["id","created_at","updated_at","organization_id","name","description","filters"],"title":"SegmentResponse"},"SegmentUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Description"},"filters":{"anyOf":[{"$ref":"#/components/schemas/SegmentFilters"},{"type":"null"}]}},"type":"object","title":"SegmentUpdate"},"SelectOrganizationRequest":{"properties":{"selection_token":{"type":"string","minLength":20,"title":"Selection Token"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"}},"type":"object","required":["selection_token","organization_id"],"title":"SelectOrganizationRequest"},"SendTemplateMessageRequest":{"properties":{"phone_number_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Phone Number Id"},"sender_number":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Sender Number","description":"Sender MSISDN with country code when Truechat phone UUID is unavailable (Gupshup)."},"to":{"type":"string","maxLength":160,"minLength":5,"title":"To","description":"Phone or BSUID. Authentication templates require a phone."},"template_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Template Id"},"template_name":{"anyOf":[{"type":"string","maxLength":512,"minLength":1},{"type":"null"}],"title":"Template Name"},"language_code":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Language Code"},"variables":{"items":{"type":"string"},"type":"array","maxItems":20,"title":"Variables"},"header_variables":{"items":{"type":"string"},"type":"array","maxItems":5,"title":"Header Variables"},"header_image_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Header Image Url"},"header_video_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Header Video Url"},"header_document_url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Header Document Url"},"header_document_filename":{"anyOf":[{"type":"string","maxLength":240},{"type":"null"}],"title":"Header Document Filename"},"header_latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Header Latitude"},"header_longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Header Longitude"},"header_location_name":{"anyOf":[{"type":"string","maxLength":256},{"type":"null"}],"title":"Header Location Name"},"header_location_address":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Header Location Address"},"button_url_variables":{"items":{"type":"string"},"type":"array","maxItems":3,"title":"Button Url Variables"},"components":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Components"}},"type":"object","required":["to"],"title":"SendTemplateMessageRequest","description":"Public CRM/API template send by customer phone number or BSUID.\n\nProvide exactly one of ``phone_number_id`` (Truechat UUID) or\n``sender_number`` (MSISDN). Gupshup accounts typically use sender_number.\n\nAuthentication/OTP templates still require a real phone — a BSUID-only\ndestination is rejected until the customer shares a number."},"SendTextMessageRequest":{"properties":{"phone_number_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Phone Number Id"},"sender_number":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Sender Number","description":"Sender MSISDN with country code when Truechat phone UUID is unavailable (Gupshup)."},"to":{"type":"string","maxLength":160,"minLength":5,"title":"To","description":"Customer phone (MSISDN) or WhatsApp BSUID (e.g. EG.1349…)."},"text":{"type":"string","maxLength":4096,"minLength":1,"title":"Text"}},"type":"object","required":["to","text"],"title":"SendTextMessageRequest","description":"Public CRM/API free-form text send by customer phone or BSUID.\n\nProvide exactly one of ``phone_number_id`` (Truechat UUID) or\n``sender_number`` (MSISDN). Gupshup accounts typically use sender_number."},"SenderIdentityChannelSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"}},"type":"object","required":["id","type","name"],"title":"SenderIdentityChannelSummary"},"SenderIdentityMappingCreate":{"properties":{"channel_id":{"type":"string","format":"uuid","title":"Channel Id"},"external_identity":{"type":"string","maxLength":255,"minLength":1,"title":"External Identity"},"mapping_type":{"$ref":"#/components/schemas/SenderIdentityMappingType","default":"phone_number"},"mapped_user_id":{"type":"string","format":"uuid","title":"Mapped User Id"},"verified":{"type":"boolean","title":"Verified","default":true}},"type":"object","required":["channel_id","external_identity","mapped_user_id"],"title":"SenderIdentityMappingCreate"},"SenderIdentityMappingResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"channel_id":{"type":"string","format":"uuid","title":"Channel Id"},"external_identity":{"type":"string","title":"External Identity"},"mapping_type":{"$ref":"#/components/schemas/SenderIdentityMappingType"},"mapped_user_id":{"type":"string","format":"uuid","title":"Mapped User Id"},"verified":{"type":"boolean","title":"Verified"},"created_by_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Created By User Id"},"mapped_user":{"anyOf":[{"$ref":"#/components/schemas/SenderIdentityUserSummary"},{"type":"null"}]},"channel":{"anyOf":[{"$ref":"#/components/schemas/SenderIdentityChannelSummary"},{"type":"null"}]}},"type":"object","required":["id","created_at","updated_at","organization_id","channel_id","external_identity","mapping_type","mapped_user_id","verified"],"title":"SenderIdentityMappingResponse"},"SenderIdentityMappingType":{"type":"string","enum":["phone_number","integration_account","external_reference"],"title":"SenderIdentityMappingType"},"SenderIdentityMappingUpdate":{"properties":{"external_identity":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"External Identity"},"mapping_type":{"anyOf":[{"$ref":"#/components/schemas/SenderIdentityMappingType"},{"type":"null"}]},"mapped_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Mapped User Id"},"verified":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Verified"}},"type":"object","title":"SenderIdentityMappingUpdate"},"SenderIdentityUserSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"full_name":{"type":"string","title":"Full Name"},"email":{"type":"string","title":"Email"}},"type":"object","required":["id","full_name","email"],"title":"SenderIdentityUserSummary"},"SessionResponse":{"properties":{"authenticated":{"type":"boolean","title":"Authenticated"},"user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"User Id"},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role"},"access_expires_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Access Expires At"},"must_change_password":{"type":"boolean","title":"Must Change Password","default":false}},"type":"object","required":["authenticated"],"title":"SessionResponse"},"StageBoardSummaryItem":{"properties":{"stage":{"$ref":"#/components/schemas/StageResponse"},"conversation_count":{"type":"integer","title":"Conversation Count","default":0}},"type":"object","required":["stage"],"title":"StageBoardSummaryItem"},"StageCreate":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"color":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Color"},"position":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Position"},"is_default":{"type":"boolean","title":"Is Default","default":false},"is_final":{"type":"boolean","title":"Is Final","default":false},"team_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Team Id"},"allowed_next_stage_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Allowed Next Stage Ids"}},"type":"object","required":["name"],"title":"StageCreate"},"StageReorderRequest":{"properties":{"stage_ids":{"items":{"type":"string","format":"uuid"},"type":"array","minItems":1,"title":"Stage Ids"}},"type":"object","required":["stage_ids"],"title":"StageReorderRequest"},"StageResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"position":{"type":"integer","title":"Position","default":0},"is_default":{"type":"boolean","title":"Is Default","default":false},"is_final":{"type":"boolean","title":"Is Final","default":false},"team_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Team Id"},"allowed_next_stage_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Allowed Next Stage Ids"}},"type":"object","required":["id","created_at","updated_at","organization_id","name"],"title":"StageResponse"},"StageUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Name"},"color":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Color"},"position":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Position"},"is_default":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Default"},"is_final":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Final"},"team_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Team Id"},"allowed_next_stage_ids":{"anyOf":[{"items":{"type":"string","format":"uuid"},"type":"array"},{"type":"null"}],"title":"Allowed Next Stage Ids"}},"type":"object","title":"StageUpdate"},"StartContactConversationRequest":{"properties":{"channel_account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Account Id"}},"type":"object","title":"StartContactConversationRequest"},"SystemHealthComponent":{"properties":{"status":{"type":"string","title":"Status"},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Detail"}},"type":"object","required":["status"],"title":"SystemHealthComponent"},"SystemHealthResponse":{"properties":{"api":{"$ref":"#/components/schemas/SystemHealthComponent"},"postgres":{"$ref":"#/components/schemas/SystemHealthComponent"},"redis":{"$ref":"#/components/schemas/SystemHealthComponent"},"websocket":{"$ref":"#/components/schemas/SystemHealthComponent"},"webhooks":{"$ref":"#/components/schemas/SystemHealthComponent"},"queues":{"$ref":"#/components/schemas/SystemHealthComponent"},"workers":{"$ref":"#/components/schemas/SystemHealthComponent"}},"type":"object","required":["api","postgres","redis","websocket","webhooks","queues","workers"],"title":"SystemHealthResponse"},"TeamChannelAccountSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"channel_account_id":{"type":"string","format":"uuid","title":"Channel Account Id"},"account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Name"},"external_account_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"External Account Id"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"channel_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Type"},"phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number"}},"type":"object","required":["id","channel_account_id"],"title":"TeamChannelAccountSummary"},"TeamChannelAccountsUpdate":{"properties":{"channel_account_ids":{"items":{"type":"string","format":"uuid"},"type":"array","maxItems":100,"title":"Channel Account Ids"}},"type":"object","title":"TeamChannelAccountsUpdate"},"TeamCreate":{"properties":{"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"},"color":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Color"}},"type":"object","required":["name"],"title":"TeamCreate"},"TeamMemberCreate":{"properties":{"user_id":{"type":"string","format":"uuid","title":"User Id"},"role":{"$ref":"#/components/schemas/TeamMembershipRole","default":"member"}},"type":"object","required":["user_id"],"title":"TeamMemberCreate"},"TeamMemberUserSummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"full_name":{"type":"string","title":"Full Name"},"email":{"type":"string","title":"Email"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"}},"type":"object","required":["id","full_name","email"],"title":"TeamMemberUserSummary"},"TeamMembershipResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"team_id":{"type":"string","format":"uuid","title":"Team Id"},"user_id":{"type":"string","format":"uuid","title":"User Id"},"role":{"$ref":"#/components/schemas/TeamMembershipRole"},"user":{"anyOf":[{"$ref":"#/components/schemas/TeamMemberUserSummary"},{"type":"null"}]}},"type":"object","required":["id","created_at","updated_at","organization_id","team_id","user_id","role"],"title":"TeamMembershipResponse"},"TeamMembershipRole":{"type":"string","enum":["member","supervisor"],"title":"TeamMembershipRole"},"TeamResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"color":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Color"},"is_archived":{"type":"boolean","title":"Is Archived","default":false},"members":{"items":{"$ref":"#/components/schemas/TeamMembershipResponse"},"type":"array","title":"Members"},"channel_accounts":{"items":{"$ref":"#/components/schemas/TeamChannelAccountSummary"},"type":"array","title":"Channel Accounts"}},"type":"object","required":["id","created_at","updated_at","organization_id","name"],"title":"TeamResponse"},"TeamUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Description"},"color":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Color"},"is_archived":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Archived"}},"type":"object","title":"TeamUpdate"},"TelegramConnectRequest":{"properties":{"bot_token":{"type":"string","maxLength":256,"minLength":20,"title":"Bot Token"},"account_name":{"anyOf":[{"type":"string","maxLength":255},{"type":"null"}],"title":"Account Name"}},"type":"object","required":["bot_token"],"title":"TelegramConnectRequest"},"TemplateCatalogItem":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"meta_template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Template Id"},"name":{"type":"string","title":"Name"},"display_name":{"type":"string","title":"Display Name"},"status":{"type":"string","title":"Status"},"category":{"type":"string","title":"Category"},"category_label":{"type":"string","title":"Category Label"},"platform":{"type":"string","title":"Platform"},"platform_label":{"type":"string","title":"Platform Label"},"language":{"type":"string","title":"Language"},"language_label":{"type":"string","title":"Language Label"},"subtitle":{"type":"string","title":"Subtitle"},"body":{"type":"string","title":"Body"},"header":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Header"},"footer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Footer"},"variables":{"items":{"type":"string"},"type":"array","title":"Variables"},"copy_text":{"type":"string","title":"Copy Text"},"last_updated":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Updated"},"last_updated_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Updated Label"},"quality_score":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quality Score"},"channel_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Id"},"channel_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Name"},"components":{"items":{"$ref":"#/components/schemas/WhatsAppTemplateComponent"},"type":"array","title":"Components"}},"type":"object","required":["name","display_name","status","category","category_label","platform","platform_label","language","language_label","subtitle","body","copy_text"],"title":"TemplateCatalogItem","description":"Agent-app template card / details payload."},"TemplateCatalogListResponse":{"properties":{"success":{"type":"boolean","title":"Success","default":true},"message":{"type":"string","title":"Message"},"data":{"items":{"$ref":"#/components/schemas/TemplateCatalogItem"},"type":"array","title":"Data"},"meta":{"$ref":"#/components/schemas/TemplateCatalogMeta"}},"type":"object","required":["message","meta"],"title":"TemplateCatalogListResponse"},"TemplateCatalogMeta":{"properties":{"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"total":{"type":"integer","title":"Total"},"counts":{"$ref":"#/components/schemas/TemplateStatusCounts"}},"type":"object","required":["limit","offset","total"],"title":"TemplateCatalogMeta"},"TemplateStatusCounts":{"properties":{"all":{"type":"integer","title":"All","default":0},"approved":{"type":"integer","title":"Approved","default":0},"pending":{"type":"integer","title":"Pending","default":0},"rejected":{"type":"integer","title":"Rejected","default":0},"other":{"type":"integer","title":"Other","default":0}},"type":"object","title":"TemplateStatusCounts"},"TemplateVariableBindings":{"properties":{"body":{"additionalProperties":{"type":"string"},"type":"object","title":"Body"},"header":{"additionalProperties":{"type":"string"},"type":"object","title":"Header"}},"type":"object","title":"TemplateVariableBindings","description":"Truechat-owned CRM mappings for {{n}} slots (not sent to Meta)."},"TestConnectionResponse":{"properties":{"ok":{"type":"boolean","title":"Ok"},"detail":{"type":"string","title":"Detail"},"portal_domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Portal Domain"}},"type":"object","required":["ok","detail"],"title":"TestConnectionResponse"},"TokenPair":{"properties":{"access_token":{"type":"string","title":"Access Token"},"refresh_token":{"type":"string","title":"Refresh Token"},"token_type":{"type":"string","title":"Token Type","default":"bearer"}},"type":"object","required":["access_token","refresh_token"],"title":"TokenPair"},"TransactionalReportItem":{"properties":{"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"channel_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Channel Id"},"channel_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Channel Type"},"contact_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contact Name"},"assigned_user_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned User Id"},"assigned_user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Assigned User Name"},"assigned_team_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Assigned Team Id"},"status":{"type":"string","title":"Status"},"priority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Priority"},"csat_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Csat Status"},"first_response_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"First Response Minutes"},"resolution_minutes":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Resolution Minutes"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"closed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Closed At"},"last_message_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Message At"}},"type":"object","required":["conversation_id","status","created_at"],"title":"TransactionalReportItem"},"TransactionalReportResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/TransactionalReportItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"TransactionalReportResponse"},"UnmappedSenderMessageResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"conversation_id":{"type":"string","format":"uuid","title":"Conversation Id"},"channel_id":{"type":"string","format":"uuid","title":"Channel Id"},"sender_external_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender External Id"},"direction":{"type":"string","title":"Direction"},"message_type":{"type":"string","title":"Message Type"},"content":{"additionalProperties":true,"type":"object","title":"Content"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","conversation_id","channel_id","sender_external_id","direction","message_type","content","created_at"],"title":"UnmappedSenderMessageResponse"},"UpdateBitrix24FieldRequest":{"properties":{"field_id":{"type":"string","maxLength":255,"minLength":1,"title":"Field Id"},"value":{"title":"Value"}},"type":"object","required":["field_id"],"title":"UpdateBitrix24FieldRequest"},"UpdateOutboundWebhookRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Name"},"callback_url":{"anyOf":[{"type":"string","maxLength":2083,"minLength":1,"format":"uri"},{"type":"null"}],"title":"Callback Url"},"payload_format":{"anyOf":[{"type":"string","enum":["meta_v3","truechat_v2","trueshup_v1"]},{"type":"null"}],"title":"Payload Format"},"events":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Events"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},"type":"object","title":"UpdateOutboundWebhookRequest"},"UpdateProfileRequest":{"properties":{"full_name":{"anyOf":[{"type":"string","maxLength":160,"minLength":1},{"type":"null"}],"title":"Full Name"},"phone":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Phone"},"job_title":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Job Title"},"timezone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Timezone"},"locale":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Locale"},"bio":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Bio"}},"type":"object","title":"UpdateProfileRequest"},"UpdateTemplateVariableBindingsRequest":{"properties":{"variable_bindings":{"$ref":"#/components/schemas/TemplateVariableBindings"}},"type":"object","required":["variable_bindings"],"title":"UpdateTemplateVariableBindingsRequest"},"UpdateWhatsAppTemplateRequest":{"properties":{"category":{"type":"string","enum":["MARKETING","UTILITY","AUTHENTICATION"],"title":"Category"},"components":{"items":{"$ref":"#/components/schemas/WhatsAppTemplateComponent"},"type":"array","minItems":1,"title":"Components"}},"type":"object","required":["category","components"],"title":"UpdateWhatsAppTemplateRequest","description":"Editable fields for an existing Meta template (name/language stay fixed)."},"UsageDataPoint":{"properties":{"date":{"type":"string","title":"Date"},"messages_sent":{"type":"integer","title":"Messages Sent","default":0},"messages_received":{"type":"integer","title":"Messages Received","default":0}},"type":"object","required":["date"],"title":"UsageDataPoint"},"UsageSummary":{"properties":{"messages_sent":{"type":"integer","title":"Messages Sent","default":0},"messages_received":{"type":"integer","title":"Messages Received","default":0},"templates_sent":{"type":"integer","title":"Templates Sent","default":0},"media_storage_bytes":{"type":"integer","title":"Media Storage Bytes","default":0},"api_requests":{"type":"integer","title":"Api Requests","default":0},"connected_channels":{"type":"integer","title":"Connected Channels","default":0},"active_agents":{"type":"integer","title":"Active Agents","default":0}},"type":"object","title":"UsageSummary"},"UserMeResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"full_name":{"type":"string","title":"Full Name"},"email":{"type":"string","format":"email","title":"Email"},"is_active":{"type":"boolean","title":"Is Active"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"job_title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Title"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale"},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bio"},"avatar_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Avatar Url"},"role":{"$ref":"#/components/schemas/MembershipRole"},"must_change_password":{"type":"boolean","title":"Must Change Password","default":false},"is_platform_admin":{"type":"boolean","title":"Is Platform Admin","default":false},"permission_overrides":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Permission Overrides","default":{}},"effective_permissions":{"additionalProperties":{"type":"boolean"},"type":"object","title":"Effective Permissions","default":{}},"organization_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Organization Id"},"organization_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Organization Name"},"supervised_team_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Supervised Team Ids","default":[]},"supervised_member_user_ids":{"items":{"type":"string","format":"uuid"},"type":"array","title":"Supervised Member User Ids","default":[]}},"type":"object","required":["id","created_at","updated_at","full_name","email","is_active","role"],"title":"UserMeResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WabaBillingProfileResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"waba_id":{"type":"string","title":"Waba Id"},"mode":{"type":"string","title":"Mode"},"state":{"type":"string","title":"State"},"state_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State Reason"},"waba_currency":{"type":"string","title":"Waba Currency"},"allocation_config_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Allocation Config Id"},"expected_funding_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expected Funding Id"},"observed_funding_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Observed Funding Id"},"attached_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Attached At"},"last_verified_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Verified At"},"last_mismatch_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Mismatch At"},"blocks_sending":{"type":"boolean","title":"Blocks Sending"}},"type":"object","required":["id","waba_id","mode","state","state_reason","waba_currency","allocation_config_id","expected_funding_id","observed_funding_id","attached_at","last_verified_at","last_mismatch_at","blocks_sending"],"title":"WabaBillingProfileResponse"},"WalletAdjustmentRequest":{"properties":{"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"amount_cents":{"type":"integer","title":"Amount Cents"},"description":{"type":"string","maxLength":255,"minLength":3,"title":"Description"}},"type":"object","required":["organization_id","amount_cents","description"],"title":"WalletAdjustmentRequest"},"WalletAdminRateResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"country_code":{"type":"string","title":"Country Code"},"country_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Name"},"category":{"type":"string","title":"Category"},"currency":{"type":"string","title":"Currency"},"meta_cost_micros":{"type":"integer","title":"Meta Cost Micros"},"sell_price_micros":{"type":"integer","title":"Sell Price Micros"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["id","country_code","country_name","category","currency","meta_cost_micros","sell_price_micros","is_active"],"title":"WalletAdminRateResponse","description":"Platform-admin rate card including Meta cost for margin control."},"WalletBalanceResponse":{"properties":{"currency":{"type":"string","title":"Currency"},"status":{"type":"string","enum":["active","frozen"],"title":"Status"},"balance_micros":{"type":"integer","title":"Balance Micros"},"reserved_micros":{"type":"integer","title":"Reserved Micros"},"available_micros":{"type":"integer","title":"Available Micros"},"balance_cents":{"type":"integer","title":"Balance Cents"},"low_balance_threshold_micros":{"type":"integer","title":"Low Balance Threshold Micros"},"is_low_balance":{"type":"boolean","title":"Is Low Balance"},"daily_cap_micros":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Daily Cap Micros"},"monthly_cap_micros":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Monthly Cap Micros"},"auto_topup_enabled":{"type":"boolean","title":"Auto Topup Enabled"},"auto_topup_amount_cents":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Auto Topup Amount Cents"}},"type":"object","required":["currency","status","balance_micros","reserved_micros","available_micros","balance_cents","low_balance_threshold_micros","is_low_balance","daily_cap_micros","monthly_cap_micros","auto_topup_enabled","auto_topup_amount_cents"],"title":"WalletBalanceResponse"},"WalletDailySpendPoint":{"properties":{"date":{"type":"string","format":"date","title":"Date"},"spent_micros":{"type":"integer","title":"Spent Micros"},"message_count":{"type":"integer","title":"Message Count"}},"type":"object","required":["date","spent_micros","message_count"],"title":"WalletDailySpendPoint"},"WalletOverviewResponse":{"properties":{"wallet":{"$ref":"#/components/schemas/WalletBalanceResponse"},"spend":{"$ref":"#/components/schemas/WalletSpendSummary"},"estimated_days_remaining":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Days Remaining"},"pending_holds":{"type":"integer","title":"Pending Holds"},"pending_hold_micros":{"type":"integer","title":"Pending Hold Micros"},"wallet_enabled":{"type":"boolean","title":"Wallet Enabled"},"card_topups_enabled":{"type":"boolean","title":"Card Topups Enabled"}},"type":"object","required":["wallet","spend","estimated_days_remaining","pending_holds","pending_hold_micros","wallet_enabled","card_topups_enabled"],"title":"WalletOverviewResponse"},"WalletRateResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"country_code":{"type":"string","title":"Country Code"},"country_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country Name"},"category":{"type":"string","title":"Category"},"currency":{"type":"string","title":"Currency"},"sell_price_micros":{"type":"integer","title":"Sell Price Micros"},"is_active":{"type":"boolean","title":"Is Active"}},"type":"object","required":["id","country_code","country_name","category","currency","sell_price_micros","is_active"],"title":"WalletRateResponse","description":"Org-facing rate card — charged price only (no Meta cost / margin)."},"WalletRateUpsert":{"properties":{"country_code":{"type":"string","maxLength":8,"minLength":1,"title":"Country Code"},"category":{"type":"string","enum":["marketing","utility","authentication","service"],"title":"Category"},"meta_cost_micros":{"type":"integer","minimum":0.0,"title":"Meta Cost Micros"},"sell_price_micros":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Sell Price Micros"},"country_name":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Country Name"},"is_active":{"type":"boolean","title":"Is Active","default":true}},"type":"object","required":["country_code","category","meta_cost_micros"],"title":"WalletRateUpsert"},"WalletSettingsUpdate":{"properties":{"low_balance_threshold_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Low Balance Threshold Cents"},"daily_cap_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Daily Cap Cents"},"monthly_cap_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Monthly Cap Cents"},"clear_daily_cap":{"type":"boolean","title":"Clear Daily Cap","default":false},"clear_monthly_cap":{"type":"boolean","title":"Clear Monthly Cap","default":false},"auto_topup_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto Topup Enabled"},"auto_topup_amount_cents":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Auto Topup Amount Cents"}},"type":"object","title":"WalletSettingsUpdate"},"WalletSpendSummary":{"properties":{"today_micros":{"type":"integer","title":"Today Micros"},"month_micros":{"type":"integer","title":"Month Micros"},"today_messages":{"type":"integer","title":"Today Messages"},"month_messages":{"type":"integer","title":"Month Messages"},"daily_cap_micros":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Daily Cap Micros"},"monthly_cap_micros":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Monthly Cap Micros"}},"type":"object","required":["today_micros","month_micros","today_messages","month_messages","daily_cap_micros","monthly_cap_micros"],"title":"WalletSpendSummary"},"WalletTopUpRequest":{"properties":{"amount_cents":{"type":"integer","maximum":10000000.0,"exclusiveMinimum":0.0,"title":"Amount Cents"}},"type":"object","required":["amount_cents"],"title":"WalletTopUpRequest"},"WalletTopUpResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"provider":{"type":"string","title":"Provider"},"status":{"type":"string","title":"Status"},"amount_cents":{"type":"integer","title":"Amount Cents"},"currency":{"type":"string","title":"Currency"},"checkout_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkout Url"},"provider_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Reference"},"failure_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Failure Reason"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","provider","status","amount_cents","currency","checkout_url","provider_reference","failure_reason","created_at"],"title":"WalletTopUpResponse"},"WalletTransactionPage":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WalletTransactionResponse"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"}},"type":"object","required":["items","total"],"title":"WalletTransactionPage"},"WalletTransactionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"kind":{"type":"string","title":"Kind"},"amount_micros":{"type":"integer","title":"Amount Micros"},"balance_after_micros":{"type":"integer","title":"Balance After Micros"},"currency":{"type":"string","title":"Currency"},"description":{"type":"string","title":"Description"},"reference_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Type"},"reference_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","kind","amount_micros","balance_after_micros","currency","description","reference_type","reference_id","created_at"],"title":"WalletTransactionResponse"},"WebhookDeliveryResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"channel_account_id":{"type":"string","format":"uuid","title":"Channel Account Id"},"webhook_config_id":{"type":"string","title":"Webhook Config Id"},"event_type":{"type":"string","title":"Event Type"},"url":{"type":"string","title":"Url"},"status_code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Status Code"},"success":{"type":"boolean","title":"Success"},"attempt":{"type":"integer","title":"Attempt"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"response_body":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Response Body"},"sender_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender Type"},"message_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message Type"},"direction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Direction"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"}},"type":"object","required":["id","organization_id","channel_account_id","webhook_config_id","event_type","url","success","attempt"],"title":"WebhookDeliveryResponse"},"WhatcrmQrSessionCreateRequest":{"properties":{"account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Account Id","description":"Reconnect an existing QR WhatsApp account."},"activation_key":{"anyOf":[{"type":"string","maxLength":128},{"type":"null"}],"title":"Activation Key","description":"Unused by customers. Truechat provisions the QR connection."}},"type":"object","title":"WhatcrmQrSessionCreateRequest"},"WhatcrmQrSessionResponse":{"properties":{"session_id":{"type":"string","format":"uuid","title":"Session Id"},"account_id":{"type":"string","format":"uuid","title":"Account Id"},"qr_base64":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qr Base64"},"expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expires At"},"status":{"type":"string","title":"Status"},"phone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone"},"account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Name"},"warning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Warning"}},"type":"object","required":["session_id","account_id","status"],"title":"WhatcrmQrSessionResponse"},"WhatsAppAccountStatus":{"type":"string","enum":["connected","pending","disconnected","error"],"title":"WhatsAppAccountStatus"},"WhatsAppBusinessAccountResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"waba_id":{"type":"string","title":"Waba Id"},"business_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Business Name"},"token_expires_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Token Expires At"},"status":{"$ref":"#/components/schemas/WhatsAppAccountStatus"},"extra":{"additionalProperties":true,"type":"object","title":"Extra"}},"type":"object","required":["id","created_at","updated_at","organization_id","waba_id","business_name","token_expires_at","status","extra"],"title":"WhatsAppBusinessAccountResponse"},"WhatsAppChargeItem":{"properties":{"hold_id":{"type":"string","format":"uuid","title":"Hold Id"},"settled_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Settled At"},"channel_account_id":{"type":"string","format":"uuid","title":"Channel Account Id"},"source_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Number"},"category":{"type":"string","title":"Category"},"country_code":{"type":"string","title":"Country Code"},"amount_micros":{"type":"integer","title":"Amount Micros"},"currency":{"type":"string","title":"Currency","default":"usd"},"message_id":{"type":"string","format":"uuid","title":"Message Id"},"conversation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Conversation Id"}},"type":"object","required":["hold_id","channel_account_id","category","country_code","amount_micros","message_id"],"title":"WhatsAppChargeItem"},"WhatsAppChargesResponse":{"properties":{"channel_account_id":{"type":"string","format":"uuid","title":"Channel Account Id"},"date_from":{"type":"string","format":"date-time","title":"Date From"},"date_to":{"type":"string","format":"date-time","title":"Date To"},"items":{"items":{"$ref":"#/components/schemas/WhatsAppChargeItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total","default":0},"total_amount_micros":{"type":"integer","title":"Total Amount Micros","default":0},"limit":{"type":"integer","title":"Limit","default":50},"offset":{"type":"integer","title":"Offset","default":0}},"type":"object","required":["channel_account_id","date_from","date_to"],"title":"WhatsAppChargesResponse"},"WhatsAppCostRow":{"properties":{"channel_account_id":{"type":"string","format":"uuid","title":"Channel Account Id"},"account_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Account Name"},"source_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Number"},"category":{"type":"string","title":"Category"},"country_code":{"type":"string","title":"Country Code"},"message_count":{"type":"integer","title":"Message Count","default":0},"spent_micros":{"type":"integer","title":"Spent Micros","default":0}},"type":"object","required":["channel_account_id","category","country_code"],"title":"WhatsAppCostRow"},"WhatsAppCostsReportResponse":{"properties":{"date_from":{"type":"string","format":"date-time","title":"Date From"},"date_to":{"type":"string","format":"date-time","title":"Date To"},"items":{"items":{"$ref":"#/components/schemas/WhatsAppCostRow"},"type":"array","title":"Items"},"total_spent_micros":{"type":"integer","title":"Total Spent Micros","default":0},"total_messages":{"type":"integer","title":"Total Messages","default":0},"selected_channel_account_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Selected Channel Account Id"},"accessible_accounts":{"items":{"$ref":"#/components/schemas/DashboardAccessibleAccount"},"type":"array","title":"Accessible Accounts"}},"type":"object","required":["date_from","date_to"],"title":"WhatsAppCostsReportResponse"},"WhatsAppEmbeddedCompleteRequest":{"properties":{"code":{"type":"string","minLength":1,"title":"Code"},"state":{"type":"string","minLength":1,"title":"State"},"waba_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Waba Id"},"phone_number_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Phone Number Id"}},"type":"object","required":["code","state"],"title":"WhatsAppEmbeddedCompleteRequest"},"WhatsAppPhoneNumberResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"whatsapp_business_account_id":{"type":"string","format":"uuid","title":"Whatsapp Business Account Id"},"phone_number_id":{"type":"string","title":"Phone Number Id"},"display_phone_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Phone Number"},"verified_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Verified Name"},"quality_rating":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quality Rating"},"messaging_limit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Messaging Limit"},"status":{"$ref":"#/components/schemas/PhoneNumberStatus"},"extra":{"additionalProperties":true,"type":"object","title":"Extra"}},"type":"object","required":["id","created_at","updated_at","organization_id","whatsapp_business_account_id","phone_number_id","display_phone_number","verified_name","quality_rating","messaging_limit","status","extra"],"title":"WhatsAppPhoneNumberResponse"},"WhatsAppTemplateComponent":{"properties":{"type":{"type":"string","title":"Type"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"},"format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format"},"example":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Example"},"buttons":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Buttons"}},"additionalProperties":true,"type":"object","required":["type"],"title":"WhatsAppTemplateComponent","description":"One Meta message-template component (HEADER / BODY / FOOTER / BUTTONS)."},"WhatsAppTemplateResponse":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"meta_template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Meta Template Id"},"name":{"type":"string","title":"Name"},"category":{"type":"string","title":"Category"},"language":{"type":"string","title":"Language"},"status":{"type":"string","title":"Status"},"components":{"items":{"$ref":"#/components/schemas/WhatsAppTemplateComponent"},"type":"array","title":"Components"},"last_updated_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Updated Time"},"quality_score":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Quality Score"},"variable_bindings":{"anyOf":[{"$ref":"#/components/schemas/TemplateVariableBindings"},{"type":"null"}]}},"type":"object","required":["name","category","language","status"],"title":"WhatsAppTemplateResponse"},"WorkflowAnalyticsResponse":{"properties":{"executions":{"type":"integer","title":"Executions","default":0},"success_rate":{"type":"number","title":"Success Rate","default":0.0},"failures":{"type":"integer","title":"Failures","default":0},"successes":{"type":"integer","title":"Successes","default":0},"skipped":{"type":"integer","title":"Skipped","default":0},"timeline":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Timeline"}},"type":"object","title":"WorkflowAnalyticsResponse"},"WorkflowCreate":{"properties":{"name":{"type":"string","maxLength":255,"minLength":1,"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Description"},"template_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Template Id"}},"type":"object","required":["name"],"title":"WorkflowCreate"},"WorkflowDetailResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"$ref":"#/components/schemas/WorkflowStatus"},"trigger_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Type"},"last_run_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Run At"},"execution_count":{"type":"integer","title":"Execution Count","default":0},"success_count":{"type":"integer","title":"Success Count","default":0},"failure_count":{"type":"integer","title":"Failure Count","default":0},"published_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Published Version Id"},"has_unpublished_draft":{"type":"boolean","title":"Has Unpublished Draft","default":false},"draft_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Draft Version Id"},"graph":{"anyOf":[{"$ref":"#/components/schemas/WorkflowVersionResponse"},{"type":"null"}]},"metadata":{"additionalProperties":true,"type":"object","title":"Metadata"}},"type":"object","required":["id","created_at","updated_at","organization_id","name","description","status","trigger_type"],"title":"WorkflowDetailResponse"},"WorkflowEdgeInput":{"properties":{"edge_key":{"type":"string","maxLength":128,"minLength":1,"title":"Edge Key"},"source_node_key":{"type":"string","title":"Source Node Key"},"target_node_key":{"type":"string","title":"Target Node Key"},"source_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Handle"},"target_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Handle"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["edge_key","source_node_key","target_node_key"],"title":"WorkflowEdgeInput"},"WorkflowEdgeResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"edge_key":{"type":"string","title":"Edge Key"},"source_node_key":{"type":"string","title":"Source Node Key"},"target_node_key":{"type":"string","title":"Target Node Key"},"source_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Handle"},"target_handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Target Handle"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"}},"type":"object","required":["id","created_at","updated_at","edge_key","source_node_key","target_node_key","source_handle","target_handle","label"],"title":"WorkflowEdgeResponse"},"WorkflowEventEmit":{"properties":{"event_type":{"type":"string","maxLength":64,"minLength":1,"title":"Event Type"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"type":"object","required":["event_type"],"title":"WorkflowEventEmit"},"WorkflowExecutionLogResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"node_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Node Key"},"status":{"$ref":"#/components/schemas/WorkflowExecutionLogStatus"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"input_snapshot":{"additionalProperties":true,"type":"object","title":"Input Snapshot"},"output_snapshot":{"additionalProperties":true,"type":"object","title":"Output Snapshot"}},"type":"object","required":["id","created_at","updated_at","node_key","status","message","input_snapshot","output_snapshot"],"title":"WorkflowExecutionLogResponse"},"WorkflowExecutionLogStatus":{"type":"string","enum":["success","failed","skipped"],"title":"WorkflowExecutionLogStatus"},"WorkflowExecutionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"workflow_id":{"type":"string","format":"uuid","title":"Workflow Id"},"version_id":{"type":"string","format":"uuid","title":"Version Id"},"status":{"$ref":"#/components/schemas/WorkflowExecutionStatus"},"trigger_event":{"additionalProperties":true,"type":"object","title":"Trigger Event"},"context":{"additionalProperties":true,"type":"object","title":"Context"},"current_node_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Node Key"},"scheduled_resume_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled Resume At"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"logs":{"items":{"$ref":"#/components/schemas/WorkflowExecutionLogResponse"},"type":"array","title":"Logs"}},"type":"object","required":["id","created_at","updated_at","organization_id","workflow_id","version_id","status","trigger_event","context","current_node_key","scheduled_resume_at","error_message","completed_at"],"title":"WorkflowExecutionResponse"},"WorkflowExecutionStatus":{"type":"string","enum":["pending","running","waiting","completed","failed","cancelled"],"title":"WorkflowExecutionStatus"},"WorkflowGraphUpdate":{"properties":{"nodes":{"items":{"$ref":"#/components/schemas/WorkflowNodeInput"},"type":"array","title":"Nodes"},"edges":{"items":{"$ref":"#/components/schemas/WorkflowEdgeInput"},"type":"array","title":"Edges"}},"type":"object","title":"WorkflowGraphUpdate"},"WorkflowListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"organization_id":{"type":"string","format":"uuid","title":"Organization Id"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"status":{"$ref":"#/components/schemas/WorkflowStatus"},"trigger_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trigger Type"},"last_run_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Run At"},"execution_count":{"type":"integer","title":"Execution Count","default":0},"success_count":{"type":"integer","title":"Success Count","default":0},"failure_count":{"type":"integer","title":"Failure Count","default":0},"published_version_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Published Version Id"},"has_unpublished_draft":{"type":"boolean","title":"Has Unpublished Draft","default":false}},"type":"object","required":["id","created_at","updated_at","organization_id","name","description","status","trigger_type"],"title":"WorkflowListItem"},"WorkflowNodeInput":{"properties":{"node_key":{"type":"string","maxLength":128,"minLength":1,"title":"Node Key"},"node_type":{"$ref":"#/components/schemas/WorkflowNodeType"},"subtype":{"type":"string","maxLength":64,"minLength":1,"title":"Subtype"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"position_x":{"type":"number","title":"Position X","default":0},"position_y":{"type":"number","title":"Position Y","default":0},"config":{"additionalProperties":true,"type":"object","title":"Config"}},"type":"object","required":["node_key","node_type","subtype"],"title":"WorkflowNodeInput"},"WorkflowNodeResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"node_key":{"type":"string","title":"Node Key"},"node_type":{"$ref":"#/components/schemas/WorkflowNodeType"},"subtype":{"type":"string","title":"Subtype"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"position_x":{"type":"number","title":"Position X"},"position_y":{"type":"number","title":"Position Y"},"config":{"additionalProperties":true,"type":"object","title":"Config"}},"type":"object","required":["id","created_at","updated_at","node_key","node_type","subtype","label","position_x","position_y","config"],"title":"WorkflowNodeResponse"},"WorkflowNodeType":{"type":"string","enum":["trigger","condition","action","delay"],"title":"WorkflowNodeType"},"WorkflowStatus":{"type":"string","enum":["draft","active","paused","archived"],"title":"WorkflowStatus"},"WorkflowTemplateResponse":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"trigger_type":{"type":"string","title":"Trigger Type"},"graph":{"$ref":"#/components/schemas/WorkflowGraphUpdate"}},"type":"object","required":["id","name","description","trigger_type","graph"],"title":"WorkflowTemplateResponse"},"WorkflowTestRunRequest":{"properties":{"event_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event Type"},"payload":{"additionalProperties":true,"type":"object","title":"Payload"}},"type":"object","title":"WorkflowTestRunRequest"},"WorkflowUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":1024},{"type":"null"}],"title":"Description"},"status":{"anyOf":[{"$ref":"#/components/schemas/WorkflowStatus"},{"type":"null"}]}},"type":"object","title":"WorkflowUpdate"},"WorkflowVersionResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"workflow_id":{"type":"string","format":"uuid","title":"Workflow Id"},"version_number":{"type":"integer","title":"Version Number"},"is_published":{"type":"boolean","title":"Is Published"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"nodes":{"items":{"$ref":"#/components/schemas/WorkflowNodeResponse"},"type":"array","title":"Nodes"},"edges":{"items":{"$ref":"#/components/schemas/WorkflowEdgeResponse"},"type":"array","title":"Edges"}},"type":"object","required":["id","created_at","updated_at","workflow_id","version_number","is_published","published_at"],"title":"WorkflowVersionResponse"},"WorkspaceOption":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"role":{"type":"string","title":"Role"},"last_active_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Active At"}},"type":"object","required":["id","name","role"],"title":"WorkspaceOption"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT or API key","description":"Pass a JWT access token from `/api/v1/auth/login`, or an API key (`sk_live_...` / `sk_test_...`) from Settings → API keys."}}},"tags":[{"name":"health","description":"Service liveness and dependency checks."},{"name":"auth","description":"Register, login, refresh, logout, and organization selection."},{"name":"users","description":"Current user profile endpoints."},{"name":"organizations","description":"Workspace profile and organization settings."},{"name":"memberships","description":"Team members, roles, and agent availability clock."},{"name":"billing","description":"Plans, usage, and invoices."},{"name":"api-keys","description":"Create, list, and revoke programmatic API keys."},{"name":"audit-logs","description":"Security and activity audit trail."},{"name":"inbox","description":"Omnichannel inbox views and message actions."},{"name":"conversations","description":"Conversation list, detail, and thread history."},{"name":"messages","description":"Send and retrieve messages across connected channels."},{"name":"contacts","description":"Contact records, notes, labels, and assignments."},{"name":"segments","description":"Audience segments for targeting and broadcasts."},{"name":"broadcasts","description":"Campaign creation and delivery status."},{"name":"automations","description":"Workflow builders, triggers, actions, and executions."},{"name":"auto-replies","description":"Keyword and inbox auto-reply rules."},{"name":"channels","description":"Connected messaging channel configuration."},{"name":"whatsapp-accounts","description":"WhatsApp Business accounts linked to the workspace."},{"name":"phone-numbers","description":"WhatsApp phone numbers and routing metadata."},{"name":"meta","description":"Meta OAuth / Embedded Signup for WhatsApp, Instagram, and Messenger."},{"name":"telegram","description":"Telegram bot connection and channel setup."},{"name":"tiktok","description":"TikTok OAuth and messaging channel setup."},{"name":"snapchat","description":"Snapchat Public Profile Messaging (brand↔creator) setup."},{"name":"webhooks","description":"Inbound provider webhooks (Meta, Telegram, TikTok, WhatCRM, and custom)."},{"name":"inbound-webhooks","description":"Manage CRM contact inbound webhook URLs (path token + API key)."},{"name":"hooks","description":"Runtime CRM ingress: ?method=contact.* and channels.list."},{"name":"admin","description":"Platform admin analytics and organization management."},{"name":"metrics","description":"Operational metrics endpoints."},{"name":"internal","description":"Internal operational tools (replay and recovery)."},{"name":"review","description":"Meta app review demo helpers."}],"servers":[{"url":"https://api.cultivbureau.com","description":"Configured API origin"},{"url":"http://localhost:8000","description":"Local development"}],"x-tagGroups":[{"name":"Getting started","tags":["health","auth"]},{"name":"Workspace","tags":["users","organizations","memberships","billing"]},{"name":"Messaging","tags":["inbox","conversations","messages","contacts","segments"]},{"name":"Channels","tags":["channels","whatsapp-accounts","phone-numbers","meta","telegram","tiktok","snapchat","webhooks"]},{"name":"Automation","tags":["automations","auto-replies","broadcasts"]},{"name":"Developers","tags":["api-keys","audit-logs"]},{"name":"Platform","tags":["admin","metrics","internal","review"]}]}