{"openapi":"3.1.0","info":{"title":"Orova Chat API","description":"Programmatic access to everything you can do in Orova Chat: profile, settings, contacts, conversations, messages, files, calls, AI, devices, wallet, business and Pockets.\n\n**Authentication** — send your API Key and Secret Key as `X-Api-Key` + `X-Api-Secret` headers, or `Authorization: Bearer ock_…:ocs_…`. Legacy keys (`ocht_…`) and OAuth access tokens (`ocha_…`) use `Authorization: Bearer`.\n\n**Scopes** — each operation lists its required scopes. `X:write` implies `X:read`.\n\n**Errors** — every error is JSON `{\"error\": \"<snake_case_code>\", \"message\": \"...\"}`. `429 rate_limited` comes with `Retry-After`.\n\n**Lists** — `{\"data\": [...], \"next_cursor\": \"...\" | null}`.\n\n**Idempotency** — create operations accept an `Idempotency-Key` header (max 64 chars), kept for 24 hours.","version":"1.0.0"},"servers":[{"url":"https://chat.orova.vn/api/chat/v1"}],"paths":{"/me":{"get":{"tags":["Account"],"summary":"Get my profile","description":"Return the account behind this key: id, email, name, Chat ID (handle), avatar, profile fields, locale and the workspaces you belong to.\n\n**Required scopes:** `profile:read`","operationId":"get_me","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["profile:read"]},"patch":{"tags":["Account"],"summary":"Update my profile","description":"Update only the profile fields you send; null or \"\" clears an optional field. If any field is invalid nothing is saved (400 invalid_<field>). Email cannot be changed here.\n\n**Required scopes:** `profile:write`","operationId":"update_me","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["profile:write"]}},"/me/qr":{"get":{"tags":["Account"],"summary":"Get my QR code","description":"Return the add-friend link and token encoded in your personal QR code, with your name, Chat ID and avatar. Creates a Chat ID if you have none.\n\n**Required scopes:** `profile:read`","operationId":"get_my_qr","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["profile:read"]}},"/settings":{"get":{"tags":["Account"],"summary":"Get my settings","description":"Return privacy, theme, online status, Chat ID, email visibility, read receipts, group-add permission and app preferences.\n\n**Required scopes:** `settings:read`","operationId":"get_settings","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["settings:read"]},"patch":{"tags":["Account"],"summary":"Update my settings","description":"Change only the settings you send; theme and prefs are merged into the current values. Returns all settings. Changes sync to your other devices.\n\n**Required scopes:** `settings:write`","operationId":"update_settings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettingsUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["settings:write"]}},"/settings/translation":{"get":{"tags":["Account"],"summary":"Get default translation settings","description":"Return your account-wide auto-translate default (auto, lang, old), the supported languages and your interface language.\n\n**Required scopes:** `settings:read`","operationId":"get_translation_settings","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["settings:read"]},"patch":{"tags":["Account"],"summary":"Update default translation settings","description":"Change the account-wide auto-translate default; omitted fields are kept. Conversations with their own setting are not affected. Translations themselves are billed when they run, not here.\n\n**Required scopes:** `settings:write`","operationId":"update_translation_settings","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/orova__routers__api_chat_v1_account__TranslationSettingsUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["settings:write"]}},"/me/deletion":{"get":{"tags":["Account"],"summary":"Get account deletion policy","description":"DANGEROUS scope. Read what deleting this Chat account would do: mode soft (recoverable for grace_days), hard (immediate) or cooldown (not allowed until `until`). Read-only.\n\n**Required scopes:** `account:delete`","operationId":"get_account_deletion_policy","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["account:delete"]}},"/me/deletion/request":{"post":{"tags":["Account"],"summary":"Start account deletion (email a code)","description":"DANGEROUS. Only call when the user explicitly asks to delete their Chat account. Emails a 6-digit code to the account email (valid 10 minutes); then ask the user to read it to you and call confirm_account_deletion. Accepts Idempotency-Key.\n\n**Required scopes:** `account:delete`","operationId":"request_account_deletion","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["account:delete"]}},"/me/deletion/confirm":{"post":{"tags":["Account"],"summary":"Confirm account deletion","description":"DANGEROUS, irreversible after the grace period. Deletes the Chat account using the emailed code: the AI must ask the user for the code, never guess or retry codes (5 wrong codes lock it). Soft mode signs out every device; hard mode deletes immediately.\n\n**Required scopes:** `account:delete`","operationId":"confirm_account_deletion","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletionConfirm"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["account:delete"]}},"/devices":{"get":{"tags":["Account"],"summary":"List signed-in devices","description":"Devices currently signed in to your Chat account, grouped per browser/app (`device_ids` lists every session in the group). API keys are not listed here.\n\n**Required scopes:** `devices:read`","operationId":"list_devices","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["devices:read"]}},"/devices/{device_id}":{"delete":{"tags":["Account"],"summary":"Sign out a device","description":"Signs out the device and every session grouped with it; the device is logged out in real time. Cannot be undone (sign in again). Returns 409 `current_device` for the calling device.\n\n**Required scopes:** `devices:write`","operationId":"revoke_device","parameters":[{"name":"device_id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"description":"`device_id` from `GET /devices`.","title":"Device Id"},"description":"`device_id` from `GET /devices`."}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["devices:write"]}},"/wallet":{"get":{"tags":["Account"],"summary":"Get personal wallet","description":"Quota balance of your personal wallet and the page where you can top it up. Payments are not available through the API.\n\n**Required scopes:** `wallet:read`","operationId":"get_wallet","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["wallet:read"]}},"/business":{"get":{"tags":["Account"],"summary":"Get business account link","description":"Whether your Chat account is linked to a business workspace, which workspace pays for usage (`workspace`), and the workspaces you can choose from (`choices`).\n\n**Required scopes:** `business:read`","operationId":"get_business","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["business:read"]}},"/business/primary_workspace":{"put":{"tags":["Account"],"summary":"Set the paying workspace","description":"Switches which linked business workspace pays for your Chat usage. The slug must be one of `choices` from `GET /business`; otherwise 400 `not_allowed`.\n\n**Required scopes:** `business:write`","operationId":"set_primary_workspace","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PrimaryWorkspaceIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["business:write"]}},"/presence":{"get":{"tags":["Account"],"summary":"Get presence","description":"Online status and last-seen time for up to 200 users. Users who hide their online status (and anyone you hide yours from) are reported offline.\n\n**Required scopes:** `profile:read`","operationId":"get_presence","parameters":[{"name":"user_ids","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":2400,"pattern":"^\\s*\\d+(\\s*,\\s*\\d+)*\\s*$","description":"Comma-separated user ids, at most 200 (extra ids are ignored).","title":"User Ids"},"description":"Comma-separated user ids, at most 200 (extra ids are ignored)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["profile:read"]}},"/events":{"get":{"tags":["Account"],"summary":"Stream real-time events (SSE)","description":"Server-Sent Events stream of your Chat events (new messages, reactions, calls, contacts, devices…) for the gate this key belongs to. The server closes the stream after about 10 minutes (`event: bye`); reconnect. `event: ping` keeps the connection alive.\n\n**Required scopes:** `events:read`","operationId":"stream_events","parameters":[{"name":"label","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"Label shown for this API connection in the Pocket console.","title":"Label"},"description":"Label shown for this API connection in the Pocket console."}],"responses":{"200":{"description":"`text/event-stream`","content":{"text/event-stream":{"schema":{"type":"string"}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["events:read"]}},"/workspaces/{slug}/directory":{"get":{"tags":["Account"],"summary":"List workspace directory","description":"Members of a workspace you belong to: name, email (empty when the person hides it), department, job title, phone, presence. `total` is the number of matches. Every person object (user, contact, member, sender) includes `plan_badge`: the person's active Orova Chat Business tier, shown as a badge next to their name — `\"business\"`, `\"business_pro\"` or `\"business_max\"`; `null` when they have none (or the account is deleted).\n\n**Required scopes:** `contacts:read`","operationId":"list_workspace_directory","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":120,"description":"Workspace slug (as in `https://orova.vn/u/workspaces/<slug>`).","title":"Slug"},"description":"Workspace slug (as in `https://orova.vn/u/workspaces/<slug>`)."},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"Search name, email or phone (accent-insensitive).","title":"Q"},"description":"Search name, email or phone (accent-insensitive)."},{"name":"department_id","in":"query","required":false,"schema":{"anyOf":[{"type":"integer","minimum":1},{"type":"null"}],"description":"Only this department and its sub-departments.","title":"Department Id"},"description":"Only this department and its sub-departments."},{"name":"online","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"true = online only, false = offline only.","title":"Online"},"description":"true = online only, false = offline only."},{"name":"limit","in":"query","required":false,"schema":{"$ref":"#/components/schemas/DirectoryPageSize","description":"Page size: 25, 50, 100 or 250.","default":50},"description":"Page size: 25, 50, 100 or 250."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^[1-9][0-9]{0,5}$"},{"type":"null"}],"description":"`next_cursor` from the previous page.","title":"Cursor"},"description":"`next_cursor` from the previous page."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["contacts:read"]}},"/workspaces/{slug}/admin/overview":{"get":{"tags":["Account"],"summary":"Workspace chat activity overview","description":"Per-member message, call and group counts for the last `days` days or for `from`–`to` (UTC dates, both required, max 366 days; otherwise 400 `invalid_range`). Counts only, no message content. Requires being the workspace owner or having the `chat.manage` permission.\n\n**Required scopes:** `workspace_admin:read`","operationId":"get_workspace_chat_overview","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":120,"description":"Workspace slug (as in `https://orova.vn/u/workspaces/<slug>`).","title":"Slug"},"description":"Workspace slug (as in `https://orova.vn/u/workspaces/<slug>`)."},{"name":"days","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/OverviewDays"},{"type":"null"}],"description":"7, 30 or 90 (default 30). Ignored when `from`/`to` are set.","title":"Days"},"description":"7, 30 or 90 (default 30). Ignored when `from`/`to` are set."},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Start date YYYY-MM-DD.","title":"From"},"description":"Start date YYYY-MM-DD."},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"End date YYYY-MM-DD (inclusive).","title":"To"},"description":"End date YYYY-MM-DD (inclusive)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["workspace_admin:read"]}},"/workspaces/{slug}/admin/groups":{"get":{"tags":["Account"],"summary":"List workspace chat groups","description":"Groups of the workspace with member and message counts. No message content. Requires being the workspace owner or having the `chat.manage` permission.\n\n**Required scopes:** `workspace_admin:read`","operationId":"list_workspace_chat_groups","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":120,"description":"Workspace slug (as in `https://orova.vn/u/workspaces/<slug>`).","title":"Slug"},"description":"Workspace slug (as in `https://orova.vn/u/workspaces/<slug>`)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["workspace_admin:read"]}},"/workspaces/{slug}/admin/direct":{"get":{"tags":["Account"],"summary":"List workspace direct chats","description":"One-to-one conversations of the workspace: both participants, message count and last activity, no content. Workspace owner only (403 `forbidden` otherwise). Each call is written to the admin audit log.\n\n**Required scopes:** `workspace_admin:read`","operationId":"list_workspace_direct_chats","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":120,"description":"Workspace slug (as in `https://orova.vn/u/workspaces/<slug>`).","title":"Slug"},"description":"Workspace slug (as in `https://orova.vn/u/workspaces/<slug>`)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["workspace_admin:read"]}},"/workspaces/{slug}/admin/audit":{"get":{"tags":["Account"],"summary":"List workspace chat admin audit log","description":"Most recent admin actions (exports, direct-chat views, overview views), newest first. Requires being the workspace owner or having the `chat.manage` permission.\n\n**Required scopes:** `workspace_admin:read`","operationId":"list_workspace_chat_audit","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":120,"description":"Workspace slug (as in `https://orova.vn/u/workspaces/<slug>`).","title":"Slug"},"description":"Workspace slug (as in `https://orova.vn/u/workspaces/<slug>`)."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Max entries (1-500).","default":100,"title":"Limit"},"description":"Max entries (1-500)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["workspace_admin:read"]}},"/workspaces/{slug}/admin/export":{"get":{"tags":["Account"],"summary":"Export a workspace conversation (DANGEROUS)","description":"DANGEROUS: downloads the FULL message history (sender, email, time, text) of a workspace group — or of a one-to-one chat, owner only — as JSON or CSV, up to 50,000 messages (`truncated: true` beyond that). Every export is written to the admin audit log; 20 exports per hour (429 `rate_limited`). Requires being the workspace owner or having the `chat.manage` permission.\n\n**Required scopes:** `workspace_admin:read`","operationId":"export_workspace_conversation","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":120,"description":"Workspace slug (as in `https://orova.vn/u/workspaces/<slug>`).","title":"Slug"},"description":"Workspace slug (as in `https://orova.vn/u/workspaces/<slug>`)."},{"name":"conversation_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"description":"Conversation `id` (from `list_workspace_chat_groups` or `list_workspace_direct_chats`).","title":"Conversation Id"},"description":"Conversation `id` (from `list_workspace_chat_groups` or `list_workspace_direct_chats`)."},{"name":"format","in":"query","required":false,"schema":{"enum":["json","csv"],"type":"string","description":"`json` or `csv`.","default":"json","title":"Format"},"description":"`json` or `csv`."},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Start date YYYY-MM-DD.","title":"From"},"description":"Start date YYYY-MM-DD."},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"End date YYYY-MM-DD (inclusive).","title":"To"},"description":"End date YYYY-MM-DD (inclusive)."}],"responses":{"200":{"description":"File download","content":{"application/json":{"schema":{"type":"object"}},"text/csv":{"schema":{"type":"string"}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["workspace_admin:read"]}},"/contacts":{"get":{"tags":["Contacts"],"summary":"List contacts","description":"Your contacts (accepted) plus pending requests in both directions (`status`: accepted | pending_out | pending_in). Filter with `q`. Every person object (user, contact, member, sender) includes `plan_badge`: the person's active Orova Chat Business tier, shown as a badge next to their name — `\"business\"`, `\"business_pro\"` or `\"business_max\"`; `null` when they have none (or the account is deleted).\n\n**Required scopes:** `contacts:read`","operationId":"list_contacts","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Filter by name, email or handle.","title":"Q"},"description":"Filter by name, email or handle."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Max items per page.","default":100,"title":"Limit"},"description":"Max items per page."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"`next_cursor` from the previous page.","title":"Cursor"},"description":"`next_cursor` from the previous page."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["contacts:read"]},"post":{"tags":["Contacts"],"summary":"Send a contact request","description":"Invite one person by `user_id`, `handle` or `email`. The response is the same whether or not an email exists (`request_sent`); `accepted` when they had already invited you.\n\n**Required scopes:** `contacts:write`","operationId":"send_contact_request","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactRequestCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["contacts:write"]}},"/contacts/blocked":{"get":{"tags":["Contacts"],"summary":"List blocked users","description":"People you have blocked. Every person object (user, contact, member, sender) includes `plan_badge`: the person's active Orova Chat Business tier, shown as a badge next to their name — `\"business\"`, `\"business_pro\"` or `\"business_max\"`; `null` when they have none (or the account is deleted).\n\n**Required scopes:** `contacts:read`","operationId":"list_blocked_contacts","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Filter by name/email/handle.","title":"Q"},"description":"Filter by name/email/handle."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Max items per page.","default":100,"title":"Limit"},"description":"Max items per page."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"`next_cursor` from the previous page.","title":"Cursor"},"description":"`next_cursor` from the previous page."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["contacts:read"]}},"/contacts/requests/incoming":{"get":{"tags":["Contacts"],"summary":"List incoming contact requests","description":"Contact requests other people sent you that are waiting for your answer. Every person object (user, contact, member, sender) includes `plan_badge`: the person's active Orova Chat Business tier, shown as a badge next to their name — `\"business\"`, `\"business_pro\"` or `\"business_max\"`; `null` when they have none (or the account is deleted).\n\n**Required scopes:** `contacts:read`","operationId":"list_incoming_contact_requests","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Max items per page.","default":100,"title":"Limit"},"description":"Max items per page."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"`next_cursor` from the previous page.","title":"Cursor"},"description":"`next_cursor` from the previous page."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["contacts:read"]}},"/contacts/requests/outgoing":{"get":{"tags":["Contacts"],"summary":"List outgoing contact requests","description":"Contact requests you sent that the other person has not answered yet. Every person object (user, contact, member, sender) includes `plan_badge`: the person's active Orova Chat Business tier, shown as a badge next to their name — `\"business\"`, `\"business_pro\"` or `\"business_max\"`; `null` when they have none (or the account is deleted).\n\n**Required scopes:** `contacts:read`","operationId":"list_outgoing_contact_requests","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Max items per page.","default":100,"title":"Limit"},"description":"Max items per page."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"`next_cursor` from the previous page.","title":"Cursor"},"description":"`next_cursor` from the previous page."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["contacts:read"]}},"/contacts/suggestions":{"get":{"tags":["Contacts"],"summary":"List contact suggestions","description":"People you may know: members of your group chats first, then workspace colleagues who are not your contacts yet. Every person object (user, contact, member, sender) includes `plan_badge`: the person's active Orova Chat Business tier, shown as a badge next to their name — `\"business\"`, `\"business_pro\"` or `\"business_max\"`; `null` when they have none (or the account is deleted).\n\n**Required scopes:** `contacts:read`","operationId":"list_contact_suggestions","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Filter by name/email/handle.","title":"Q"},"description":"Filter by name/email/handle."},{"name":"mode","in":"query","required":false,"schema":{"anyOf":[{"enum":["personal","workspace"],"type":"string"},{"type":"null"}],"description":"`personal` = group-chat members only; `workspace` = include workspace colleagues. Default follows the key's scope.","title":"Mode"},"description":"`personal` = group-chat members only; `workspace` = include workspace colleagues. Default follows the key's scope."},{"name":"workspace","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Workspace slug.","title":"Workspace"},"description":"Workspace slug."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Max items per page.","default":100,"title":"Limit"},"description":"Max items per page."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"`next_cursor` from the previous page.","title":"Cursor"},"description":"`next_cursor` from the previous page."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["contacts:read"]}},"/contacts/{user_id}/accept":{"post":{"tags":["Contacts"],"summary":"Accept a contact request","description":"Accept the pending request from `user_id`. Optional body files the new contact under a group.\n\n**Required scopes:** `contacts:write`","operationId":"accept_contact_request","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"description":"Numeric user id (`user_id` in contact/user objects).","title":"User Id"},"description":"Numeric user id (`user_id` in contact/user objects)."}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ContactAccept"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["contacts:write"]}},"/contacts/{user_id}/decline":{"post":{"tags":["Contacts"],"summary":"Decline a contact request","description":"Decline the pending request from `user_id`.\n\n**Required scopes:** `contacts:write`","operationId":"decline_contact_request","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"description":"Numeric user id (`user_id` in contact/user objects).","title":"User Id"},"description":"Numeric user id (`user_id` in contact/user objects)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["contacts:write"]}},"/contacts/{user_id}/block":{"post":{"tags":["Contacts"],"summary":"Block a user","description":"Block `user_id`: they can no longer message, call or find you.\n\n**Required scopes:** `contacts:write`","operationId":"block_user","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"description":"Numeric user id (`user_id` in contact/user objects).","title":"User Id"},"description":"Numeric user id (`user_id` in contact/user objects)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["contacts:write"]}},"/contacts/{user_id}/unblock":{"post":{"tags":["Contacts"],"summary":"Unblock a user","description":"Remove `user_id` from your blocked list.\n\n**Required scopes:** `contacts:write`","operationId":"unblock_user","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"description":"Numeric user id (`user_id` in contact/user objects).","title":"User Id"},"description":"Numeric user id (`user_id` in contact/user objects)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["contacts:write"]}},"/contacts/{user_id}/remove":{"post":{"tags":["Contacts"],"summary":"Remove a contact","description":"Remove `user_id` from your contacts (also cancels a pending request).\n\n**Required scopes:** `contacts:write`","operationId":"remove_contact","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"description":"Numeric user id (`user_id` in contact/user objects).","title":"User Id"},"description":"Numeric user id (`user_id` in contact/user objects)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["contacts:write"]}},"/contacts/{user_id}/tag":{"put":{"tags":["Contacts"],"summary":"Set a contact's group","description":"Put contact `user_id` in a group (`tag`), or remove the group with `null`.\n\n**Required scopes:** `contacts:write`","operationId":"set_contact_tag","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"description":"Numeric user id (`user_id` in contact/user objects).","title":"User Id"},"description":"Numeric user id (`user_id` in contact/user objects)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactTagSet"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["contacts:write"]}},"/contact_tags":{"get":{"tags":["Contacts"],"summary":"List contact groups","description":"Your contact groups with the number of contacts in each (empty groups included).\n\n**Required scopes:** `contacts:read`","operationId":"list_contact_tags","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Max items per page.","default":100,"title":"Limit"},"description":"Max items per page."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"`next_cursor` from the previous page.","title":"Cursor"},"description":"`next_cursor` from the previous page."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["contacts:read"]},"post":{"tags":["Contacts"],"summary":"Create a contact group","description":"Create an empty contact group. `409 tag_exists` if the name is taken (case-insensitive).\n\n**Required scopes:** `contacts:write`","operationId":"create_contact_tag","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactTagCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["contacts:write"]}},"/contact_tags/{tag}":{"patch":{"tags":["Contacts"],"summary":"Rename a contact group","description":"Rename group `tag` (URL-encoded) on every contact that has it.\n\n**Required scopes:** `contacts:write`","operationId":"rename_contact_tag","parameters":[{"name":"tag","in":"path","required":true,"schema":{"type":"string","description":"Current group name.","title":"Tag"},"description":"Current group name."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactTagRename"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["contacts:write"]},"delete":{"tags":["Contacts"],"summary":"Delete a contact group","description":"Delete group `tag` (URL-encoded). Contacts stay; only the group is removed from them.\n\n**Required scopes:** `contacts:write`","operationId":"delete_contact_tag","parameters":[{"name":"tag","in":"path","required":true,"schema":{"type":"string","description":"Group name to delete.","title":"Tag"},"description":"Group name to delete."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["contacts:write"]}},"/users/search":{"get":{"tags":["Contacts","Users"],"summary":"Find a user","description":"Exact lookup by email or Chat ID (min 3 chars) — no fuzzy name search. Rate limited per user and per IP. Every person object (user, contact, member, sender) includes `plan_badge`: the person's active Orova Chat Business tier, shown as a badge next to their name — `\"business\"`, `\"business_pro\"` or `\"business_max\"`; `null` when they have none (or the account is deleted).\n\n**Required scopes:** `profile:read`","operationId":"search_users","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":255,"description":"Exact email or Chat ID (`abc` or `@abc`).","title":"Q"},"description":"Exact email or Chat ID (`abc` or `@abc`)."},{"name":"email_privacy","in":"query","required":false,"schema":{"type":"boolean","description":"Match an email only when its owner made it visible (ignore shared-workspace exception).","default":false,"title":"Email Privacy"},"description":"Match an email only when its owner made it visible (ignore shared-workspace exception)."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Max items per page.","default":100,"title":"Limit"},"description":"Max items per page."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"`next_cursor` from the previous page.","title":"Cursor"},"description":"`next_cursor` from the previous page."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["profile:read"]}},"/users/{user_id}":{"get":{"tags":["Contacts","Users"],"summary":"Get a user profile","description":"Profile card of `user_id` as you are allowed to see it (fields hidden by their privacy settings are `null`), plus relation and can_message/can_call flags. Every person object (user, contact, member, sender) includes `plan_badge`: the person's active Orova Chat Business tier, shown as a badge next to their name — `\"business\"`, `\"business_pro\"` or `\"business_max\"`; `null` when they have none (or the account is deleted).\n\n**Required scopes:** `profile:read`","operationId":"get_user_profile","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"description":"Numeric user id (`user_id` in contact/user objects).","title":"User Id"},"description":"Numeric user id (`user_id` in contact/user objects)."},{"name":"conversation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"Conversation you opened the profile from (applies the group's hidden-member rule).","title":"Conversation Id"},"description":"Conversation you opened the profile from (applies the group's hidden-member rule)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["profile:read"]}},"/users/{user_id}/report":{"post":{"tags":["Contacts","Users"],"summary":"Report a user","description":"Report `user_id` to Orova moderation, optionally with up to 20 messages as evidence. Limited to 5 reports per hour.\n\n**Required scopes:** `contacts:write`","operationId":"report_user","parameters":[{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"description":"Numeric user id (`user_id` in contact/user objects).","title":"User Id"},"description":"Numeric user id (`user_id` in contact/user objects)."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserReport"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["contacts:write"]}},"/conversations":{"get":{"tags":["Conversations"],"summary":"List conversations","description":"Your conversations, pinned first then most recent activity. Filter by text, workspace or archived state. Every person object (user, contact, member, sender) includes `plan_badge`: the person's active Orova Chat Business tier, shown as a badge next to their name — `\"business\"`, `\"business_pro\"` or `\"business_max\"`; `null` when they have none (or the account is deleted).\n\n**Required scopes:** `conversations:read`","operationId":"list_conversations","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Search title / member name / email.","title":"Q"},"description":"Search title / member name / email."},{"name":"workspace","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"Workspace slug, or `personal`.","title":"Workspace"},"description":"Workspace slug, or `personal`."},{"name":"archived","in":"query","required":false,"schema":{"type":"boolean","description":"List archived conversations instead.","default":false,"title":"Archived"},"description":"List archived conversations instead."},{"name":"updated_after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"Only conversations with a message after this ISO 8601 time.","title":"Updated After"},"description":"Only conversations with a message after this ISO 8601 time."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"description":"`next_cursor` from the previous page.","title":"Cursor"},"description":"`next_cursor` from the previous page."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:read"]},"post":{"tags":["Conversations"],"summary":"Create or open a conversation","description":"Opens the direct chat with a person (existing one is returned with 200), your self chat, or creates a new group (201).\n\n**Required scopes:** `conversations:write`","operationId":"create_conversation","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]}},"/conversations/{conversation_id}":{"get":{"tags":["Conversations"],"summary":"Get a conversation","description":"One conversation with members, settings, unread count and your per-conversation state (muted, pinned, archived, label). Every person object (user, contact, member, sender) includes `plan_badge`: the person's active Orova Chat Business tier, shown as a badge next to their name — `\"business\"`, `\"business_pro\"` or `\"business_max\"`; `null` when they have none (or the account is deleted).\n\n**Required scopes:** `conversations:read`","operationId":"get_conversation","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:read"]},"patch":{"tags":["Conversations"],"summary":"Update a group","description":"Rename a group, change its photo or its settings. Settings need owner/admin; name and photo also allowed for members when `members_can_edit_info` is on.\n\n**Required scopes:** `conversations:write`","operationId":"update_conversation","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]}},"/conversations/{conversation_id}/mute":{"post":{"tags":["Conversations"],"summary":"Mute a conversation","description":"Stop notifications for N minutes, or until you unmute.\n\n**Required scopes:** `conversations:write`","operationId":"mute_conversation","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/MuteIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]}},"/conversations/{conversation_id}/unmute":{"post":{"tags":["Conversations"],"summary":"Unmute a conversation","description":"Turn notifications back on.\n\n**Required scopes:** `conversations:write`","operationId":"unmute_conversation","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]}},"/conversations/{conversation_id}/pin":{"post":{"tags":["Conversations"],"summary":"Pin a conversation","description":"Keep it at the top of your list. Pinning an archived conversation unarchives it. No-op if already pinned.\n\n**Required scopes:** `conversations:write`","operationId":"pin_conversation","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]}},"/conversations/{conversation_id}/unpin":{"post":{"tags":["Conversations"],"summary":"Unpin a conversation","description":"No-op if not pinned.\n\n**Required scopes:** `conversations:write`","operationId":"unpin_conversation","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]}},"/conversations/{conversation_id}/archive":{"post":{"tags":["Conversations"],"summary":"Archive a conversation","description":"Move it out of the main list (only for you). Archiving unpins it.\n\n**Required scopes:** `conversations:write`","operationId":"archive_conversation","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]}},"/conversations/{conversation_id}/unarchive":{"post":{"tags":["Conversations"],"summary":"Unarchive a conversation","description":"Bring it back to the main list.\n\n**Required scopes:** `conversations:write`","operationId":"unarchive_conversation","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]}},"/conversations/{conversation_id}/leave":{"post":{"tags":["Conversations"],"summary":"Leave a conversation","description":"Leave a group or direct chat. A group owner must transfer ownership first (409 `owner_must_transfer`) or send `dissolve: true` to end the group for everyone.\n\n**Required scopes:** `conversations:write`","operationId":"leave_conversation","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/LeaveIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]}},"/conversations/{conversation_id}/read":{"post":{"tags":["Conversations"],"summary":"Mark as read","description":"Mark messages as read up to `message_id` (default: the latest message). Others see it unless you turned read receipts off.\n\n**Required scopes:** `conversations:write`","operationId":"mark_conversation_read","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ReadIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]}},"/conversations/{conversation_id}/clear":{"post":{"tags":["Conversations"],"summary":"Clear history for yourself","description":"Hide all current messages for you only (others keep theirs); the conversation reappears on the next message. On your self chat (My Cloud) this PERMANENTLY deletes every message and cloud file.\n\n**Required scopes:** `conversations:write`","operationId":"clear_conversation","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]}},"/conversations/{conversation_id}/label":{"put":{"tags":["Conversations"],"summary":"Set conversation label","description":"Tag the conversation with one of your labels (only you see it), or null to clear. The conversation's `label` field reads `l:<label_id>`.\n\n**Required scopes:** `conversations:write`","operationId":"set_conversation_label","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelSet"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]}},"/conversations/{conversation_id}/members":{"get":{"tags":["Conversations"],"summary":"List members","description":"Current members with role (`owner`, `admin`, `member`) and online state. In groups with hidden member profiles regular members only see names and photos. Every person object (user, contact, member, sender) includes `plan_badge`: the person's active Orova Chat Business tier, shown as a badge next to their name — `\"business\"`, `\"business_pro\"` or `\"business_max\"`; `null` when they have none (or the account is deleted).\n\n**Required scopes:** `conversations:read`","operationId":"list_conversation_members","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:read"]},"post":{"tags":["Conversations"],"summary":"Add members","description":"Add people to a group. People who disallow being added are returned in `invite_required` (send them the invite link); people at their group limit in `skipped`.\n\n**Required scopes:** `conversations:write`","operationId":"add_conversation_members","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembersAdd"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]}},"/conversations/{conversation_id}/members/{user_id}":{"delete":{"tags":["Conversations"],"summary":"Remove a member","description":"Owner/admin removes someone from a group (only the owner can remove an admin). Use leave to remove yourself.\n\n**Required scopes:** `conversations:write`","operationId":"remove_conversation_member","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]}},"/conversations/{conversation_id}/members/{user_id}/admin":{"post":{"tags":["Conversations"],"summary":"Make a member admin","description":"Owner only. No-op if already an admin.\n\n**Required scopes:** `conversations:write`","operationId":"add_conversation_admin","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]},"delete":{"tags":["Conversations"],"summary":"Remove admin role","description":"Owner only. The person stays a regular member. No-op if not an admin.\n\n**Required scopes:** `conversations:write`","operationId":"remove_conversation_admin","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"integer","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]}},"/conversations/{conversation_id}/transfer_ownership":{"post":{"tags":["Conversations"],"summary":"Transfer group ownership","description":"Owner only: hand the group to another current member; you become an admin.\n\n**Required scopes:** `conversations:write`","operationId":"transfer_conversation_ownership","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]}},"/conversations/{conversation_id}/invite_link":{"post":{"tags":["Conversations"],"summary":"Get or renew the invite link","description":"Returns the group's invite link (created on first use). `renew: true` (owner/admin) revokes the old link.\n\n**Required scopes:** `conversations:write`","operationId":"create_invite_link","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/InviteLinkIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]}},"/invites/{token}":{"get":{"tags":["Conversations"],"summary":"Preview an invite link","description":"Group name, photo and member count behind an invite token, and your state: `ok`, `member`, `pending`, `disabled`, `no_access`.\n\n**Required scopes:** `conversations:read`","operationId":"get_invite","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:read"]},"post":{"tags":["Conversations"],"summary":"Join a group by invite","description":"Join the group behind an invite token. Groups with join approval return `status: pending` until an owner/admin approves.\n\n**Required scopes:** `conversations:write`","operationId":"accept_invite","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string","title":"Token"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]}},"/conversations/{conversation_id}/join_requests":{"get":{"tags":["Conversations"],"summary":"List join requests","description":"Owner/admin: people waiting for approval to join, newest first. Every person object (user, contact, member, sender) includes `plan_badge`: the person's active Orova Chat Business tier, shown as a badge next to their name — `\"business\"`, `\"business_pro\"` or `\"business_max\"`; `null` when they have none (or the account is deleted).\n\n**Required scopes:** `conversations:read`","operationId":"list_join_requests","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:read"]}},"/conversations/{conversation_id}/join_requests/{request_id}/approve":{"post":{"tags":["Conversations"],"summary":"Approve a join request","description":"Owner/admin: add the person to the group.\n\n**Required scopes:** `conversations:write`","operationId":"approve_join_request","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]}},"/conversations/{conversation_id}/join_requests/{request_id}/reject":{"post":{"tags":["Conversations"],"summary":"Reject a join request","description":"Owner/admin: decline. The person can request again via the link.\n\n**Required scopes:** `conversations:write`","operationId":"reject_join_request","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"request_id","in":"path","required":true,"schema":{"type":"integer","title":"Request Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]}},"/labels":{"get":{"tags":["Conversations"],"summary":"List your labels","description":"Your private conversation labels in display order (5 defaults are created on first use).\n\n**Required scopes:** `conversations:read`","operationId":"list_labels","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:read"]},"post":{"tags":["Conversations"],"summary":"Create a label","description":"New private label with a preset or hex colour. 409 `duplicate` if the name exists.\n\n**Required scopes:** `conversations:write`","operationId":"create_label","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]}},"/labels/{label_id}":{"patch":{"tags":["Conversations"],"summary":"Update a label","description":"Rename, recolour or reorder a label.\n\n**Required scopes:** `conversations:write`","operationId":"update_label","parameters":[{"name":"label_id","in":"path","required":true,"schema":{"type":"integer","title":"Label Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LabelUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]},"delete":{"tags":["Conversations"],"summary":"Delete a label","description":"Delete a label and remove it from all your conversations.\n\n**Required scopes:** `conversations:write`","operationId":"delete_label","parameters":[{"name":"label_id","in":"path","required":true,"schema":{"type":"integer","title":"Label Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["conversations:write"]}},"/conversations/{conversation_id}/messages":{"get":{"tags":["Messages"],"summary":"List messages in a conversation","description":"Messages oldest to newest. Without cursors returns the latest page; `before` pages back in time, `after` pages forward. `next_cursor` is the id to pass as `before` (or as `after` when you paged with `after`). `q` filters by text. Every person object (user, contact, member, sender) includes `plan_badge`: the person's active Orova Chat Business tier, shown as a badge next to their name — `\"business\"`, `\"business_pro\"` or `\"business_max\"`; `null` when they have none (or the account is deleted).\n\n**Required scopes:** `messages:read`","operationId":"list_messages","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","description":"Conversation id.","title":"Conversation Id"},"description":"Conversation id."},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"Return messages older than this message id.","title":"Before"},"description":"Return messages older than this message id."},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"Return messages newer than this message id.","title":"After"},"description":"Return messages newer than this message id."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Only messages containing this text.","title":"Q"},"description":"Only messages containing this text."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:read"]},"post":{"tags":["Messages"],"summary":"Send a message","description":"Send text, rich text, files, a voice note, a sticker or a contact card. Supports `Idempotency-Key`. Returns the created message.\n\n**Required scopes:** `messages:write`","operationId":"send_message","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","description":"Conversation id.","title":"Conversation Id"},"description":"Conversation id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageSend"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]}},"/conversations/{conversation_id}/pinned":{"get":{"tags":["Messages"],"summary":"List pinned messages","description":"Pinned messages of a conversation, most recently pinned first.\n\n**Required scopes:** `messages:read`","operationId":"list_pinned_messages","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","description":"Conversation id.","title":"Conversation Id"},"description":"Conversation id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:read"]}},"/messages/hide":{"post":{"tags":["Messages"],"summary":"Hide several messages for yourself","description":"\"Delete for me\" for up to 100 messages. Unknown ids or messages in conversations you are not in are skipped. Returns the ids now hidden.\n\n**Required scopes:** `messages:write`","operationId":"hide_messages","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagesHide"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]}},"/messages/{message_id}":{"get":{"tags":["Messages"],"summary":"Get a message","description":"One message as you see it (reactions, read receipts, reply, edit count). Every person object (user, contact, member, sender) includes `plan_badge`: the person's active Orova Chat Business tier, shown as a badge next to their name — `\"business\"`, `\"business_pro\"` or `\"business_max\"`; `null` when they have none (or the account is deleted).\n\n**Required scopes:** `messages:read`","operationId":"get_message","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","description":"Message id.","title":"Message Id"},"description":"Message id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:read"]},"patch":{"tags":["Messages"],"summary":"Edit a message","description":"Edit your own message within 15 minutes of sending (400 edit_window_expired after). Returns the updated message.\n\n**Required scopes:** `messages:write`","operationId":"edit_message","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","description":"Message id.","title":"Message Id"},"description":"Message id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageEdit"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]},"delete":{"tags":["Messages"],"summary":"Recall a message for everyone","description":"Recall your own message within 60 seconds (403 recall_window_expired after); group owners/admins can recall any message. To remove it only for yourself use hide_message.\n\n**Required scopes:** `messages:write`","operationId":"delete_message","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","description":"Message id.","title":"Message Id"},"description":"Message id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]}},"/messages/{message_id}/context":{"get":{"tags":["Messages"],"summary":"Get messages around a message","description":"Up to `n` messages before and after a message (oldest to newest), to jump to a search result. `has_older` / `has_newer` tell whether more exist.\n\n**Required scopes:** `messages:read`","operationId":"get_message_context","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","description":"Message id.","title":"Message Id"},"description":"Message id."},{"name":"conversation_id","in":"query","required":true,"schema":{"type":"string","maxLength":64,"description":"Conversation that contains the message.","title":"Conversation Id"},"description":"Conversation that contains the message."},{"name":"n","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":20,"title":"N"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:read"]}},"/messages/{message_id}/hide":{"post":{"tags":["Messages"],"summary":"Hide a message for yourself","description":"\"Delete for me\": the message disappears only from your view, on all your devices. Safe to repeat.\n\n**Required scopes:** `messages:write`","operationId":"hide_message","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","description":"Message id.","title":"Message Id"},"description":"Message id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]}},"/messages/{message_id}/reactions":{"get":{"tags":["Messages"],"summary":"List reactions on a message","description":"Each emoji with its total count and who reacted (user id, name, avatar, count), most used first.\n\n**Required scopes:** `messages:read`","operationId":"list_reactions","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","description":"Message id.","title":"Message Id"},"description":"Message id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:read"]}},"/messages/{message_id}/reactions/{emoji}":{"put":{"tags":["Messages"],"summary":"Add a reaction","description":"React with one emoji (URL-encoded). Idempotent: if you already reacted with it nothing changes (`action` none). Returns the reactions and your emojis.\n\n**Required scopes:** `messages:write`","operationId":"add_reaction","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","description":"Message id.","title":"Message Id"},"description":"Message id."},{"name":"emoji","in":"path","required":true,"schema":{"type":"string","maxLength":64,"description":"One emoji.","title":"Emoji"},"description":"One emoji."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]},"delete":{"tags":["Messages"],"summary":"Remove a reaction","description":"Remove your reaction with this emoji (URL-encoded). `action` is none when you had not reacted with it.\n\n**Required scopes:** `messages:write`","operationId":"remove_reaction","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","description":"Message id.","title":"Message Id"},"description":"Message id."},{"name":"emoji","in":"path","required":true,"schema":{"type":"string","maxLength":64,"description":"One emoji.","title":"Emoji"},"description":"One emoji."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]}},"/messages/{message_id}/forward":{"post":{"tags":["Messages"],"summary":"Forward a message","description":"Forward a text, media or voice message to one or more conversations. Supports `Idempotency-Key`. Returns how many copies were sent.\n\n**Required scopes:** `messages:write`","operationId":"forward_message","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","description":"Message id.","title":"Message Id"},"description":"Message id."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageForward"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]}},"/messages/{message_id}/pin":{"post":{"tags":["Messages"],"summary":"Pin a message","description":"Pin a message in its conversation. Already pinned → no change.\n\n**Required scopes:** `messages:write`","operationId":"pin_message","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","description":"Message id.","title":"Message Id"},"description":"Message id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]}},"/messages/{message_id}/unpin":{"post":{"tags":["Messages"],"summary":"Unpin a message","description":"Unpin a message. Not pinned → no change.\n\n**Required scopes:** `messages:write`","operationId":"unpin_message","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","description":"Message id.","title":"Message Id"},"description":"Message id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]}},"/messages/{message_id}/history":{"get":{"tags":["Messages"],"summary":"Get edit history","description":"Previous versions of an edited message, oldest first, plus the current version. Recalled messages have no history.\n\n**Required scopes:** `messages:read`","operationId":"get_message_history","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","description":"Message id.","title":"Message Id"},"description":"Message id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:read"]}},"/messages/{message_id}/thread":{"get":{"tags":["Messages"],"summary":"Get the reply thread of a message","description":"The root message and its replies (oldest to newest, latest page first). Pass `next_cursor` as `before` for older replies.\n\n**Required scopes:** `messages:read`","operationId":"get_message_thread","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","description":"Message id.","title":"Message Id"},"description":"Message id."},{"name":"before","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"Reply id; return older replies.","title":"Before"},"description":"Reply id; return older replies."},{"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":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:read"]}},"/search/messages":{"get":{"tags":["Messages"],"summary":"Search messages","description":"Search across all your conversations, newest first. `q` needs at least 3 characters (2 for CJK) unless another filter is set. Rate limited (60 per minute, 1000 per day).\n\n**Required scopes:** `messages:read`","operationId":"search_messages","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Text to find.","title":"Q"},"description":"Text to find."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"`next_cursor` from the previous page.","title":"Cursor"},"description":"`next_cursor` from the previous page."},{"name":"conversation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"Only this conversation.","title":"Conversation Id"},"description":"Only this conversation."},{"name":"from_me","in":"query","required":false,"schema":{"type":"boolean","description":"Only messages you sent.","default":false,"title":"From Me"},"description":"Only messages you sent."},{"name":"sender_handle","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"description":"Only messages from this Chat ID.","title":"Sender Handle"},"description":"Only messages from this Chat ID."},{"name":"date_from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"From this day (YYYY-MM-DD), inclusive. Day boundaries use `tz`; without it, the time zone of the workspace being searched (when one workspace is searched and it has a time zone set); otherwise UTC+7.","title":"Date From"},"description":"From this day (YYYY-MM-DD), inclusive. Day boundaries use `tz`; without it, the time zone of the workspace being searched (when one workspace is searched and it has a time zone set); otherwise UTC+7."},{"name":"date_to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}],"description":"Up to this day (YYYY-MM-DD), inclusive. Same day boundaries as `date_from`.","title":"Date To"},"description":"Up to this day (YYYY-MM-DD), inclusive. Same day boundaries as `date_from`."},{"name":"has","in":"query","required":false,"schema":{"anyOf":[{"enum":["file","link","image"],"type":"string"},{"type":"null"}],"description":"Only messages with a file, link or image.","title":"Has"},"description":"Only messages with a file, link or image."},{"name":"tz","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"IANA time zone name (e.g. `America/New_York`) used for the `date_from` / `date_to` day boundaries. Optional; an unknown name is ignored.","title":"Tz"},"description":"IANA time zone name (e.g. `America/New_York`) used for the `date_from` / `date_to` day boundaries. Optional; an unknown name is ignored."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:read"]}},"/link_preview":{"get":{"tags":["Messages"],"summary":"Preview a link","description":"Title, description, site name and image of a public web page, as shown under messages. Private/internal addresses are refused. Rate limited (60 per minute).\n\n**Required scopes:** `messages:read`","operationId":"get_link_preview","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":2048,"description":"http(s) URL to preview.","title":"Url"},"description":"http(s) URL to preview."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:read"]}},"/conversations/{conversation_id}/polls":{"get":{"tags":["Extras"],"summary":"List polls in a conversation","description":"Poll messages of a conversation, newest first, with vote counts, your votes and (non-anonymous polls) voter names. Not paginated beyond `limit` (max 100).\n\n**Required scopes:** `messages:read`","operationId":"list_polls","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Maximum polls to return (1-100).","default":50,"title":"Limit"},"description":"Maximum polls to return (1-100)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:read"]},"post":{"tags":["Extras"],"summary":"Create a poll","description":"Post a poll message to a conversation. Returns `{message}` (the poll message). Supports `Idempotency-Key`.\n\n**Required scopes:** `messages:write`","operationId":"create_poll","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PollCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]}},"/messages/{message_id}/votes":{"post":{"tags":["Extras"],"summary":"Vote in a poll","description":"Set your vote on a poll message (replaces any previous vote; empty `option_ids` withdraws it). Returns `{message}` with updated counts.\n\n**Required scopes:** `messages:write`","operationId":"vote_poll","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PollVote"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]}},"/messages/{message_id}/poll/close":{"post":{"tags":["Extras"],"summary":"Close a poll","description":"Stop accepting votes. Allowed for the poll creator and group owners/admins. Closing an already closed poll is a no-op.\n\n**Required scopes:** `messages:write`","operationId":"close_poll","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]}},"/messages/{message_id}/poll/options":{"post":{"tags":["Extras"],"summary":"Add a poll option","description":"Add an option to an open poll (needs `allow_add`, or be the creator / a group owner or admin). Max 10 options. Supports `Idempotency-Key`.\n\n**Required scopes:** `messages:write`","operationId":"add_poll_option","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PollOptionAdd"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]}},"/conversations/{conversation_id}/notes":{"get":{"tags":["Extras"],"summary":"List your notes in a conversation","description":"Your own private notes in a conversation, newest first (other members never see them).\n\n**Required scopes:** `messages:read`","operationId":"list_notes","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:read"]},"post":{"tags":["Extras"],"summary":"Create a note","description":"Create a private note in a conversation (also adds a note card only you can see). Returns `{note, message}`. Supports `Idempotency-Key`.\n\n**Required scopes:** `messages:write`","operationId":"create_note","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]}},"/notes/{note_id}":{"get":{"tags":["Extras"],"summary":"Get a note","description":"One of your notes, including `body_html`.\n\n**Required scopes:** `messages:read`","operationId":"get_note","parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:read"]},"patch":{"tags":["Extras"],"summary":"Update a note","description":"Change the title and/or body of one of your notes (at least one field).\n\n**Required scopes:** `messages:write`","operationId":"update_note","parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NoteUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]},"delete":{"tags":["Extras"],"summary":"Delete a note","description":"Permanently delete one of your notes and its note card. Cannot be undone.\n\n**Required scopes:** `messages:write`","operationId":"delete_note","parameters":[{"name":"note_id","in":"path","required":true,"schema":{"type":"string","title":"Note Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]}},"/conversations/{conversation_id}/scheduled_messages":{"get":{"tags":["Extras"],"summary":"List your scheduled messages","description":"Your pending scheduled messages in a conversation (soonest first), then those that failed in the last 7 days (with `error`).\n\n**Required scopes:** `messages:read`","operationId":"list_scheduled_messages","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:read"]},"post":{"tags":["Extras"],"summary":"Schedule a message","description":"Schedule a message to be sent later in a conversation. Returns `{item}`. Supports `Idempotency-Key`.\n\n**Required scopes:** `messages:write`","operationId":"create_scheduled_message","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledMessageCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]}},"/scheduled_messages/{scheduled_message_id}":{"patch":{"tags":["Extras"],"summary":"Update a scheduled message","description":"Change the text/HTML and/or send time of one of your pending scheduled messages.\n\n**Required scopes:** `messages:write`","operationId":"update_scheduled_message","parameters":[{"name":"scheduled_message_id","in":"path","required":true,"schema":{"type":"string","title":"Scheduled Message Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledMessageUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]},"delete":{"tags":["Extras"],"summary":"Cancel a scheduled message","description":"Cancel one of your pending scheduled messages (status becomes `canceled`). Returns `{item}`.\n\n**Required scopes:** `messages:write`","operationId":"cancel_scheduled_message","parameters":[{"name":"scheduled_message_id","in":"path","required":true,"schema":{"type":"string","title":"Scheduled Message Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]}},"/scheduled_messages/{scheduled_message_id}/dismiss":{"post":{"tags":["Extras"],"summary":"Dismiss a failed scheduled message","description":"Hide a failed scheduled message from the list (status becomes `dismissed`). Only failed messages; others return 409 `not_failed`.\n\n**Required scopes:** `messages:write`","operationId":"dismiss_scheduled_message","parameters":[{"name":"scheduled_message_id","in":"path","required":true,"schema":{"type":"string","title":"Scheduled Message Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]}},"/conversations/{conversation_id}/reminders":{"get":{"tags":["Extras"],"summary":"List reminders in a conversation","description":"All pending reminders of a conversation (from every member), soonest first.\n\n**Required scopes:** `messages:read`","operationId":"list_reminders","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:read"]},"post":{"tags":["Extras"],"summary":"Create a reminder","description":"Create an optionally repeating reminder posted into the conversation at `send_at`. Returns `{item}`. Supports `Idempotency-Key`.\n\n**Required scopes:** `messages:write`","operationId":"create_reminder","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReminderCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]}},"/reminders/{reminder_id}":{"patch":{"tags":["Extras"],"summary":"Update a reminder","description":"Change a pending reminder (creator or group owner/admin). An id of an already fired occurrence targets the current one of the series.\n\n**Required scopes:** `messages:write`","operationId":"update_reminder","parameters":[{"name":"reminder_id","in":"path","required":true,"schema":{"type":"string","title":"Reminder Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReminderUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]},"delete":{"tags":["Extras"],"summary":"Delete a reminder","description":"Cancel a reminder and stop its whole repeat series (creator or group owner/admin). Returns `{item}` with status `canceled`.\n\n**Required scopes:** `messages:write`","operationId":"delete_reminder","parameters":[{"name":"reminder_id","in":"path","required":true,"schema":{"type":"string","title":"Reminder Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["messages:write"]}},"/files":{"post":{"tags":["Files"],"summary":"Upload a file","description":"Upload a file to attach to a message (`purpose=message`, then send it with `media: [file_id]`), store it in your Cloud (`purpose=cloud`, `conversation_id` = your self conversation) or use it as a group photo (`purpose=avatar`). Message files expire after the relay TTL; cloud and avatar files do not.\n\n**Required scopes:** `files:write`","operationId":"upload_file","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_file"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:write"]}},"/files/{file_id}":{"get":{"tags":["Files"],"summary":"Get file metadata","description":"Name, MIME type, size, dimensions and expiry of a file you can see, plus `expired` when the bytes are no longer available. Does not download the file.\n\n**Required scopes:** `files:read`","operationId":"get_file","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","description":"File ID.","title":"File Id"},"description":"File ID."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:read"]},"delete":{"tags":["Files"],"summary":"Delete a Cloud file","description":"Permanently delete one of your Cloud files to free space. Only Cloud files you uploaded can be deleted (others → 403 `forbidden`).\n\n**Required scopes:** `files:write`","operationId":"delete_cloud_file","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","description":"File ID.","title":"File Id"},"description":"File ID."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:write"]}},"/files/{file_id}/content":{"get":{"tags":["Files"],"summary":"Download a file","description":"Raw bytes of a file you can see (uploaded by you, or shared in a conversation you are in). Images, video, audio and PDF are served inline unless `download=true`.\n\n**Required scopes:** `files:read`","operationId":"download_file","parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","description":"File ID.","title":"File Id"},"description":"File ID."},{"name":"download","in":"query","required":false,"schema":{"type":"boolean","description":"Force `Content-Disposition: attachment`.","default":false,"title":"Download"},"description":"Force `Content-Disposition: attachment`."}],"responses":{"200":{"description":"Raw file bytes. Content-Type and Content-Disposition follow the file.","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:read"]}},"/cloud/usage":{"get":{"tags":["Files"],"summary":"Get Cloud storage usage","description":"Bytes used and allowed in your Cloud, file count and usage by kind (image, video, file, voice).\n\n**Required scopes:** `files:read`","operationId":"get_cloud_usage","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:read"]}},"/cloud/files":{"get":{"tags":["Files"],"summary":"List Cloud files","description":"Your Cloud files, newest first. Delete one with `delete_cloud_file`.\n\n**Required scopes:** `files:read`","operationId":"list_cloud_files","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Page size.","default":100,"title":"Limit"},"description":"Page size."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` of the previous page.","title":"Cursor"},"description":"`next_cursor` of the previous page."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:read"]}},"/quick_replies":{"get":{"tags":["Files"],"summary":"List quick replies","description":"Your `/keyword` shortcuts with their text and attached files, sorted by keyword.\n\n**Required scopes:** `files:read`","operationId":"list_quick_replies","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Page size.","default":100,"title":"Limit"},"description":"Page size."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` of the previous page.","title":"Cursor"},"description":"`next_cursor` of the previous page."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:read"]},"post":{"tags":["Files"],"summary":"Create a quick reply","description":"Create a `/keyword` shortcut. Attach images/files by uploading them first with `upload_quick_file`. 409 `duplicate` if the keyword exists.\n\n**Required scopes:** `files:write`","operationId":"create_quick_reply","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuickReplyCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:write"]}},"/quick_replies/{quick_reply_id}":{"get":{"tags":["Files"],"summary":"Get a quick reply","description":"One of your quick replies by ID.\n\n**Required scopes:** `files:read`","operationId":"get_quick_reply","parameters":[{"name":"quick_reply_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"description":"Quick reply ID.","title":"Quick Reply Id"},"description":"Quick reply ID."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:read"]},"patch":{"tags":["Files"],"summary":"Update a quick reply","description":"Change the keyword, text and/or attached files. Only fields you send change.\n\n**Required scopes:** `files:write`","operationId":"update_quick_reply","parameters":[{"name":"quick_reply_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"description":"Quick reply ID.","title":"Quick Reply Id"},"description":"Quick reply ID."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuickReplyUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:write"]},"delete":{"tags":["Files"],"summary":"Delete a quick reply","description":"Delete one of your quick replies and its attached files.\n\n**Required scopes:** `files:write`","operationId":"delete_quick_reply","parameters":[{"name":"quick_reply_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"description":"Quick reply ID.","title":"Quick Reply Id"},"description":"Quick reply ID."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:write"]}},"/quick_files":{"post":{"tags":["Files"],"summary":"Upload a quick reply file","description":"Upload an image or file for a quick reply. It stays unattached until you pass its `id` in `file_ids` of `create_quick_reply` / `update_quick_reply`.\n\n**Required scopes:** `files:write`","operationId":"upload_quick_file","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_quick_file"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:write"]}},"/quick_files/{quick_file_id}/content":{"get":{"tags":["Files"],"summary":"Download a quick reply file","description":"Raw bytes of one of your quick reply files.\n\n**Required scopes:** `files:read`","operationId":"download_quick_file","parameters":[{"name":"quick_file_id","in":"path","required":true,"schema":{"type":"string","description":"Quick file ID.","title":"Quick File Id"},"description":"Quick file ID."},{"name":"download","in":"query","required":false,"schema":{"type":"boolean","description":"Force `Content-Disposition: attachment`.","default":false,"title":"Download"},"description":"Force `Content-Disposition: attachment`."}],"responses":{"200":{"description":"Raw file bytes. Content-Type and Content-Disposition follow the file.","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:read"]}},"/quick_files/{quick_file_id}":{"delete":{"tags":["Files"],"summary":"Delete a quick reply file","description":"Delete one of your quick reply files (it disappears from its quick reply).\n\n**Required scopes:** `files:write`","operationId":"delete_quick_file","parameters":[{"name":"quick_file_id","in":"path","required":true,"schema":{"type":"string","description":"Quick file ID.","title":"Quick File Id"},"description":"Quick file ID."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:write"]}},"/sticker_packs":{"get":{"tags":["Files"],"summary":"List your sticker packs","description":"Your own sticker packs with their stickers (`id`, `url`, `w`, `h`), in sort order. Send a sticker with `send_message` (`kind=sticker`, `sticker_id` = `u:<sticker id>`).\n\n**Required scopes:** `files:read`","operationId":"list_sticker_packs","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:read"]},"post":{"tags":["Files"],"summary":"Create a sticker pack","description":"Create an empty sticker pack. Add stickers with `add_sticker`.\n\n**Required scopes:** `files:write`","operationId":"create_sticker_pack","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StickerPackCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:write"]}},"/system_sticker_packs":{"get":{"tags":["Files"],"summary":"List system sticker packs","description":"Built-in sticker packs (`pack`, names, thumbnail, sticker count) and whether you have hidden each one.\n\n**Required scopes:** `files:read`","operationId":"list_system_sticker_packs","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:read"]}},"/stickers/preferences":{"get":{"tags":["Files"],"summary":"Get sticker preferences","description":"Which system sticker packs you have hidden.\n\n**Required scopes:** `files:read`","operationId":"get_sticker_preferences","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:read"]},"patch":{"tags":["Files"],"summary":"Update sticker preferences","description":"Set which system sticker packs are hidden (replaces the whole list).\n\n**Required scopes:** `files:write`","operationId":"update_sticker_preferences","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StickerPreferencesUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:write"]}},"/sticker_packs/{pack_id}":{"get":{"tags":["Files"],"summary":"Get a sticker pack","description":"One of your sticker packs with its stickers.\n\n**Required scopes:** `files:read`","operationId":"get_sticker_pack","parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","description":"Sticker pack ID.","title":"Pack Id"},"description":"Sticker pack ID."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:read"]},"patch":{"tags":["Files"],"summary":"Update a sticker pack","description":"Rename a sticker pack and/or change its sort position.\n\n**Required scopes:** `files:write`","operationId":"update_sticker_pack","parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","description":"Sticker pack ID.","title":"Pack Id"},"description":"Sticker pack ID."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StickerPackUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:write"]},"delete":{"tags":["Files"],"summary":"Delete a sticker pack","description":"Delete a sticker pack and every sticker in it. Stickers already sent still show in old messages.\n\n**Required scopes:** `files:write`","operationId":"delete_sticker_pack","parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","description":"Sticker pack ID.","title":"Pack Id"},"description":"Sticker pack ID."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:write"]}},"/sticker_packs/{pack_id}/stickers":{"post":{"tags":["Files"],"summary":"Add a sticker to a pack","description":"Upload an image (max 1 MB) as a new sticker in one of your packs. `duplicate=true` when the same image is already in the pack (no new sticker).\n\n**Required scopes:** `files:write`","operationId":"add_sticker","parameters":[{"name":"pack_id","in":"path","required":true,"schema":{"type":"string","description":"Sticker pack ID.","title":"Pack Id"},"description":"Sticker pack ID."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_add_sticker"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:write"]}},"/stickers/{sticker_id}":{"delete":{"tags":["Files"],"summary":"Delete a sticker","description":"Delete one of your stickers. Messages that already use it still show it.\n\n**Required scopes:** `files:write`","operationId":"delete_sticker","parameters":[{"name":"sticker_id","in":"path","required":true,"schema":{"type":"string","description":"Sticker ID.","title":"Sticker Id"},"description":"Sticker ID."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:write"]}},"/stickers/{sticker_id}/content":{"get":{"tags":["Files"],"summary":"Download a sticker image","description":"Image bytes of a sticker you own or that was sent in a conversation you are in.\n\n**Required scopes:** `files:read`","operationId":"download_sticker","parameters":[{"name":"sticker_id","in":"path","required":true,"schema":{"type":"string","description":"Sticker ID.","title":"Sticker Id"},"description":"Sticker ID."}],"responses":{"200":{"description":"Raw file bytes. Content-Type and Content-Disposition follow the file.","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["files:read"]}},"/calls":{"post":{"tags":["Calls"],"summary":"Start a call","description":"Start an audio or video call in a conversation; other members get a ring. `409 callee_busy` / `callee_unreachable` when the other person in a direct chat cannot take it, `409 call_in_progress` when the conversation already has a live call. Supports `Idempotency-Key`.\n\n**Required scopes:** `calls:write`","operationId":"start_call","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["calls:write"]}},"/calls/active":{"get":{"tags":["Calls"],"summary":"Get the active call of a conversation","description":"The ringing or ongoing call of a conversation, or `call: null` when there is none.\n\n**Required scopes:** `calls:read`","operationId":"get_active_call","parameters":[{"name":"conversation_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"description":"Conversation id.","title":"Conversation Id"},"description":"Conversation id."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["calls:read"]}},"/calls/{call_id}":{"get":{"tags":["Calls"],"summary":"Get a call","description":"Call status, kind, timestamps, duration and per-member status.\n\n**Required scopes:** `calls:read`","operationId":"get_call","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["calls:read"]}},"/calls/{call_id}/accept":{"post":{"tags":["Calls"],"summary":"Accept a call","description":"Answer a ringing call. Use `create_call_token` to actually join the media room.\n\n**Required scopes:** `calls:write`","operationId":"accept_call","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["calls:write"]}},"/calls/{call_id}/decline":{"post":{"tags":["Calls"],"summary":"Decline a call","description":"Decline a ringing call. `ended` is true when nobody else is left to answer and the call is over.\n\n**Required scopes:** `calls:write`","operationId":"decline_call","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["calls:write"]}},"/calls/{call_id}/end":{"post":{"tags":["Calls"],"summary":"End or leave a call","description":"Hang up. Cancels the call while ringing; ends it for everyone when you are the last one in. Returns the call status afterwards.\n\n**Required scopes:** `calls:write`","operationId":"end_call","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CallEnd"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["calls:write"]}},"/calls/{call_id}/token":{"post":{"tags":["Calls"],"summary":"Get a media token to join a call","description":"LiveKit `url` + `token` (valid 3 hours) to join the call's media room with microphone and camera. If the call is still ringing for you, this also answers it. `410 call_ended` when the call is over.\n\n**Required scopes:** `calls:write`","operationId":"create_call_token","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["calls:write"]}},"/calls/{call_id}/summary":{"post":{"tags":["Calls"],"summary":"Post an AI summary of a call","description":"[$] Summarize the call with AI from its caption transcript and post the summary as a message in the conversation (`message_id`). Billed to the call's paying wallet; `402 out_of_quota` when empty. Returns `skipped: off` when call summaries are turned off. Supports `Idempotency-Key`.\n\n**Required scopes:** `calls:write`","operationId":"create_call_summary","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CallSummaryCreate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["calls:write"]}},"/calls/{call_id}/captions/start":{"post":{"tags":["Calls"],"summary":"Turn on live captions","description":"[$] Start live captions (speech-to-text) for the whole call. Billed per minute of speech to the call's paying wallet; a 10-minute balance is required to start (`402 out_of_quota`).\n\n**Required scopes:** `calls:write`","operationId":"start_call_captions","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CaptionStart"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["calls:write"]}},"/calls/{call_id}/captions/stop":{"post":{"tags":["Calls"],"summary":"Turn off live captions","description":"[$] Stop live captions for the call and settle pending voice-over charges. When room interpretation is on, the caption bot stays and `kept: interp` is returned.\n\n**Required scopes:** `calls:write`","operationId":"stop_call_captions","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["calls:write"]}},"/calls/{call_id}/captions/lang":{"post":{"tags":["Calls"],"summary":"Set your caption languages","description":"Choose the language you read captions in, the language you speak and whether AI voice-over is on, for yourself only. Fields you omit stay unchanged. [$] Voice-over is billed to the call's paying wallet.\n\n**Required scopes:** `calls:write`","operationId":"set_call_caption_language","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptionLang"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["calls:write"]}},"/calls/{call_id}/captions/state":{"get":{"tags":["Calls"],"summary":"Get live caption state","description":"Whether captions are on, the room's spoken language, your speaking language (pass `identity`), seconds of speech so far and the supported languages.\n\n**Required scopes:** `calls:read`","operationId":"get_call_captions_state","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}},{"name":"identity","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Your LiveKit participant identity in this call.","title":"Identity"},"description":"Your LiveKit participant identity in this call."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["calls:read"]}},"/calls/{call_id}/captions/translate":{"post":{"tags":["Calls"],"summary":"Translate past caption lines","description":"[$] Translate earlier caption lines into `lang` (e.g. after switching your reading language). One AI request billed to the call's paying wallet; `402 out_of_quota` when empty.\n\n**Required scopes:** `calls:write`","operationId":"translate_call_captions","parameters":[{"name":"call_id","in":"path","required":true,"schema":{"type":"string","title":"Call Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CaptionTranslate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["calls:write"]}},"/ai/style_prefs":{"get":{"tags":["AI"],"summary":"Get AI rewrite style","description":"Effective rewrite style for a conversation (or your default), your saved preferences, system templates, languages and the paying wallet.\n\n**Required scopes:** `ai:read`","operationId":"get_ai_style_prefs","parameters":[{"name":"conversation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"description":"Conversation; omitted = your default only.","title":"Conversation Id"},"description":"Conversation; omitted = your default only."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:read"]},"put":{"tags":["AI"],"summary":"Set AI rewrite style","description":"Save the rewrite style for one conversation or as your personal default (system template, one of your style sets, or custom).\n\n**Required scopes:** `ai:write`","operationId":"set_ai_style_prefs","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StylePrefsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]},"delete":{"tags":["AI"],"summary":"Reset AI rewrite style","description":"Remove the saved style of a conversation (falls back to your default) or your personal default.\n\n**Required scopes:** `ai:write`","operationId":"reset_ai_style_prefs","parameters":[{"name":"scope","in":"query","required":false,"schema":{"enum":["conversation","default"],"type":"string","description":"What to reset.","default":"conversation","title":"Scope"},"description":"What to reset."},{"name":"conversation_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]}},"/ai/style_sets":{"get":{"tags":["AI"],"summary":"List style sets","description":"Your own rewrite style sets.\n\n**Required scopes:** `ai:read`","operationId":"list_ai_style_sets","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:read"]},"post":{"tags":["AI"],"summary":"Create style set","description":"Create a reusable rewrite style set (optionally from a system template).\n\n**Required scopes:** `ai:write`","operationId":"create_ai_style_set","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StyleSetCreate"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]}},"/ai/style_sets/{set_id}":{"patch":{"tags":["AI"],"summary":"Update style set","description":"Rename a style set or change part of its style; conversations using the set get the new style.\n\n**Required scopes:** `ai:write`","operationId":"update_ai_style_set","parameters":[{"name":"set_id","in":"path","required":true,"schema":{"type":"integer","title":"Set Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StyleSetUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]},"delete":{"tags":["AI"],"summary":"Delete style set","description":"Delete a style set. Conversations using it keep a copy of the style as custom.\n\n**Required scopes:** `ai:write`","operationId":"delete_ai_style_set","parameters":[{"name":"set_id","in":"path","required":true,"schema":{"type":"integer","title":"Set Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]}},"/ai/rewrite":{"post":{"tags":["AI"],"summary":"Rewrite text with AI","description":"[$] Rewrite text with the conversation's effective style. Spends quota from the paying wallet; 402 `out_of_quota` when it is empty.\n\n**Required scopes:** `ai:write`","operationId":"rewrite_text","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RewriteIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]}},"/ai/rewrite/test":{"post":{"tags":["AI"],"summary":"Try a rewrite style","description":"[$] Rewrite sample text with an unsaved style (template, style set or overrides). Spends quota like a real rewrite.\n\n**Required scopes:** `ai:write`","operationId":"test_ai_rewrite_style","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RewriteTestIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]}},"/ai/transcribe":{"post":{"tags":["AI"],"summary":"Transcribe audio","description":"[$] Speech to text for a voice clip (webm, ogg, mp4, m4a, wav, mp3; max 25 MB), optionally rewritten with the conversation's style.\n\n**Required scopes:** `ai:write`","operationId":"transcribe_audio","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_transcribe_audio"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]}},"/ai/models":{"get":{"tags":["AI"],"summary":"List AI models","description":"AI providers and text models you can pick for styles, sessions and bots. Free. `default` is the automatic choice.\n\n**Required scopes:** `ai:read`","operationId":"list_ai_models","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:read"]}},"/ai/assistant/profile":{"get":{"tags":["AI"],"summary":"Get assistant profile","description":"Name, avatar and forms of address of your Orova Assistant (null = default), plus the defaults.\n\n**Required scopes:** `ai:read`","operationId":"get_assistant_profile","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:read"]},"patch":{"tags":["AI"],"summary":"Update assistant profile","description":"Change only the fields you send; null or empty resets to default.\n\n**Required scopes:** `ai:write`","operationId":"update_assistant_profile","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssistantProfileUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]}},"/ai/assistant/avatar":{"put":{"tags":["AI"],"summary":"Upload assistant avatar","description":"Replace the assistant avatar (jpg, png, webp or gif, max 4 MB).\n\n**Required scopes:** `ai:write`","operationId":"upload_assistant_avatar","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_assistant_avatar"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]},"delete":{"tags":["AI"],"summary":"Reset assistant avatar","description":"Remove the custom avatar; returns the default avatar url.\n\n**Required scopes:** `ai:write`","operationId":"reset_assistant_avatar","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]}},"/ai/assistant/sessions":{"get":{"tags":["AI"],"summary":"List assistant sessions","description":"Your Orova Assistant (or Ask AI) chat sessions in a workspace, newest first.\n\n**Required scopes:** `ai:read`","operationId":"list_assistant_sessions","parameters":[{"name":"workspace","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).","title":"Workspace"},"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet)."},{"name":"kind","in":"query","required":false,"schema":{"enum":["assistant","ai"],"type":"string","description":"Assistant or Ask AI.","default":"assistant","title":"Kind"},"description":"Assistant or Ask AI."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:read"]}},"/ai/assistant/search":{"get":{"tags":["AI"],"summary":"Search assistant history","description":"Search your past messages with the Orova Assistant (or Ask AI) in a workspace. Queries under 2 characters return nothing.\n\n**Required scopes:** `ai:read`","operationId":"search_assistant_messages","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"Text to find.","title":"Q"},"description":"Text to find."},{"name":"workspace","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).","title":"Workspace"},"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet)."},{"name":"kind","in":"query","required":false,"schema":{"enum":["assistant","ai"],"type":"string","description":"Assistant or Ask AI.","default":"assistant","title":"Kind"},"description":"Assistant or Ask AI."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:read"]}},"/ai/messages":{"post":{"tags":["AI"],"summary":"Send a message to the AI","description":"[$] Ask the Orova Assistant, or a model / bot in Ask AI mode, and get the reply. Spends quota from the workspace wallet (needs Chat access there); 402 `out_of_quota` when it is empty.\n\n**Required scopes:** `ai:write`","operationId":"send_ai_message","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiMessageCreate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]}},"/ai/bots":{"get":{"tags":["AI"],"summary":"List AI bots","description":"Bots you can use in a workspace (yours, shared with the workspace, and accepted invites).\n\n**Required scopes:** `ai:read`","operationId":"list_ai_bots","parameters":[{"name":"workspace","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).","title":"Workspace"},"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:read"]},"post":{"tags":["AI"],"summary":"Create AI bot","description":"Create a custom AI bot with its own instructions, tone, model and audience.\n\n**Required scopes:** `ai:write`","operationId":"create_ai_bot","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]}},"/ai/bots/{bot_id}":{"get":{"tags":["AI"],"summary":"Get AI bot","description":"One bot with its knowledge sources.\n\n**Required scopes:** `ai:read`","operationId":"get_ai_bot","parameters":[{"name":"bot_id","in":"path","required":true,"schema":{"type":"integer","title":"Bot Id"}},{"name":"workspace","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).","title":"Workspace"},"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:read"]},"patch":{"tags":["AI"],"summary":"Update AI bot","description":"Change only the fields you send. Only the bot owner can change visibility and invites.\n\n**Required scopes:** `ai:write`","operationId":"update_ai_bot","parameters":[{"name":"bot_id","in":"path","required":true,"schema":{"type":"integer","title":"Bot Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]},"delete":{"tags":["AI"],"summary":"Delete AI bot","description":"Delete a bot and its knowledge sources. Cannot be undone.\n\n**Required scopes:** `ai:write`","operationId":"delete_ai_bot","parameters":[{"name":"bot_id","in":"path","required":true,"schema":{"type":"integer","title":"Bot Id"}},{"name":"workspace","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).","title":"Workspace"},"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]}},"/ai/bot_avatars":{"post":{"tags":["AI"],"summary":"Upload bot avatar","description":"Upload an image (png, jpg or webp) and get a url to use as a bot `avatar`.\n\n**Required scopes:** `ai:write`","operationId":"upload_ai_bot_avatar","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_ai_bot_avatar"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]}},"/ai/bots/{bot_id}/sources":{"get":{"tags":["AI"],"summary":"List bot knowledge sources","description":"Files, texts and pages the bot learns from, with processing status.\n\n**Required scopes:** `ai:read`","operationId":"list_ai_bot_sources","parameters":[{"name":"bot_id","in":"path","required":true,"schema":{"type":"integer","title":"Bot Id"}},{"name":"workspace","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).","title":"Workspace"},"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:read"]},"post":{"tags":["AI"],"summary":"Add text or url source","description":"[$] Teach the bot from a text or a web page. Processing runs in the background (status `queued`) and spends quota from the wallet.\n\n**Required scopes:** `ai:write`","operationId":"add_ai_bot_source","parameters":[{"name":"bot_id","in":"path","required":true,"schema":{"type":"integer","title":"Bot Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BotSourceCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]}},"/ai/bots/{bot_id}/sources/file":{"post":{"tags":["AI"],"summary":"Upload file source","description":"[$] Teach the bot from a document (pdf, docx, xlsx, csv, txt…). Processing runs in the background and spends quota from the wallet.\n\n**Required scopes:** `ai:write`","operationId":"upload_ai_bot_source_file","parameters":[{"name":"bot_id","in":"path","required":true,"schema":{"type":"integer","title":"Bot Id"}}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_ai_bot_source_file"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]}},"/ai/bots/{bot_id}/sources/{source_id}":{"delete":{"tags":["AI"],"summary":"Delete bot source","description":"Remove a knowledge source from the bot. Cannot be undone.\n\n**Required scopes:** `ai:write`","operationId":"delete_ai_bot_source","parameters":[{"name":"bot_id","in":"path","required":true,"schema":{"type":"integer","title":"Bot Id"}},{"name":"source_id","in":"path","required":true,"schema":{"type":"integer","title":"Source Id"}},{"name":"workspace","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).","title":"Workspace"},"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]}},"/ai/bot_invites":{"get":{"tags":["AI"],"summary":"List bot invites","description":"Pending invitations to use someone else's bot, newest first.\n\n**Required scopes:** `ai:read`","operationId":"list_ai_bot_invites","parameters":[{"name":"workspace","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).","title":"Workspace"},"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:read"]}},"/ai/bot_invites/{invite_id}/accept":{"post":{"tags":["AI"],"summary":"Accept bot invite","description":"Accept an invitation; the bot then appears in your bot list.\n\n**Required scopes:** `ai:write`","operationId":"accept_ai_bot_invite","parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"integer","title":"Invite Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceOnly"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]}},"/ai/bot_invites/{invite_id}/decline":{"post":{"tags":["AI"],"summary":"Decline bot invite","description":"Decline an invitation.\n\n**Required scopes:** `ai:write`","operationId":"decline_ai_bot_invite","parameters":[{"name":"invite_id","in":"path","required":true,"schema":{"type":"integer","title":"Invite Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/WorkspaceOnly"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]}},"/ai/sessions":{"get":{"tags":["AI"],"summary":"List Ask AI sessions","description":"Your Ask AI sessions that have messages, newest activity first; `q` filters by name or message text.\n\n**Required scopes:** `ai:read`","operationId":"list_ai_sessions","parameters":[{"name":"workspace","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).","title":"Workspace"},"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet)."},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"description":"Filter text.","title":"Q"},"description":"Filter text."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":30,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:read"]},"post":{"tags":["AI"],"summary":"Create Ask AI session","description":"Start an Ask AI session with a model or one of your bots; send messages to it with send_ai_message (mode `ai`).\n\n**Required scopes:** `ai:write`","operationId":"create_ai_session","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiSessionCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]}},"/ai/sessions/{session_id}":{"get":{"tags":["AI"],"summary":"Get Ask AI session","description":"One Ask AI session (also when it has no messages yet).\n\n**Required scopes:** `ai:read`","operationId":"get_ai_session","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}},{"name":"workspace","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).","title":"Workspace"},"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:read"]},"patch":{"tags":["AI"],"summary":"Update Ask AI session","description":"Rename the session or change its model (null = automatic).\n\n**Required scopes:** `ai:write`","operationId":"update_ai_session","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AiSessionUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]},"delete":{"tags":["AI"],"summary":"Delete Ask AI session","description":"Delete the session and all its messages. Cannot be undone.\n\n**Required scopes:** `ai:write`","operationId":"delete_ai_session","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}},{"name":"workspace","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).","title":"Workspace"},"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]}},"/ai/sessions/{session_id}/media":{"get":{"tags":["AI"],"summary":"List session media","description":"Images, files and audio sent or generated in an Ask AI session, oldest first.\n\n**Required scopes:** `ai:read`","operationId":"list_ai_session_media","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"integer","title":"Session Id"}},{"name":"workspace","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).","title":"Workspace"},"description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:read"]}},"/messages/{message_id}/thread/summary/estimate":{"post":{"tags":["AI"],"summary":"Estimate thread summary cost","description":"Free quote (quota) for summarizing a reply thread; 402 `out_of_quota` when the wallet cannot cover it.\n\n**Required scopes:** `ai:read`","operationId":"estimate_thread_summary","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:read"]}},"/messages/{message_id}/thread/summary":{"post":{"tags":["AI"],"summary":"Summarize thread","description":"[$] AI summary of a message and its replies. Spends quota from the paying wallet (rate limited per hour).\n\n**Required scopes:** `ai:write`","operationId":"summarize_thread","parameters":[{"name":"message_id","in":"path","required":true,"schema":{"type":"string","title":"Message Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]}},"/conversations/{conversation_id}/summary/estimate":{"post":{"tags":["AI"],"summary":"Estimate conversation summary cost","description":"Free quote (quota) for summarizing recent or unread messages of a conversation.\n\n**Required scopes:** `ai:read`","operationId":"estimate_conversation_summary","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConversationSummaryIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:read"]}},"/conversations/{conversation_id}/summary":{"post":{"tags":["AI"],"summary":"Summarize conversation","description":"[$] AI summary of recent (or unread / since a message) messages of a conversation. Spends quota from the paying wallet.\n\n**Required scopes:** `ai:write`","operationId":"summarize_conversation","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ConversationSummaryIn"},{"type":"null"}],"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]}},"/conversations/{conversation_id}/translate":{"post":{"tags":["AI"],"summary":"Translate messages","description":"[$] Translate up to 40 messages of a conversation into a language. Spends quota from the paying wallet.\n\n**Required scopes:** `ai:write`","operationId":"translate_messages","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TranslateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]}},"/conversations/{conversation_id}/translation":{"get":{"tags":["AI"],"summary":"Get conversation translation settings","description":"Auto-translate settings of a conversation (or the inherited account default) and the available languages.\n\n**Required scopes:** `ai:read`","operationId":"get_conversation_translation_settings","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:read"]},"patch":{"tags":["AI"],"summary":"Update conversation translation settings","description":"Change auto-translate for one conversation; fields you omit keep their current value. Auto-translate spends quota as messages arrive.\n\n**Required scopes:** `ai:write`","operationId":"update_conversation_translation_settings","parameters":[{"name":"conversation_id","in":"path","required":true,"schema":{"type":"string","title":"Conversation Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/orova__routers__api_chat_v1_ai__TranslationSettingsUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["ai:write"]}},"/pockets":{"get":{"tags":["Pockets"],"summary":"List Pockets","description":"Pockets available to you in Orova Chat: live Pockets for your country and platform, plus your own Pockets in sandbox. Each item has `pocket_id` (`@slug`), name, icon, developer, `category` + `category_label`, `permissions_requested`, `permissions_granted`, `needs_consent` (true until you agree to the current set of permissions — a new version that changes them asks again), `consent_key` and whether you pinned it. `categories` lists every category as `{key, label, count}` for the current filter. Consent cannot be given through the API: you agree to all requested permissions in the Orova Chat permission dialog when you open the Pocket. To withdraw, remove the Pocket (`revoke_connected_pocket`).\n\n**Required scopes:** `pockets:read`","operationId":"list_pockets","parameters":[{"name":"view","in":"query","required":false,"schema":{"enum":["all","mine","pinned","recent"],"type":"string","description":"`all`, `mine` (pinned or opened), `pinned` or `recent`.","default":"all","title":"View"},"description":"`all`, `mine` (pinned or opened), `pinned` or `recent`."},{"name":"category","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"Only this category key.","title":"Category"},"description":"Only this category key."},{"name":"label","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"Only Pockets with this label (`l:<id>`).","title":"Label"},"description":"Only Pockets with this label (`l:<id>`)."},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"description":"Search name, description or slug.","title":"Q"},"description":"Search name, description or slug."},{"name":"platform","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"description":"Platform to list for: `web`, `ios`, `ipad`, `android`, `macos`, `windows`, `linux`.","title":"Platform"},"description":"Platform to list for: `web`, `ios`, `ipad`, `android`, `macos`, `windows`, `linux`."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Page size.","default":50,"title":"Limit"},"description":"Page size."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` of the previous page.","title":"Cursor"},"description":"`next_cursor` of the previous page."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["pockets:read"]}},"/developer/overview":{"get":{"tags":["Pockets"],"summary":"Get developer overview","description":"Your Pocket developer account: USD balance used for the yearly maintenance fee, the price table and how many Pockets you own.\n\n**Required scopes:** `pockets:read`","operationId":"get_developer_overview","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["pockets:read"]}},"/developer/pockets":{"get":{"tags":["Pockets"],"summary":"List your Pockets","description":"Pockets you own, newest first: `id`, `slug`, name, status, environment, icon, live version and latest version with its review status.\n\n**Required scopes:** `pockets:read`","operationId":"list_my_pockets","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Page size.","default":50,"title":"Limit"},"description":"Page size."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` of the previous page.","title":"Cursor"},"description":"`next_cursor` of the previous page."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["pockets:read"]},"post":{"tags":["Pockets"],"summary":"Create a Pocket","description":"Register a new Pocket (status `draft`, free). Then upload an icon (`upload_pocket_icon`), fill in the required info (`update_pocket`), upload a zip bundle (`upload_pocket_version`), test it (`get_pocket_sandbox_url`) and send it for review (`submit_pocket_version`). A new Pocket is a sandbox Pocket that expires after 30 days without activity (`sandbox_expires_at` in `get_my_pocket`). 409 `slug_taken` if the slug is used; 400 `invalid_input` with `field` + `reason` for bad values; 400 `sandbox_limit` (with `max`, `current`) when you already have 20 active sandbox Pockets; 429 `rate_limited` (with `Retry-After`) after 10 Pockets per day. Supports `Idempotency-Key`.\n\n**Required scopes:** `pockets:write`","operationId":"create_pocket","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PocketCreate"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["pockets:write"]}},"/developer/pockets/{pocket_id}":{"get":{"tags":["Pockets"],"summary":"Get one of your Pockets","description":"Full details of a Pocket you own: info, scope (locales, regions, platforms), permissions, `missing_fields` still required before review, `has_approved_version`, and every version with its review result (`changelog`, `changelog_i18n`, `release_notes`, `review_notes`). Info fields are the approved (public) values; pending changes are in `draft` with `draft_status` (`draft`, `submitted`, `needs_human` or `rejected`; null when there is no draft), `draft_submitted_at` and `draft_review_note`. `base_locale` is the language of `name`/`short_description`/`description` (first of `locales`); `i18n` holds the other languages `{locale: {name, short_description, description}}` (the draft's when it has one). Sandbox: `sandbox_expires_at` (null once approved), `sandbox_days_left`, `is_expired` and `limits` `{sandbox_apps_max, sandbox_apps_used, uploaded_versions_max}`.\n\n**Required scopes:** `pockets:read`","operationId":"get_my_pocket","parameters":[{"name":"pocket_id","in":"path","required":true,"schema":{"type":"string","maxLength":64,"description":"Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`.","title":"Pocket Id"},"description":"Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["pockets:read"]},"patch":{"tags":["Pockets"],"summary":"Update a Pocket","description":"Change a Pocket's store info, translations (`i18n`), scope, permissions or environment. Only fields you send change; other fields accepted by Pocket Studio are passed through. Sandbox-only Pockets (no approved version yet) are updated directly. Once a Pocket has an approved version, info changes go to a draft instead: the response has `draft: true`, the public listing keeps the approved values, and you send the draft for review with `submit_pocket_info` (or together with the next `submit_pocket_version`). Errors keep Studio's details: 400 `invalid_input` / `missing_field` (with `field`, `reason`), 402 `maintenance_required` (with `need_usd`), 409 `no_live_version` / `app_removed`. Editing does not renew an expired sandbox Pocket.\n\n**Required scopes:** `pockets:write`","operationId":"update_pocket","parameters":[{"name":"pocket_id","in":"path","required":true,"schema":{"type":"string","maxLength":64,"description":"Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`.","title":"Pocket Id"},"description":"Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PocketUpdate"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["pockets:write"]}},"/developer/pockets/{pocket_id}/icon":{"post":{"tags":["Pockets"],"summary":"Upload a Pocket icon","description":"Upload the store icon: PNG, JPEG or WebP, square, at least 128 px, max 1 MB. It is converted to a 256×256 WebP and replaces the icon in the bundle. Returns `icon_url`. 409 `sandbox_expired` for an expired sandbox Pocket.\n\n**Required scopes:** `pockets:write`","operationId":"upload_pocket_icon","parameters":[{"name":"pocket_id","in":"path","required":true,"schema":{"type":"string","maxLength":64,"description":"Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`.","title":"Pocket Id"},"description":"Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_pocket_icon"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["pockets:write"]}},"/developer/pockets/{pocket_id}/publish":{"post":{"tags":["Pockets"],"summary":"Publish a Pocket","description":"Put a Pocket you unpublished back in the store (needs an approved live version and an active yearly maintenance fee, charged automatically from your balance — 402 `maintenance_required` if the balance is short). A Pocket suspended by Orova cannot be re-published (409 `not_unpublished_by_owner`).\n\n**Required scopes:** `pockets:write`","operationId":"publish_pocket","parameters":[{"name":"pocket_id","in":"path","required":true,"schema":{"type":"string","maxLength":64,"description":"Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`.","title":"Pocket Id"},"description":"Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["pockets:write"]}},"/developer/pockets/{pocket_id}/unpublish":{"post":{"tags":["Pockets"],"summary":"Unpublish a Pocket","description":"Hide a live Pocket from the store and from users (status `suspended`). Re-publish it any time with `publish_pocket`.\n\n**Required scopes:** `pockets:write`","operationId":"unpublish_pocket","parameters":[{"name":"pocket_id","in":"path","required":true,"schema":{"type":"string","maxLength":64,"description":"Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`.","title":"Pocket Id"},"description":"Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["pockets:write"]}},"/developer/pockets/{pocket_id}/stats":{"get":{"tags":["Pockets"],"summary":"Get Pocket statistics","description":"Impressions, opens, users, sessions and errors of a Pocket you own: `summary` for the range and a `series` by day, country, platform or locale. Default range is the last 30 days (UTC); max 400 days.\n\n**Required scopes:** `pockets:read`","operationId":"get_pocket_stats","parameters":[{"name":"pocket_id","in":"path","required":true,"schema":{"type":"string","maxLength":64,"description":"Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`.","title":"Pocket Id"},"description":"Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`."},{"name":"from","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"description":"Start date `YYYY-MM-DD` (UTC).","title":"From"},"description":"Start date `YYYY-MM-DD` (UTC)."},{"name":"to","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"description":"End date `YYYY-MM-DD` (UTC).","title":"To"},"description":"End date `YYYY-MM-DD` (UTC)."},{"name":"by","in":"query","required":false,"schema":{"enum":["day","country","platform","locale"],"type":"string","description":"Break the series down by `day`, `country`, `platform` or `locale`.","default":"day","title":"By"},"description":"Break the series down by `day`, `country`, `platform` or `locale`."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["pockets:read"]}},"/developer/pockets/{pocket_id}/submit_info":{"post":{"tags":["Pockets"],"summary":"Submit Pocket info for review","description":"Submit pending metadata changes (draft) for review. Apps with an approved version keep the public listing until the draft is approved; sandbox-only apps are updated directly. Errors keep Studio's details: 400 `nothing_to_submit` (no draft), `profile_incomplete` (with `missing`), `profile_not_approved` (submit your developer profile first with `submit_developer_profile`). Supports `Idempotency-Key`.\n\n**Required scopes:** `pockets:write`","operationId":"submit_pocket_info","parameters":[{"name":"pocket_id","in":"path","required":true,"schema":{"type":"string","maxLength":64,"description":"Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`.","title":"Pocket Id"},"description":"Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["pockets:write"]}},"/developer/pockets/{pocket_id}/versions":{"post":{"tags":["Pockets"],"summary":"Upload a Pocket version","description":"Upload a zip bundle (max 50 MB; `pocket.json` at the root with the same `slug`) as a new version (status `uploaded`). Returns the version `id`, a `preview_url` and validation `warnings`. Bundle errors come back as 400 with the Studio code, `field` and `reason`; 409 `version_exists` if that version number was already uploaded. Optional multipart fields next to `file`: `release_notes` (up to 2000 characters, public \"What's new\" shown to users) and `review_notes` (up to 2000 characters, only seen by reviewers: test steps, demo account). `changelog` in `pocket.json` is a string or `{locale: text}` (up to 2000 characters per language); the version returns it as `changelog` (in your language) and `changelog_i18n`. Up to 10 `uploaded` (not submitted) versions are kept per Pocket — the oldest is deleted when you upload an 11th. Uploading restores an expired sandbox Pocket; 400 `sandbox_limit` (with `max`, `current`) if that would exceed 20 active sandbox Pockets; 429 `rate_limited` (with `Retry-After`) after 30 uploads per day. Supports `Idempotency-Key`.\n\n**Required scopes:** `pockets:write`","operationId":"upload_pocket_version","parameters":[{"name":"pocket_id","in":"path","required":true,"schema":{"type":"string","maxLength":64,"description":"Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`.","title":"Pocket Id"},"description":"Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_pocket_version"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["pockets:write"]}},"/developer/versions/{version_id}":{"get":{"tags":["Pockets"],"summary":"Get a Pocket version","description":"One version of a Pocket you own: status (`uploaded`, `in_review`, `approved`, `needs_human`, `rejected`, `live`…), size, changelog, preview URL and the review result with per-criterion findings.\n\n**Required scopes:** `pockets:read`","operationId":"get_pocket_version","parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"description":"Version ID (from `upload_pocket_version` or `get_my_pocket` → `versions`).","title":"Version Id"},"description":"Version ID (from `upload_pocket_version` or `get_my_pocket` → `versions`)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["pockets:read"]},"delete":{"tags":["Pockets"],"summary":"Delete a Pocket version","description":"Delete an `uploaded` or `rejected` version and its files. The live version cannot be deleted (400 `invalid_status`).\n\n**Required scopes:** `pockets:write`","operationId":"delete_pocket_version","parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"description":"Version ID (from `upload_pocket_version` or `get_my_pocket` → `versions`).","title":"Version Id"},"description":"Version ID (from `upload_pocket_version` or `get_my_pocket` → `versions`)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["pockets:write"]}},"/developer/versions/{version_id}/sandbox_url":{"get":{"tags":["Pockets"],"summary":"Get a sandbox link","description":"A private link that runs this version for you only, valid 15 minutes (`url`, `expires_at`). Use it to test before submitting. 409 `invalid_status` for versions that cannot run in sandbox; 409 `sandbox_expired` for an expired sandbox Pocket.\n\n**Required scopes:** `pockets:read`","operationId":"get_pocket_sandbox_url","parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"description":"Version ID (from `upload_pocket_version` or `get_my_pocket` → `versions`).","title":"Version Id"},"description":"Version ID (from `upload_pocket_version` or `get_my_pocket` → `versions`)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["pockets:read"]}},"/developer/versions/{version_id}/submit":{"post":{"tags":["Pockets"],"summary":"Submit a version for review","description":"Send an `uploaded` or `rejected` version to Orova review (free). Approved versions go live automatically. 400 `profile_incomplete` lists the required Pocket info still `missing` (icon, name, short description, category, support email, privacy URL, locales, platforms); 409 `invalid_status` if the version is not submittable; 400 `profile_not_approved` if your developer profile has not been approved or submitted (`submit_developer_profile`); 429 `rate_limited` after 10 submissions per hour. A pending info draft is reviewed together with the version. 409 `sandbox_expired` for an expired sandbox Pocket. Supports `Idempotency-Key`.\n\n**Required scopes:** `pockets:write`","operationId":"submit_pocket_version","parameters":[{"name":"version_id","in":"path","required":true,"schema":{"type":"integer","minimum":1,"description":"Version ID (from `upload_pocket_version` or `get_my_pocket` → `versions`).","title":"Version Id"},"description":"Version ID (from `upload_pocket_version` or `get_my_pocket` → `versions`)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["pockets:write"]}},"/developer/profile":{"get":{"tags":["Pockets"],"summary":"Get your developer profile","description":"Your Pocket developer profile (handle, display name, bio, website, support email, country, logo) and `public_url`. Profile fields are the approved (public) values; pending changes have `draft_status` (`draft`, `submitted`, `needs_human` or `rejected`) and `approved_at` is null until the profile is approved. Created on first call.\n\n**Required scopes:** `pockets:read`","operationId":"get_developer_profile","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["pockets:read"]},"put":{"tags":["Pockets"],"summary":"Update your developer profile","description":"Change your developer profile. Only fields you send change; other fields accepted by Pocket Studio are passed through. Changes are saved as a draft until approved — send them with `submit_developer_profile`. Errors keep Studio's details: 400 `invalid_handle`, `reserved_handle`, `handle_taken`, `invalid_url`, `invalid_email`, `invalid_country`, `too_long` (with `field`).\n\n**Required scopes:** `pockets:write`","operationId":"update_developer_profile","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeveloperProfileUpdate"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["pockets:write"]}},"/developer/profile/submit":{"post":{"tags":["Pockets"],"summary":"Submit your developer profile for review","description":"Send your developer profile draft to Orova review. Approved profiles are shown on your public developer page and Pockets; a version cannot be submitted until the profile is approved or in review (400 `profile_not_approved`). 400 `nothing_to_submit` if there is no draft; 400 `profile_incomplete` lists the `missing` fields. Supports `Idempotency-Key`.\n\n**Required scopes:** `pockets:write`","operationId":"submit_developer_profile","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["pockets:write"]}},"/connected_pockets":{"get":{"tags":["Pockets"],"summary":"List connected Pockets","description":"Pockets you agreed to in the Orova Chat permission dialog, newest consent first: `slug`, `name` (in your language), `icon_url`, `developer_name`, `is_official`, `permissions_granted` `[{key, label}]`, `consented_at`, `last_opened_at` and live `version`. Same list as Chat Settings ▸ Developer ▸ Connected Pockets. Consent itself is only given in Orova Chat, never through the API.\n\n**Required scopes:** `pockets:read`","operationId":"list_connected_pockets","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Page size.","default":50,"title":"Limit"},"description":"Page size."},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"`next_cursor` of the previous page.","title":"Cursor"},"description":"`next_cursor` of the previous page."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["pockets:read"]}},"/connected_pockets/{slug}":{"delete":{"tags":["Pockets"],"summary":"Remove a connected Pocket","description":"Remove a Pocket: revokes every permission you granted, unpins it and hides it from Recent. The next time you open it Orova Chat asks for permission again. The Pocket's stored data is kept. 404 `not_found` if you never connected it.\n\n**Required scopes:** `pockets:write`","operationId":"revoke_connected_pocket","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","maxLength":49,"description":"Pocket handle (`slug` or `@slug`) from `list_connected_pockets`.","title":"Slug"},"description":"Pocket handle (`slug` or `@slug`) from `list_connected_pockets`."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Invalid request (`invalid_request`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidRequestError"}}}},"401":{"description":"Missing, invalid, revoked or expired key (`invalid_token`)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"`insufficient_scope`, `not_enabled` or `ip_not_allowed`","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"`rate_limited` — see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-required-scopes":["pockets:write"]}},"/":{"get":{"tags":["Meta"],"summary":"API index","description":"Public entry point: links to the docs, OpenAPI document, Swagger UI, llms.txt and MCP server, how to authenticate, and the number of operations per tag. No key required.","operationId":"get_api_index","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"x-required-scopes":[],"security":[]}},"/llms.txt":{"get":{"tags":["Meta"],"summary":"Plain-text API summary for LLMs","description":"Every operation on one line (`METHOD /path — summary [scopes]`) plus authentication notes and curl examples. Generated from the OpenAPI document. No key required.","operationId":"get_llms_txt","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}},"x-required-scopes":[],"security":[]}}},"components":{"schemas":{"AiMessageCreate":{"properties":{"workspace":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Workspace","description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet)."},"text":{"type":"string","maxLength":2000,"minLength":1,"title":"Text","description":"Your message."},"mode":{"type":"string","enum":["assistant","ai"],"title":"Mode","description":"`assistant` = Orova Assistant; `ai` = Ask AI with a model or bot session.","default":"assistant"},"session_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Session Id","description":"Session to continue (create one with create_ai_session for mode `ai`)."},"model":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Model","description":"Mode `ai` only: `provider[:model_id]`; empty = the session's model, else automatic OpenAI."}},"type":"object","required":["text"],"title":"AiMessageCreate"},"AiSessionCreate":{"properties":{"workspace":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Workspace","description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet)."},"bot_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Bot Id","description":"Chat with this bot."},"model":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Model","description":"`openai[:id]`, `claude[:id]` or `gemini[:id]` (ignored when bot_id is set); null = automatic."}},"type":"object","title":"AiSessionCreate"},"AiSessionUpdate":{"properties":{"workspace":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Workspace","description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet)."},"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Name","description":"Session name; null or empty = default."},"model":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Model","description":"Model; null = automatic."}},"type":"object","title":"AiSessionUpdate"},"AssistantProfileUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Name","description":"Assistant name; null or empty = default."},"user_title":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"User Title","description":"How the assistant addresses you; `__name__` = by your first name."},"self_title":{"anyOf":[{"type":"string","maxLength":20},{"type":"null"}],"title":"Self Title","description":"How the assistant refers to itself."}},"type":"object","title":"AssistantProfileUpdate"},"Body_add_sticker":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File","description":"Sticker image."},"w":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"W","description":"Width in pixels."},"h":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"H","description":"Height in pixels."}},"type":"object","required":["file"],"title":"Body_add_sticker"},"Body_transcribe_audio":{"properties":{"audio":{"type":"string","contentMediaType":"application/octet-stream","title":"Audio","description":"Audio file."},"conversation_id":{"type":"string","maxLength":32,"title":"Conversation Id","description":"Conversation (wallet, style)."},"rewrite":{"type":"boolean","title":"Rewrite","description":"Also rewrite the text with AI.","default":false},"duration_s":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Duration S","description":"Clip length in seconds."},"voiced":{"anyOf":[{"type":"number","minimum":0.0},{"type":"null"}],"title":"Voiced","description":"Seconds of detected speech."}},"type":"object","required":["audio","conversation_id"],"title":"Body_transcribe_audio"},"Body_upload_ai_bot_avatar":{"properties":{"avatar":{"type":"string","contentMediaType":"application/octet-stream","title":"Avatar","description":"Image file."},"workspace":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Workspace","description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet)."}},"type":"object","required":["avatar"],"title":"Body_upload_ai_bot_avatar"},"Body_upload_ai_bot_source_file":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File","description":"Document."},"workspace":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Workspace","description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet)."}},"type":"object","required":["file"],"title":"Body_upload_ai_bot_source_file"},"Body_upload_assistant_avatar":{"properties":{"avatar":{"type":"string","contentMediaType":"application/octet-stream","title":"Avatar","description":"Image file."}},"type":"object","required":["avatar"],"title":"Body_upload_assistant_avatar"},"Body_upload_file":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File","description":"The file to upload."},"purpose":{"type":"string","enum":["message","cloud","avatar"],"title":"Purpose","description":"`message`, `cloud` or `avatar`.","default":"message"},"conversation_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Conversation Id","description":"Conversation the file belongs to (required)."},"width":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Width","description":"Image/video width in pixels."},"height":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Height","description":"Image/video height in pixels."},"duration_s":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Duration S","description":"Audio/video length in seconds."}},"type":"object","required":["file"],"title":"Body_upload_file"},"Body_upload_pocket_icon":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File","description":"Square PNG/JPEG/WebP image."}},"type":"object","required":["file"],"title":"Body_upload_pocket_icon"},"Body_upload_pocket_version":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File","description":"Zip bundle."},"release_notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Release Notes","description":"Public \"What's new\" for this version, up to 2000 characters."},"review_notes":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Review Notes","description":"Notes for reviewers only (test steps, demo account), up to 2000 characters. Not shown to users."}},"type":"object","required":["file"],"title":"Body_upload_pocket_version"},"Body_upload_quick_file":{"properties":{"file":{"type":"string","contentMediaType":"application/octet-stream","title":"File","description":"The file to upload."}},"type":"object","required":["file"],"title":"Body_upload_quick_file"},"BotCreate":{"properties":{"workspace":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Workspace","description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet)."},"name":{"type":"string","maxLength":120,"minLength":1,"title":"Name","description":"Bot name."},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Description","description":"Short description."},"instructions":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Instructions","description":"System instructions."},"tone":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Tone","description":"Tone of voice (free text)."},"provider":{"anyOf":[{"type":"string","enum":["openai","claude","gemini"]},{"type":"null"}],"title":"Provider","description":"AI provider; null = automatic."},"model":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Model","description":"Model id of the provider."},"avatar":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Avatar","description":"Avatar: url from upload_ai_bot_avatar or a built-in avatar key; omitted = random."},"visibility":{"anyOf":[{"type":"string","enum":["private","workspace","members"]},{"type":"null"}],"title":"Visibility","description":"Who can use the bot (default private)."},"shared_user_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Shared User Ids","description":"People to invite when visibility is `members`."}},"type":"object","required":["name"],"title":"BotCreate"},"BotSourceCreate":{"properties":{"workspace":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Workspace","description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet)."},"kind":{"type":"string","enum":["text","url"],"title":"Kind","description":"`text` (name + text) or `url`."},"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Name","description":"Source name (kind text)."},"text":{"anyOf":[{"type":"string","maxLength":500000},{"type":"null"}],"title":"Text","description":"Source text (kind text)."},"url":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}],"title":"Url","description":"Page to learn (kind url)."}},"type":"object","required":["kind"],"title":"BotSourceCreate"},"BotUpdate":{"properties":{"workspace":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Workspace","description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet)."},"name":{"anyOf":[{"type":"string","maxLength":120,"minLength":1},{"type":"null"}],"title":"Name","description":"Bot name."},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Description","description":"Short description."},"instructions":{"anyOf":[{"type":"string","maxLength":20000},{"type":"null"}],"title":"Instructions","description":"System instructions."},"tone":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Tone","description":"Tone of voice."},"provider":{"anyOf":[{"type":"string","enum":["openai","claude","gemini"]},{"type":"null"}],"title":"Provider","description":"AI provider; null = automatic."},"model":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Model","description":"Model id."},"avatar":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Avatar","description":"Avatar; empty = default."},"visibility":{"anyOf":[{"type":"string","enum":["private","workspace","members"]},{"type":"null"}],"title":"Visibility","description":"Who can use the bot."},"shared_user_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Shared User Ids","description":"Desired invite list (new ids are invited, missing ids removed)."}},"type":"object","title":"BotUpdate"},"CallCreate":{"properties":{"conversation_id":{"type":"string","maxLength":64,"minLength":1,"title":"Conversation Id","description":"Conversation to call (direct or group)."},"kind":{"type":"string","enum":["audio","video"],"title":"Kind","description":"`audio` or `video`. Audio calls can still turn the camera on later.","default":"audio"}},"type":"object","required":["conversation_id"],"title":"CallCreate"},"CallEnd":{"properties":{"reason":{"type":"string","maxLength":40,"title":"Reason","description":"Why the call ended, e.g. `hangup`, `cancel`, `timeout`.","default":"hangup"}},"type":"object","title":"CallEnd"},"CallSummaryCreate":{"properties":{"lines":{"items":{"$ref":"#/components/schemas/TranscriptLine"},"type":"array","minItems":3,"title":"Lines","description":"Caption transcript of the call, at least 3 non-empty lines. Very long transcripts keep the end of the call."}},"type":"object","required":["lines"],"title":"CallSummaryCreate"},"CaptionItem":{"properties":{"id":{"type":"string","maxLength":80,"minLength":1,"title":"Id","description":"Caption line id."},"text":{"type":"string","title":"Text","description":"Caption text."},"src":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Src","description":"Language of `text`; lines already in `lang` are skipped."}},"type":"object","required":["id","text"],"title":"CaptionItem"},"CaptionLang":{"properties":{"identity":{"type":"string","maxLength":200,"minLength":1,"title":"Identity","description":"Your LiveKit participant identity in this call (the `sub` claim of the token from `create_call_token`)."},"lang":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Lang","description":"Language you want to READ captions in. Empty string or null = original. Omit to keep unchanged."},"speak_lang":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Speak Lang","description":"Language you SPEAK. Empty string or null = room default. Omit to keep unchanged."},"dub":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Dub","description":"Turn AI voice-over (dubbing) on/off for you. Omit to keep unchanged. [$] Dubbing is billed to the call's paying workspace."}},"type":"object","required":["identity"],"title":"CaptionLang"},"CaptionStart":{"properties":{"source_lang":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Source Lang","description":"Spoken language code of the room. Omit to use the room default."}},"type":"object","title":"CaptionStart"},"CaptionTranslate":{"properties":{"lang":{"type":"string","maxLength":16,"minLength":1,"title":"Lang","description":"Target language code."},"items":{"items":{"$ref":"#/components/schemas/CaptionItem"},"type":"array","title":"Items","description":"Caption lines to translate (the server accepts up to 40 per request)."}},"type":"object","required":["lang","items"],"title":"CaptionTranslate"},"ContactAccept":{"properties":{"group":{"anyOf":[{"type":"string","maxLength":28},{"type":"null"}],"title":"Group","description":"Where to file the new contact: `workspace`, `personal` or `tag:<name>`. Omit for the default."}},"type":"object","title":"ContactAccept"},"ContactRequestCreate":{"properties":{"user_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"User Id","description":"Invite by user id."},"handle":{"anyOf":[{"type":"string","maxLength":64,"minLength":1},{"type":"null"}],"title":"Handle","description":"Invite by Chat ID (with or without `@`)."},"email":{"anyOf":[{"type":"string","maxLength":255,"minLength":3},{"type":"null"}],"title":"Email","description":"Invite by exact email address."},"tag":{"anyOf":[{"type":"string","maxLength":24},{"type":"null"}],"title":"Tag","description":"Contact group to file this person under."},"message":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Message","description":"Short note shown with the request."}},"type":"object","title":"ContactRequestCreate"},"ContactTagCreate":{"properties":{"name":{"type":"string","maxLength":24,"minLength":1,"title":"Name","description":"Group name (1-24 chars)."}},"type":"object","required":["name"],"title":"ContactTagCreate"},"ContactTagRename":{"properties":{"name":{"type":"string","maxLength":24,"minLength":1,"title":"Name","description":"New group name (1-24 chars)."}},"type":"object","required":["name"],"title":"ContactTagRename"},"ContactTagSet":{"properties":{"tag":{"anyOf":[{"type":"string","maxLength":24},{"type":"null"}],"title":"Tag","description":"Group name (1-24 chars); `null` removes the group."}},"type":"object","required":["tag"],"title":"ContactTagSet"},"ConversationCreate":{"properties":{"kind":{"type":"string","pattern":"^(direct|group|self)$","title":"Kind","description":"`direct` (1:1 with `user_id`), `group` (with `user_ids`) or `self` (your own notes / My Cloud)."},"user_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"User Id","description":"Other person (kind=direct)."},"user_ids":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"User Ids","description":"Initial members (kind=group), excluding yourself."},"title":{"anyOf":[{"type":"string","maxLength":50},{"type":"null"}],"title":"Title","description":"Group name (kind=group, max 50 characters)."},"workspace":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Workspace","description":"Workspace slug to create it in; omit for your personal space."}},"type":"object","required":["kind"],"title":"ConversationCreate"},"ConversationSummaryIn":{"properties":{"since":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Since","description":"`unread` = unread messages only, or a message id to start from; omitted = recent messages."}},"type":"object","title":"ConversationSummaryIn"},"ConversationUpdate":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"New group name (max 50 characters); empty or null clears it."},"avatar_file_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Avatar File Id","description":"File id of an image uploaded with purpose `avatar` for this conversation."},"invite_link_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Invite Link Enabled","description":"Allow joining by invite link / QR."},"only_admins_post":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Only Admins Post","description":"Only owner/admins can send messages."},"members_can_invite":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Members Can Invite","description":"Regular members can add people and share the link."},"members_can_edit_info":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Members Can Edit Info","description":"Regular members can change name and photo."},"hide_member_profiles":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Hide Member Profiles","description":"Members only see each other's name and photo."},"join_approval":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Join Approval","description":"Joining by link needs approval from an owner/admin."}},"type":"object","title":"ConversationUpdate"},"DeletionConfirm":{"properties":{"otp":{"type":"string","pattern":"^\\s*\\d{6}\\s*$","title":"Otp","description":"The 6-digit code emailed to the user by request_account_deletion. Ask the user for it; never guess."}},"additionalProperties":false,"type":"object","required":["otp"],"title":"DeletionConfirm"},"DeveloperProfileUpdate":{"properties":{"handle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Handle","description":"Public handle for `https://pocket.orova.vn/console/d/<handle>`: lower-case letters, digits and `-`. 400 `invalid_handle` / `reserved_handle` / `handle_taken`."},"display_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Display Name","description":"Developer name shown on Pockets."},"bio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bio","description":"Short introduction (multi-line)."},"website":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Website","description":"Website URL, `https://` only."},"support_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Email","description":"Public support email."},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","description":"ISO-3166 alpha-2 country code."}},"additionalProperties":true,"type":"object","title":"DeveloperProfileUpdate"},"DirectoryPageSize":{"type":"integer","enum":[25,50,100,250],"title":"DirectoryPageSize","description":"Page sizes accepted by the workspace directory."},"InviteLinkIn":{"properties":{"renew":{"type":"boolean","title":"Renew","description":"Owner/admin: revoke the current link and issue a new one.","default":false}},"type":"object","title":"InviteLinkIn"},"LabelCreate":{"properties":{"name":{"type":"string","maxLength":40,"minLength":1,"title":"Name","description":"Label name (unique, case-insensitive)."},"color":{"type":"string","maxLength":7,"title":"Color","description":"Preset colour or hex `#RGB` / `#RRGGBB`."}},"type":"object","required":["name","color"],"title":"LabelCreate"},"LabelSet":{"properties":{"label_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Label Id","description":"One of your labels (`GET /labels`), or null to clear."}},"type":"object","required":["label_id"],"title":"LabelSet"},"LabelUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":40,"minLength":1},{"type":"null"}],"title":"Name","description":"New name."},"color":{"anyOf":[{"type":"string","maxLength":7},{"type":"null"}],"title":"Color","description":"New colour (`#RRGGBB`)."},"position":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Position","description":"Sort position (0 = first)."}},"type":"object","title":"LabelUpdate"},"LeaveIn":{"properties":{"dissolve":{"type":"boolean","title":"Dissolve","description":"Owner only: dissolve the group for everyone instead of transferring ownership first.","default":false}},"type":"object","title":"LeaveIn"},"MembersAdd":{"properties":{"user_ids":{"items":{"type":"integer"},"type":"array","minItems":1,"title":"User Ids","description":"People to add."}},"type":"object","required":["user_ids"],"title":"MembersAdd"},"MessageEdit":{"properties":{"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text","description":"New plain text (up to 8000 characters)."},"html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html","description":"New rich text HTML; omit to edit as plain text (drops previous formatting)."}},"additionalProperties":false,"type":"object","title":"MessageEdit"},"MessageForward":{"properties":{"conversation_ids":{"items":{"type":"string"},"type":"array","maxItems":50,"minItems":1,"title":"Conversation Ids","description":"Target conversation ids."}},"additionalProperties":false,"type":"object","required":["conversation_ids"],"title":"MessageForward"},"MessageSend":{"properties":{"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text","description":"Plain text, up to 8000 characters (longer → 400 text_too_long). Ignored when `html` has content."},"html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html","description":"Rich text HTML (sanitized server-side). When it has content the plain body is generated from it. Media messages keep only the text."},"reply_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply To","description":"Id of a message in this conversation to reply to."},"media":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Media","description":"File ids from `POST /files` (purpose message, same conversation, not yet attached)."},"kind":{"anyOf":[{"type":"string","enum":["text","media","voice","sticker","contact"]},{"type":"null"}],"title":"Kind","description":"Usually omitted (text or media is inferred). `voice` = all media are audio; `sticker` needs `sticker_id`; `contact` needs `contact_user_id`."},"mentions":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Mentions","description":"User ids to @mention (must be members; yourself is ignored)."},"sticker_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Sticker Id","description":"Sticker id \"<pack>:<id>\" or \"u:<id>\" (kind sticker)."},"contact_user_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Contact User Id","description":"User id of the contact card to share (kind contact)."},"thread_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Thread Only","description":"With `reply_to`: post only inside the reply thread, not in the main timeline."},"important":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Important","description":"Mark as important. In groups this @mentions every member and notifies muted members too."},"emoji_scale":{"anyOf":[{"type":"number","maximum":3.0,"minimum":1.0},{"type":"null"}],"title":"Emoji Scale","description":"Enlarge an emoji-only message (1.0-3.0)."},"quick_files":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Quick Files","description":"Ids of your own quick-reply files to attach (copied into this conversation)."}},"additionalProperties":false,"type":"object","title":"MessageSend"},"MessagesHide":{"properties":{"message_ids":{"items":{"type":"string"},"type":"array","maxItems":100,"minItems":1,"title":"Message Ids","description":"Message ids to hide for yourself (max 100)."}},"additionalProperties":false,"type":"object","required":["message_ids"],"title":"MessagesHide"},"MuteIn":{"properties":{"minutes":{"anyOf":[{"type":"integer","maximum":10000000.0,"minimum":1.0},{"type":"null"}],"title":"Minutes","description":"Mute for N minutes. Omit to mute until you unmute."}},"type":"object","title":"MuteIn"},"NoteCreate":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title","description":"Note title (1-200 characters)."},"body_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Html","description":"Note body as HTML. Sanitized by the server; the response `body_html` is the stored (safe) version."}},"type":"object","required":["title"],"title":"NoteCreate"},"NoteUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Title","description":"New title (1-200 characters)."},"body_html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Html","description":"New body HTML (empty string clears it)."}},"type":"object","title":"NoteUpdate"},"OverviewDays":{"type":"integer","enum":[7,30,90],"title":"OverviewDays","description":"Rolling windows accepted by the admin overview."},"PocketCreate":{"properties":{"slug":{"type":"string","maxLength":48,"minLength":1,"title":"Slug","description":"Permanent handle (`@slug`): lower-case letters, digits and `-`. Must match `slug` in the bundle's `pocket.json`. 409 `slug_taken` if used."},"name":{"type":"string","minLength":1,"title":"Name","description":"Display name, 1-30 characters."},"short_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Description","description":"One-line tagline, up to 30 characters."},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category","description":"Category key, e.g. `productivity`, `utilities`, `finance`."},"locales":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Locales","description":"Languages the Pocket supports, e.g. `[\"en\", \"vi\"]`."},"regions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Regions","description":"ISO-3166 alpha-2 country codes where it is listed, or `[\"*\"]` for worldwide."},"platforms":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Platforms","description":"`web`, `ios`, `ipad`, `android`, `macos`, `windows`, `linux`, or `[\"*\"]` for all."}},"additionalProperties":true,"type":"object","required":["slug","name"],"title":"PocketCreate"},"PocketLocaleText":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Name in this language, up to 30 characters."},"short_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Description","description":"Tagline in this language, up to 30 characters."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Long description in this language, up to 4000 characters."}},"additionalProperties":true,"type":"object","title":"PocketLocaleText"},"PocketUpdate":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Display name, 1-30 characters (required)."},"short_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Short Description","description":"One-line tagline, up to 30 characters (required)."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Long description (multi-line)."},"i18n":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/PocketLocaleText"},"type":"object"},{"type":"null"}],"title":"I18N","description":"Name and descriptions per language, `{locale: {name, short_description, description}}`. `name`, `short_description` and `description` above are the base language (`base_locale` = first of `locales`); keys here must be in the Pocket's `locales`. Sends the FULL set: a language you leave out loses its translation, `null` or `{}` clears them all; empty strings fall back to the base language. Once the Pocket has an approved version this goes to the draft. 400 `invalid_input` with `field` `i18n.<locale>.<key>` and `reason` (`unknown_locale`, `too_long`…)."},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category","description":"Category key (required), e.g. `productivity`, `utilities`, `finance`, `travel`, `developer_tools`, `other`."},"support_email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Support Email","description":"Support email (required)."},"privacy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Privacy Url","description":"Privacy policy URL, `https://` only (required). Empty or null clears it."},"env":{"anyOf":[{"type":"string","enum":["sandbox","production"]},{"type":"null"}],"title":"Env","description":"`production` serves the approved live version to everyone (needs a live version and an active maintenance fee — 402 `maintenance_required` otherwise); `sandbox` shows your latest upload to you only."},"locales":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Locales","description":"Languages the Pocket supports (at least one)."},"regions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Regions","description":"ISO-3166 alpha-2 country codes, or `[\"*\"]` for worldwide (at least one)."},"platforms":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Platforms","description":"Platforms it runs on, or `[\"*\"]` for all (at least one)."},"permissions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Permissions","description":"Permissions the Pocket asks users for: `user.profile`, `conversation.pick`, `conversation.send`, `share`, `open_url`, `user.phone`, `user.birthday`, `user.gender`, `user.address`, `user.company`, `user.website`, `user.locale_country`. Overrides the list in `pocket.json`."},"permission_reasons":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Permission Reasons","description":"Why each permission is needed, `{permission: reason}`. Every sensitive `user.*` permission except `user.profile` needs a reason of 10-80 characters."}},"additionalProperties":true,"type":"object","title":"PocketUpdate"},"PollCreate":{"properties":{"question":{"type":"string","maxLength":300,"minLength":1,"title":"Question","description":"Poll question (1-300 characters)."},"options":{"items":{"type":"string","maxLength":100,"minLength":1},"type":"array","maxItems":10,"minItems":2,"title":"Options","description":"2-10 distinct option texts (1-100 characters each). Option ids are assigned o1, o2, …"},"multiple":{"type":"boolean","title":"Multiple","description":"Allow choosing more than one option.","default":false},"anonymous":{"type":"boolean","title":"Anonymous","description":"Hide who voted for which option.","default":false},"closes_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Closes At","description":"Auto-close time, ISO 8601 (no offset = UTC), between 1 minute and 365 days from now. Null = no deadline."},"allow_add":{"type":"boolean","title":"Allow Add","description":"Let every member add new options.","default":false}},"type":"object","required":["question","options"],"title":"PollCreate"},"PollOptionAdd":{"properties":{"text":{"type":"string","maxLength":100,"minLength":1,"title":"Text","description":"New option text (1-100 characters, must not duplicate an existing option)."}},"type":"object","required":["text"],"title":"PollOptionAdd"},"PollVote":{"properties":{"option_ids":{"items":{"type":"string"},"type":"array","title":"Option Ids","description":"Option ids to vote for (e.g. [\"o1\"]). Replaces your previous vote; an empty list withdraws it. Single-choice polls accept at most one id."}},"type":"object","title":"PollVote"},"PrimaryWorkspaceIn":{"properties":{"workspace":{"type":"string","maxLength":120,"minLength":1,"title":"Workspace","description":"Slug of the business workspace whose wallet pays for your Chat usage. Must be one of `choices` from `GET /business`."}},"type":"object","required":["workspace"],"title":"PrimaryWorkspaceIn"},"ProfileUpdate":{"properties":{"full_name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Full Name","description":"Display name. Cannot be empty."},"phone":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Phone","description":"Free-form phone number (trimmed to 32 chars). null or \"\" clears it."},"zalo":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Zalo","description":"Zalo phone or link. null or \"\" clears it."},"whatsapp":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Whatsapp","description":"WhatsApp number or link. null or \"\" clears it."},"website":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Website","description":"Website URL. null or \"\" clears it."},"company":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Company","description":"Company name (up to 120 chars kept)."},"job_title":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Job Title","description":"Job title (up to 80 chars kept)."},"country":{"anyOf":[{"type":"string","maxLength":2},{"type":"null"}],"title":"Country","description":"ISO 3166-1 alpha-2 country code, e.g. \"VN\". null or \"\" clears it."},"city":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"City","description":"City (up to 120 chars kept)."},"birthday":{"anyOf":[{"type":"string","maxLength":10},{"type":"null"}],"title":"Birthday","description":"Date YYYY-MM-DD between 1900-01-01 and today. null or \"\" clears it."},"gender":{"anyOf":[{"type":"string","enum":["male","female","other",""]},{"type":"null"}],"title":"Gender","description":"male | female | other. null or \"\" clears it."}},"additionalProperties":false,"type":"object","title":"ProfileUpdate"},"QuickReplyCreate":{"properties":{"keyword":{"type":"string","maxLength":40,"minLength":1,"title":"Keyword","description":"Shortcut typed after `/`. Lower-cased; letters, digits, `_` and `-`, 1-32 characters. Must be unique for you."},"body":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Body","description":"Text inserted by the shortcut (1-4000 characters). May be empty only when `file_ids` is not empty."},"file_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"File Ids","description":"IDs of quick files from `upload_quick_file` to attach, in order."}},"additionalProperties":false,"type":"object","required":["keyword"],"title":"QuickReplyCreate"},"QuickReplyUpdate":{"properties":{"keyword":{"anyOf":[{"type":"string","maxLength":40,"minLength":1},{"type":"null"}],"title":"Keyword","description":"New shortcut keyword (same rules as create)."},"body":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Body","description":"New text. Empty is allowed only if files remain."},"file_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"File Ids","description":"Full list of attached quick file IDs. Files no longer listed are deleted. Omit to keep the current files."}},"additionalProperties":false,"type":"object","title":"QuickReplyUpdate"},"ReadIn":{"properties":{"message_id":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Message Id","description":"Last message you have read. Omit to mark everything up to the latest message."}},"type":"object","title":"ReadIn"},"ReminderCreate":{"properties":{"title":{"type":"string","maxLength":200,"minLength":1,"title":"Title","description":"Reminder text (1-200 characters)."},"send_at":{"type":"string","title":"Send At","description":"First fire time, ISO 8601 (no offset = UTC), between 1 minute and 365 days from now."},"repeat":{"type":"string","enum":["none","daily","weekdays","weekly","monthly"],"title":"Repeat","description":"Repeat rule.","default":"none"},"ping_all":{"type":"boolean","title":"Ping All","description":"Mention everyone in the conversation when it fires.","default":true}},"type":"object","required":["title","send_at"],"title":"ReminderCreate"},"ReminderUpdate":{"properties":{"title":{"anyOf":[{"type":"string","maxLength":200,"minLength":1},{"type":"null"}],"title":"Title","description":"New reminder text."},"send_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Send At","description":"New next fire time, ISO 8601 (no offset = UTC)."},"repeat":{"anyOf":[{"type":"string","enum":["none","daily","weekdays","weekly","monthly"]},{"type":"null"}],"title":"Repeat","description":"New repeat rule."},"ping_all":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ping All","description":"Mention everyone when it fires."}},"type":"object","title":"ReminderUpdate"},"RewriteIn":{"properties":{"conversation_id":{"type":"string","maxLength":32,"title":"Conversation Id","description":"Conversation whose effective style and wallet are used."},"text":{"type":"string","maxLength":8000,"minLength":1,"title":"Text","description":"Text to rewrite."}},"type":"object","required":["conversation_id","text"],"title":"RewriteIn"},"RewriteStyle":{"properties":{"tone":{"anyOf":[{"type":"string","maxLength":300},{"type":"null"}],"title":"Tone","description":"Tone of voice."},"target_lang":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Target Lang","description":"Target language code; empty = keep."},"keep_emoji":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Keep Emoji","description":"Keep emoji when rewriting."},"instructions":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Instructions","description":"Free-form rewrite instructions."},"model":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"title":"Model","description":"`auto` or `provider[:model_id]` (openai, claude, gemini). See list_ai_models."},"base_template_id":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Base Template Id","description":"System template this style starts from."}},"type":"object","title":"RewriteStyle"},"RewriteTestIn":{"properties":{"text":{"type":"string","maxLength":8000,"minLength":1,"title":"Text","description":"Sample text."},"conversation_id":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Conversation Id","description":"Wallet of this conversation; omitted = your personal wallet."},"template_id":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Template Id","description":"Template to try."},"set_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Set Id","description":"Style set to try."},"style":{"anyOf":[{"$ref":"#/components/schemas/RewriteStyle"},{"type":"null"}],"description":"Unsaved overrides to try."},"base_template_id":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Base Template Id","description":"Base template."}},"type":"object","required":["text"],"title":"RewriteTestIn"},"ScheduledMessageCreate":{"properties":{"text":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Text","description":"Plain-text message (1-4000 characters). Required unless `html` is given."},"html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html","description":"Rich-text message as HTML (sanitized). When present the plain text is derived from it."},"send_at":{"type":"string","title":"Send At","description":"Send time, ISO 8601 (no offset = UTC), between 1 minute and 365 days from now."},"reply_to":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reply To","description":"Id of a message in this conversation to reply to."},"mentions":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Mentions","description":"User ids to mention (members only)."},"thread_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Thread Only","description":"Post only inside the reply thread (requires `reply_to`)."}},"type":"object","required":["send_at"],"title":"ScheduledMessageCreate"},"ScheduledMessageUpdate":{"properties":{"text":{"anyOf":[{"type":"string","maxLength":4000},{"type":"null"}],"title":"Text","description":"New plain text."},"html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html","description":"New rich-text HTML (sanitized)."},"send_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Send At","description":"New send time, ISO 8601 (no offset = UTC)."}},"type":"object","title":"ScheduledMessageUpdate"},"SettingsUpdate":{"properties":{"privacy":{"anyOf":[{"type":"string","enum":["private","public"]},{"type":"null"}],"title":"Privacy","description":"Profile privacy: private (contacts only) or public."},"theme":{"anyOf":[{"$ref":"#/components/schemas/ThemeUpdate"},{"type":"null"}],"description":"Appearance; merged into the current theme."},"show_online":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Show Online","description":"Show your online status to others."},"handle":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Handle","description":"Chat ID (\"@abc\" or \"abc\", normalized). null or \"\" removes it. At most 10 changes per hour."},"email_visible":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Email Visible","description":"Let others see your email."},"read_receipts":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Read Receipts","description":"Send read receipts."},"allow_group_add":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Allow Group Add","description":"false = nobody can add you to a group directly; they must send an invite link."},"prefs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Prefs","description":"App preferences, shallow-merged into the stored ones (e.g. quick_emoji, react_set, enter_send, ai_auto_send, translate, contact_groups, device_sync)."}},"additionalProperties":false,"type":"object","title":"SettingsUpdate"},"StickerPackCreate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Name","description":"Pack name (1-40 characters). Empty → `MY<n>`."}},"additionalProperties":false,"type":"object","title":"StickerPackCreate"},"StickerPackUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":40,"minLength":1},{"type":"null"}],"title":"Name","description":"New pack name (1-40 characters)."},"sort":{"anyOf":[{"type":"integer","maximum":1000000000.0,"minimum":-1000000000.0},{"type":"null"}],"title":"Sort","description":"Sort position; lower comes first."}},"additionalProperties":false,"type":"object","title":"StickerPackUpdate"},"StickerPreferencesUpdate":{"properties":{"hidden_packs":{"items":{"type":"string"},"type":"array","title":"Hidden Packs","description":"System sticker pack names to hide (from `list_system_sticker_packs`). Unknown names are ignored. Send `[]` to show all."}},"additionalProperties":false,"type":"object","required":["hidden_packs"],"title":"StickerPreferencesUpdate"},"StylePrefsUpdate":{"properties":{"scope":{"type":"string","enum":["conversation","default"],"title":"Scope","description":"`conversation` = this conversation only; `default` = your personal default for every conversation.","default":"conversation"},"conversation_id":{"anyOf":[{"type":"string","maxLength":32},{"type":"null"}],"title":"Conversation Id","description":"Required when scope is conversation."},"template_id":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Template Id","description":"System template id (see templates in get_ai_style_prefs) or `custom`."},"set_id":{"anyOf":[{"type":"integer","minimum":1.0},{"type":"null"}],"title":"Set Id","description":"Use one of your style sets instead."},"style":{"anyOf":[{"$ref":"#/components/schemas/RewriteStyle"},{"type":"null"}],"description":"Overrides on top of the template."},"rewrite_on":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Rewrite On","description":"Rewrite outgoing messages automatically."}},"type":"object","title":"StylePrefsUpdate"},"StyleSetCreate":{"properties":{"name":{"type":"string","maxLength":80,"minLength":1,"title":"Name","description":"Style set name."},"style":{"anyOf":[{"$ref":"#/components/schemas/RewriteStyle"},{"type":"null"}],"description":"Style of the set."},"base_template_id":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Base Template Id","description":"Start from this system template."}},"type":"object","required":["name"],"title":"StyleSetCreate"},"StyleSetUpdate":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":80,"minLength":1},{"type":"null"}],"title":"Name","description":"New name."},"style":{"anyOf":[{"$ref":"#/components/schemas/RewriteStyle"},{"type":"null"}],"description":"Keys to change (partial)."},"base_template_id":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Base Template Id","description":"Change the base system template."}},"type":"object","title":"StyleSetUpdate"},"ThemeUpdate":{"properties":{"theme":{"anyOf":[{"type":"string","enum":["light","dark"]},{"type":"null"}],"title":"Theme","description":"Color mode."},"accent":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Accent","description":"Accent color: black, blue, green, purple, orange, pink, teal, cyan, amber, rose, indigo, slate, or a custom hex \"#RRGGBB\"."},"wallpaper":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Wallpaper","description":"Chat wallpaper: {\"global\": \"wp-01\" | null, \"per_conv\": {\"<conversation_id>\": \"<wallpaper>\"}, \"tint\": ...}. Keys you omit are kept."}},"additionalProperties":false,"type":"object","title":"ThemeUpdate"},"TranscriptLine":{"properties":{"who":{"type":"string","maxLength":80,"title":"Who","description":"Speaker display name.","default":""},"text":{"type":"string","title":"Text","description":"What was said (one caption line)."},"lang":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Lang","description":"Language code of the line."},"t":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"T","description":"Seconds from call start (optional)."}},"type":"object","required":["text"],"title":"TranscriptLine"},"TransferIn":{"properties":{"user_id":{"type":"integer","minimum":1.0,"title":"User Id","description":"Current member who becomes the new owner. You become an admin."}},"type":"object","required":["user_id"],"title":"TransferIn"},"TranslateIn":{"properties":{"message_ids":{"items":{"type":"string"},"type":"array","maxItems":40,"minItems":1,"title":"Message Ids","description":"Message ids to translate (max 40)."},"lang":{"type":"string","maxLength":16,"minLength":2,"title":"Lang","description":"Target language code."}},"type":"object","required":["message_ids","lang"],"title":"TranslateIn"},"UserReport":{"properties":{"reason":{"type":"string","enum":["spam","harassment","impersonation","inappropriate","other"],"title":"Reason","description":"Report reason."},"note":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Note","description":"Free-text details (max 500).","default":""},"message_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","maxItems":20},{"type":"null"}],"title":"Message Ids","description":"Up to 20 message ids as evidence (only messages you can see count)."},"workspace":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}],"title":"Workspace","description":"Workspace slug the report relates to."}},"type":"object","required":["reason"],"title":"UserReport"},"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"},"WorkspaceOnly":{"properties":{"workspace":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"title":"Workspace","description":"Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet)."}},"type":"object","title":"WorkspaceOnly"},"orova__routers__api_chat_v1_account__TranslationSettingsUpdate":{"properties":{"auto":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto","description":"Auto-translate incoming messages by default."},"lang":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Lang","description":"Target language code, e.g. \"en\", \"vi\", \"zh-TW\". \"\" = your interface language."},"old":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Old","description":"Also translate messages received before auto-translate was turned on."}},"additionalProperties":false,"type":"object","title":"TranslationSettingsUpdate"},"orova__routers__api_chat_v1_ai__TranslationSettingsUpdate":{"properties":{"auto":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Auto","description":"Translate new messages automatically."},"lang":{"anyOf":[{"type":"string","maxLength":16},{"type":"null"}],"title":"Lang","description":"Target language; empty = interface language."},"old":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Old","description":"Also translate older messages."}},"type":"object","title":"TranslationSettingsUpdate"},"Error":{"title":"Error","type":"object","required":["error","message"],"properties":{"error":{"type":"string","description":"snake_case error code"},"message":{"type":"string"},"retry_after":{"type":"integer","description":"Seconds (429 only)"}}},"InvalidRequestError":{"title":"InvalidRequestError","type":"object","required":["error","message","details"],"properties":{"error":{"type":"string","enum":["invalid_request"]},"message":{"type":"string"},"details":{"type":"array","items":{"type":"object","required":["field","issue"],"properties":{"field":{"type":"string"},"issue":{"type":"string"},"message":{"type":"string"}}}}}}},"securitySchemes":{"ApiKey":{"type":"apiKey","in":"header","name":"X-Api-Key","description":"API Key `ock_…` (send together with X-Api-Secret)."},"ApiSecret":{"type":"apiKey","in":"header","name":"X-Api-Secret","description":"Secret Key `ocs_…` (shown once when the key is created)."},"Bearer":{"type":"http","scheme":"bearer","description":"`ock_…:ocs_…`, legacy key `ocht_…`, or OAuth access token `ocha_…`."}}},"security":[{"ApiKey":[],"ApiSecret":[]},{"Bearer":[]}]}