Account23
GET
/me
get_me
Get my profile
Return the account behind this key: id, email, name, Chat ID (handle), avatar, profile fields, locale and the workspaces you belong to.
profile:read
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/me" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
PATCH
/me
update_me
Update my profile
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.
profile:write
Bodyapplication/json
| Field | Type | Required | Description |
full_name | string | | Display name. Cannot be empty. |
phone | string | | Free-form phone number (trimmed to 32 chars). null or "" clears it. |
zalo | string | | Zalo phone or link. null or "" clears it. |
whatsapp | string | | WhatsApp number or link. null or "" clears it. |
website | string | | Website URL. null or "" clears it. |
company | string | | Company name (up to 120 chars kept). |
job_title | string | | Job title (up to 80 chars kept). |
country | string | | ISO 3166-1 alpha-2 country code, e.g. "VN". null or "" clears it. |
city | string | | City (up to 120 chars kept). |
birthday | string | | Date YYYY-MM-DD between 1900-01-01 and today. null or "" clears it. |
gender | string | | male | female | other. null or "" clears it. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X PATCH "https://chat.orova.vn/api/chat/v1/me" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"full_name": "…", "phone": "…", "zalo": "…"}'
GET
/me/qr
get_my_qr
Get my QR code
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.
profile:read
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/me/qr" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/settings
get_settings
Get my settings
Return privacy, theme, online status, Chat ID, email visibility, read receipts, group-add permission and app preferences.
settings:read
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/settings" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
PATCH
/settings
update_settings
Update my settings
Change only the settings you send; theme and prefs are merged into the current values. Returns all settings. Changes sync to your other devices.
settings:write
Bodyapplication/json
| Field | Type | Required | Description |
privacy | string | | Profile privacy: private (contacts only) or public. |
theme | object | | Appearance; merged into the current theme. |
show_online | boolean | | Show your online status to others. |
handle | string | | Chat ID ("@abc" or "abc", normalized). null or "" removes it. At most 10 changes per hour. |
email_visible | boolean | | Let others see your email. |
read_receipts | boolean | | Send read receipts. |
allow_group_add | boolean | | false = nobody can add you to a group directly; they must send an invite link. |
prefs | object | | App preferences, shallow-merged into the stored ones (e.g. quick_emoji, react_set, enter_send, ai_auto_send, translate, contact_groups, device_sync). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X PATCH "https://chat.orova.vn/api/chat/v1/settings" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"privacy": "…", "theme": {}, "show_online": false}'
GET
/settings/translation
get_translation_settings
Get default translation settings
Return your account-wide auto-translate default (auto, lang, old), the supported languages and your interface language.
settings:read
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/settings/translation" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
PATCH
/settings/translation
update_translation_settings
Update default translation settings
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.
settings:write
Bodyapplication/json
| Field | Type | Required | Description |
auto | boolean | | Auto-translate incoming messages by default. |
lang | string | | Target language code, e.g. "en", "vi", "zh-TW". "" = your interface language. |
old | boolean | | Also translate messages received before auto-translate was turned on. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X PATCH "https://chat.orova.vn/api/chat/v1/settings/translation" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"auto": false, "lang": "…", "old": false}'
GET
/me/deletion
get_account_deletion_policy
Get account deletion policy
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.
account:delete
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/me/deletion" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/me/deletion/request
request_account_deletion
Start account deletion (email a code)
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.
account:deleteIdempotency-Key
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/me/deletion/request" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Idempotency-Key: <uuid>"
POST
/me/deletion/confirm
confirm_account_deletion
Confirm account deletion
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.
account:delete
Bodyapplication/json
| Field | Type | Required | Description |
otp | string | ✓ | The 6-digit code emailed to the user by request_account_deletion. Ask the user for it; never guess. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/me/deletion/confirm" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"otp": "…"}'
GET
/devices
list_devices
List signed-in devices
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.
devices:read
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/devices" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
DELETE
/devices/{device_id}
revoke_device
Sign out a device
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.
devices:write
Parameters
| Name | In | Required | Type | Description |
device_id | path | ✓ | string | `device_id` from `GET /devices`. |
Responses
| Status | Description |
204 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X DELETE "https://chat.orova.vn/api/chat/v1/devices/{device_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/wallet
get_wallet
Get personal wallet
Quota balance of your personal wallet and the page where you can top it up. Payments are not available through the API.
wallet:read
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/wallet" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/business
get_business
Get business account link
Whether your Chat account is linked to a business workspace, which workspace pays for usage (`workspace`), and the workspaces you can choose from (`choices`).
business:read
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/business" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
PUT
/business/primary_workspace
set_primary_workspace
Set the paying workspace
Switches which linked business workspace pays for your Chat usage. The slug must be one of `choices` from `GET /business`; otherwise 400 `not_allowed`.
business:write
Bodyapplication/json
| Field | Type | Required | Description |
workspace | string | ✓ | Slug of the business workspace whose wallet pays for your Chat usage. Must be one of `choices` from `GET /business`. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X PUT "https://chat.orova.vn/api/chat/v1/business/primary_workspace" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"workspace": "…"}'
GET
/presence
get_presence
Get presence
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.
profile:read
Parameters
| Name | In | Required | Type | Description |
user_ids | query | ✓ | string | Comma-separated user ids, at most 200 (extra ids are ignored). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/presence?user_ids=..." \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/events
stream_events
Stream real-time events (SSE)
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.
events:read
Parameters
| Name | In | Required | Type | Description |
label | query | | string | Label shown for this API connection in the Pocket console. |
Responses
| Status | Description |
200 | `text/event-stream` |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/events" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/workspaces/{slug}/directory
list_workspace_directory
List workspace directory
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).
contacts:read
Parameters
| Name | In | Required | Type | Description |
slug | path | ✓ | string | Workspace slug (as in `https://orova.vn/u/workspaces/<slug>`). |
q | query | | string | Search name, email or phone (accent-insensitive). |
department_id | query | | integer | Only this department and its sub-departments. |
online | query | | boolean | true = online only, false = offline only. |
limit | query | | integer | Page size: 25, 50, 100 or 250. Default: `50`. |
cursor | query | | string | `next_cursor` from the previous page. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/workspaces/{slug}/directory?limit=20" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/workspaces/{slug}/admin/overview
get_workspace_chat_overview
Workspace chat activity overview
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.
workspace_admin:read
Parameters
| Name | In | Required | Type | Description |
slug | path | ✓ | string | Workspace slug (as in `https://orova.vn/u/workspaces/<slug>`). |
days | query | | integer | 7, 30 or 90 (default 30). Ignored when `from`/`to` are set. |
from | query | | string (date) | Start date YYYY-MM-DD. |
to | query | | string (date) | End date YYYY-MM-DD (inclusive). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/workspaces/{slug}/admin/overview" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/workspaces/{slug}/admin/groups
list_workspace_chat_groups
List workspace chat groups
Groups of the workspace with member and message counts. No message content. Requires being the workspace owner or having the `chat.manage` permission.
workspace_admin:read
Parameters
| Name | In | Required | Type | Description |
slug | path | ✓ | string | Workspace slug (as in `https://orova.vn/u/workspaces/<slug>`). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/workspaces/{slug}/admin/groups" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/workspaces/{slug}/admin/direct
list_workspace_direct_chats
List workspace direct chats
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.
workspace_admin:read
Parameters
| Name | In | Required | Type | Description |
slug | path | ✓ | string | Workspace slug (as in `https://orova.vn/u/workspaces/<slug>`). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/workspaces/{slug}/admin/direct" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/workspaces/{slug}/admin/audit
list_workspace_chat_audit
List workspace chat admin audit log
Most recent admin actions (exports, direct-chat views, overview views), newest first. Requires being the workspace owner or having the `chat.manage` permission.
workspace_admin:read
Parameters
| Name | In | Required | Type | Description |
slug | path | ✓ | string | Workspace slug (as in `https://orova.vn/u/workspaces/<slug>`). |
limit | query | | integer | Max entries (1-500). Default: `100`. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/workspaces/{slug}/admin/audit?limit=20" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/workspaces/{slug}/admin/export
export_workspace_conversation
Export a workspace conversation (DANGEROUS)
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.
workspace_admin:read
Parameters
| Name | In | Required | Type | Description |
slug | path | ✓ | string | Workspace slug (as in `https://orova.vn/u/workspaces/<slug>`). |
conversation_id | query | ✓ | string | Conversation `id` (from `list_workspace_chat_groups` or `list_workspace_direct_chats`). |
format | query | | string | `json` or `csv`. Default: `json`. |
from | query | | string (date) | Start date YYYY-MM-DD. |
to | query | | string (date) | End date YYYY-MM-DD (inclusive). |
Responses
| Status | Description |
200 | File download |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/workspaces/{slug}/admin/export?conversation_id=..." \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
Contacts19
GET
/contacts
list_contacts
List contacts
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).
contacts:read
Parameters
| Name | In | Required | Type | Description |
q | query | | string | Filter by name, email or handle. |
limit | query | | integer | Max items per page. Default: `100`. |
cursor | query | | string | `next_cursor` from the previous page. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/contacts?limit=20" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/contacts
send_contact_request
Send a contact request
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.
contacts:write
Bodyapplication/json
| Field | Type | Required | Description |
user_id | integer | | Invite by user id. |
handle | string | | Invite by Chat ID (with or without `@`). |
email | string | | Invite by exact email address. |
tag | string | | Contact group to file this person under. |
message | string | | Short note shown with the request. |
Responses
| Status | Description |
201 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/contacts" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"user_id": 0, "handle": "…", "email": "…"}'
GET
/contacts/blocked
list_blocked_contacts
List blocked users
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).
contacts:read
Parameters
| Name | In | Required | Type | Description |
q | query | | string | Filter by name/email/handle. |
limit | query | | integer | Max items per page. Default: `100`. |
cursor | query | | string | `next_cursor` from the previous page. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/contacts/blocked?limit=20" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/contacts/requests/incoming
list_incoming_contact_requests
List incoming contact requests
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).
contacts:read
Parameters
| Name | In | Required | Type | Description |
limit | query | | integer | Max items per page. Default: `100`. |
cursor | query | | string | `next_cursor` from the previous page. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/contacts/requests/incoming?limit=20" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/contacts/requests/outgoing
list_outgoing_contact_requests
List outgoing contact requests
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).
contacts:read
Parameters
| Name | In | Required | Type | Description |
limit | query | | integer | Max items per page. Default: `100`. |
cursor | query | | string | `next_cursor` from the previous page. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/contacts/requests/outgoing?limit=20" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/contacts/suggestions
list_contact_suggestions
List contact suggestions
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).
contacts:read
Parameters
| Name | In | Required | Type | Description |
q | query | | string | Filter by name/email/handle. |
mode | query | | string | `personal` = group-chat members only; `workspace` = include workspace colleagues. Default follows the key's scope. |
workspace | query | | string | Workspace slug. |
limit | query | | integer | Max items per page. Default: `100`. |
cursor | query | | string | `next_cursor` from the previous page. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/contacts/suggestions?limit=20" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/contacts/{user_id}/accept
accept_contact_request
Accept a contact request
Accept the pending request from `user_id`. Optional body files the new contact under a group.
contacts:write
Parameters
| Name | In | Required | Type | Description |
user_id | path | ✓ | integer | Numeric user id (`user_id` in contact/user objects). |
Bodyapplication/json
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/contacts/{user_id}/accept" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{}'
POST
/contacts/{user_id}/decline
decline_contact_request
Decline a contact request
Decline the pending request from `user_id`.
contacts:write
Parameters
| Name | In | Required | Type | Description |
user_id | path | ✓ | integer | Numeric user id (`user_id` in contact/user objects). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/contacts/{user_id}/decline" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/contacts/{user_id}/block
block_user
Block a user
Block `user_id`: they can no longer message, call or find you.
contacts:write
Parameters
| Name | In | Required | Type | Description |
user_id | path | ✓ | integer | Numeric user id (`user_id` in contact/user objects). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/contacts/{user_id}/block" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/contacts/{user_id}/unblock
unblock_user
Unblock a user
Remove `user_id` from your blocked list.
contacts:write
Parameters
| Name | In | Required | Type | Description |
user_id | path | ✓ | integer | Numeric user id (`user_id` in contact/user objects). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/contacts/{user_id}/unblock" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/contacts/{user_id}/remove
remove_contact
Remove a contact
Remove `user_id` from your contacts (also cancels a pending request).
contacts:write
Parameters
| Name | In | Required | Type | Description |
user_id | path | ✓ | integer | Numeric user id (`user_id` in contact/user objects). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/contacts/{user_id}/remove" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
PUT
/contacts/{user_id}/tag
set_contact_tag
Set a contact's group
Put contact `user_id` in a group (`tag`), or remove the group with `null`.
contacts:write
Parameters
| Name | In | Required | Type | Description |
user_id | path | ✓ | integer | Numeric user id (`user_id` in contact/user objects). |
Bodyapplication/json
| Field | Type | Required | Description |
tag | string | ✓ | Group name (1-24 chars); `null` removes the group. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X PUT "https://chat.orova.vn/api/chat/v1/contacts/{user_id}/tag" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"tag": "…"}'
GET
/contact_tags
list_contact_tags
List contact groups
Your contact groups with the number of contacts in each (empty groups included).
contacts:read
Parameters
| Name | In | Required | Type | Description |
limit | query | | integer | Max items per page. Default: `100`. |
cursor | query | | string | `next_cursor` from the previous page. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/contact_tags?limit=20" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/contact_tags
create_contact_tag
Create a contact group
Create an empty contact group. `409 tag_exists` if the name is taken (case-insensitive).
contacts:write
Bodyapplication/json
| Field | Type | Required | Description |
name | string | ✓ | Group name (1-24 chars). |
Responses
| Status | Description |
201 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/contact_tags" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"name": "…"}'
DELETE
/contact_tags/{tag}
delete_contact_tag
Delete a contact group
Delete group `tag` (URL-encoded). Contacts stay; only the group is removed from them.
contacts:write
Parameters
| Name | In | Required | Type | Description |
tag | path | ✓ | string | Group name to delete. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X DELETE "https://chat.orova.vn/api/chat/v1/contact_tags/{tag}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
PATCH
/contact_tags/{tag}
rename_contact_tag
Rename a contact group
Rename group `tag` (URL-encoded) on every contact that has it.
contacts:write
Parameters
| Name | In | Required | Type | Description |
tag | path | ✓ | string | Current group name. |
Bodyapplication/json
| Field | Type | Required | Description |
name | string | ✓ | New group name (1-24 chars). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X PATCH "https://chat.orova.vn/api/chat/v1/contact_tags/{tag}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"name": "…"}'
GET
/users/search
search_users
Find a user
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).
profile:read
Parameters
| Name | In | Required | Type | Description |
q | query | ✓ | string | Exact email or Chat ID (`abc` or `@abc`). |
email_privacy | query | | boolean | Match an email only when its owner made it visible (ignore shared-workspace exception). Default: `false`. |
limit | query | | integer | Max items per page. Default: `100`. |
cursor | query | | string | `next_cursor` from the previous page. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/users/search?q=...&limit=20" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/users/{user_id}
get_user_profile
Get a user profile
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).
profile:read
Parameters
| Name | In | Required | Type | Description |
user_id | path | ✓ | integer | Numeric user id (`user_id` in contact/user objects). |
conversation_id | query | | string | Conversation you opened the profile from (applies the group's hidden-member rule). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/users/{user_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/users/{user_id}/report
report_user
Report a user
Report `user_id` to Orova moderation, optionally with up to 20 messages as evidence. Limited to 5 reports per hour.
contacts:write
Parameters
| Name | In | Required | Type | Description |
user_id | path | ✓ | integer | Numeric user id (`user_id` in contact/user objects). |
Bodyapplication/json
| Field | Type | Required | Description |
reason | string | ✓ | Report reason. One of: `spam`, `harassment`, `impersonation`, `inappropriate`, `other`. |
note | string | | Free-text details (max 500). |
message_ids | array<string> | | Up to 20 message ids as evidence (only messages you can see count). |
workspace | string | | Workspace slug the report relates to. |
Responses
| Status | Description |
201 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/users/{user_id}/report" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"reason": "…"}'
Conversations30
GET
/conversations
list_conversations
List conversations
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).
conversations:read
Parameters
| Name | In | Required | Type | Description |
q | query | | string | Search title / member name / email. |
workspace | query | | string | Workspace slug, or `personal`. |
archived | query | | boolean | List archived conversations instead. Default: `false`. |
updated_after | query | | string | Only conversations with a message after this ISO 8601 time. |
limit | query | | integer | Default: `50`. |
cursor | query | | string | `next_cursor` from the previous page. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/conversations?limit=20" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/conversations
create_conversation
Create or open a conversation
Opens the direct chat with a person (existing one is returned with 200), your self chat, or creates a new group (201).
conversations:write
Bodyapplication/json
| Field | Type | Required | Description |
kind | string | ✓ | `direct` (1:1 with `user_id`), `group` (with `user_ids`) or `self` (your own notes / My Cloud). |
user_id | integer | | Other person (kind=direct). |
user_ids | array<integer> | | Initial members (kind=group), excluding yourself. |
title | string | | Group name (kind=group, max 50 characters). |
workspace | string | | Workspace slug to create it in; omit for your personal space. |
Responses
| Status | Description |
201 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"kind": "…"}'
GET
/conversations/{conversation_id}
get_conversation
Get a conversation
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).
conversations:read
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
PATCH
/conversations/{conversation_id}
update_conversation
Update a group
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.
conversations:write
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
Bodyapplication/json
| Field | Type | Required | Description |
title | string | | New group name (max 50 characters); empty or null clears it. |
avatar_file_id | string | | File id of an image uploaded with purpose `avatar` for this conversation. |
invite_link_enabled | boolean | | Allow joining by invite link / QR. |
only_admins_post | boolean | | Only owner/admins can send messages. |
members_can_invite | boolean | | Regular members can add people and share the link. |
members_can_edit_info | boolean | | Regular members can change name and photo. |
hide_member_profiles | boolean | | Members only see each other's name and photo. |
join_approval | boolean | | Joining by link needs approval from an owner/admin. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X PATCH "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"title": "…", "avatar_file_id": "…", "invite_link_enabled": false}'
POST
/conversations/{conversation_id}/mute
mute_conversation
Mute a conversation
Stop notifications for N minutes, or until you unmute.
conversations:write
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
Bodyapplication/json
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/mute" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{}'
POST
/conversations/{conversation_id}/unmute
unmute_conversation
Unmute a conversation
Turn notifications back on.
conversations:write
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/unmute" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/conversations/{conversation_id}/pin
pin_conversation
Pin a conversation
Keep it at the top of your list. Pinning an archived conversation unarchives it. No-op if already pinned.
conversations:write
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/pin" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/conversations/{conversation_id}/unpin
unpin_conversation
Unpin a conversation
No-op if not pinned.
conversations:write
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/unpin" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/conversations/{conversation_id}/archive
archive_conversation
Archive a conversation
Move it out of the main list (only for you). Archiving unpins it.
conversations:write
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/archive" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/conversations/{conversation_id}/unarchive
unarchive_conversation
Unarchive a conversation
Bring it back to the main list.
conversations:write
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/unarchive" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/conversations/{conversation_id}/leave
leave_conversation
Leave a conversation
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.
conversations:write
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
Bodyapplication/json
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/leave" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{}'
POST
/conversations/{conversation_id}/read
mark_conversation_read
Mark as read
Mark messages as read up to `message_id` (default: the latest message). Others see it unless you turned read receipts off.
conversations:write
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
Bodyapplication/json
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/read" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{}'
POST
/conversations/{conversation_id}/clear
clear_conversation
Clear history for yourself
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.
conversations:write
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/clear" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
PUT
/conversations/{conversation_id}/label
set_conversation_label
Set conversation label
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>`.
conversations:write
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
Bodyapplication/json
| Field | Type | Required | Description |
label_id | integer | ✓ | One of your labels (`GET /labels`), or null to clear. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X PUT "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/label" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"label_id": 0}'
GET
/conversations/{conversation_id}/members
list_conversation_members
List members
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).
conversations:read
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
limit | query | | integer | Default: `100`. |
cursor | query | | string | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/members?limit=20" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/conversations/{conversation_id}/members
add_conversation_members
Add members
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`.
conversations:write
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
Bodyapplication/json
| Field | Type | Required | Description |
user_ids | array<integer> | ✓ | People to add. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/members" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"user_ids": []}'
DELETE
/conversations/{conversation_id}/members/{user_id}
remove_conversation_member
Remove a member
Owner/admin removes someone from a group (only the owner can remove an admin). Use leave to remove yourself.
conversations:write
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
user_id | path | ✓ | integer | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X DELETE "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/members/{user_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/conversations/{conversation_id}/members/{user_id}/admin
add_conversation_admin
Make a member admin
Owner only. No-op if already an admin.
conversations:write
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
user_id | path | ✓ | integer | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/members/{user_id}/admin" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
DELETE
/conversations/{conversation_id}/members/{user_id}/admin
remove_conversation_admin
Remove admin role
Owner only. The person stays a regular member. No-op if not an admin.
conversations:write
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
user_id | path | ✓ | integer | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X DELETE "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/members/{user_id}/admin" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/conversations/{conversation_id}/transfer_ownership
transfer_conversation_ownership
Transfer group ownership
Owner only: hand the group to another current member; you become an admin.
conversations:write
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
Bodyapplication/json
| Field | Type | Required | Description |
user_id | integer | ✓ | Current member who becomes the new owner. You become an admin. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/transfer_ownership" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"user_id": 0}'
POST
/conversations/{conversation_id}/invite_link
create_invite_link
Get or renew the invite link
Returns the group's invite link (created on first use). `renew: true` (owner/admin) revokes the old link.
conversations:write
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
Bodyapplication/json
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/invite_link" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{}'
GET
/invites/{token}
get_invite
Preview an invite link
Group name, photo and member count behind an invite token, and your state: `ok`, `member`, `pending`, `disabled`, `no_access`.
conversations:read
Parameters
| Name | In | Required | Type | Description |
token | path | ✓ | string | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/invites/{token}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/invites/{token}
accept_invite
Join a group by invite
Join the group behind an invite token. Groups with join approval return `status: pending` until an owner/admin approves.
conversations:write
Parameters
| Name | In | Required | Type | Description |
token | path | ✓ | string | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/invites/{token}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/conversations/{conversation_id}/join_requests
list_join_requests
List join requests
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).
conversations:read
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/join_requests" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/conversations/{conversation_id}/join_requests/{request_id}/approve
approve_join_request
Approve a join request
Owner/admin: add the person to the group.
conversations:write
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
request_id | path | ✓ | integer | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/join_requests/{request_id}/approve" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/conversations/{conversation_id}/join_requests/{request_id}/reject
reject_join_request
Reject a join request
Owner/admin: decline. The person can request again via the link.
conversations:write
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
request_id | path | ✓ | integer | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/join_requests/{request_id}/reject" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/labels
list_labels
List your labels
Your private conversation labels in display order (5 defaults are created on first use).
conversations:read
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/labels" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/labels
create_label
Create a label
New private label with a preset or hex colour. 409 `duplicate` if the name exists.
conversations:write
Bodyapplication/json
| Field | Type | Required | Description |
name | string | ✓ | Label name (unique, case-insensitive). |
color | string | ✓ | Preset colour or hex `#RGB` / `#RRGGBB`. |
Responses
| Status | Description |
201 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/labels" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"name": "…", "color": "…"}'
DELETE
/labels/{label_id}
delete_label
Delete a label
Delete a label and remove it from all your conversations.
conversations:write
Parameters
| Name | In | Required | Type | Description |
label_id | path | ✓ | integer | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X DELETE "https://chat.orova.vn/api/chat/v1/labels/{label_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
PATCH
/labels/{label_id}
update_label
Update a label
Rename, recolour or reorder a label.
conversations:write
Parameters
| Name | In | Required | Type | Description |
label_id | path | ✓ | integer | |
Bodyapplication/json
| Field | Type | Required | Description |
name | string | | New name. |
color | string | | New colour (`#RRGGBB`). |
position | integer | | Sort position (0 = first). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X PATCH "https://chat.orova.vn/api/chat/v1/labels/{label_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"name": "…", "color": "…", "position": 0}'
Messages19
GET
/conversations/{conversation_id}/messages
list_messages
List messages in a conversation
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).
messages:read
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | Conversation id. |
before | query | | string | Return messages older than this message id. |
after | query | | string | Return messages newer than this message id. |
limit | query | | integer | Default: `50`. |
q | query | | string | Only messages containing this text. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/messages?limit=20" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/conversations/{conversation_id}/messages
send_message
Send a message
Send text, rich text, files, a voice note, a sticker or a contact card. Supports `Idempotency-Key`. Returns the created message.
messages:writeIdempotency-Key
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | Conversation id. |
Bodyapplication/json
| Field | Type | Required | Description |
text | string | | Plain text, up to 8000 characters (longer → 400 text_too_long). Ignored when `html` has content. |
html | string | | 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 | string | | Id of a message in this conversation to reply to. |
media | array<string> | | File ids from `POST /files` (purpose message, same conversation, not yet attached). |
kind | string | | Usually omitted (text or media is inferred). `voice` = all media are audio; `sticker` needs `sticker_id`; `contact` needs `contact_user_id`. |
mentions | array<integer> | | User ids to @mention (must be members; yourself is ignored). |
sticker_id | string | | Sticker id "<pack>:<id>" or "u:<id>" (kind sticker). |
contact_user_id | integer | | User id of the contact card to share (kind contact). |
thread_only | boolean | | With `reply_to`: post only inside the reply thread, not in the main timeline. |
important | boolean | | Mark as important. In groups this @mentions every member and notifies muted members too. |
emoji_scale | number | | Enlarge an emoji-only message (1.0-3.0). |
quick_files | array<string> | | Ids of your own quick-reply files to attach (copied into this conversation). |
Responses
| Status | Description |
201 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/messages" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Idempotency-Key: <uuid>" \
-H "Content-Type: application/json" \
-d '{"text": "…", "html": "…", "reply_to": "…"}'
GET
/conversations/{conversation_id}/pinned
list_pinned_messages
List pinned messages
Pinned messages of a conversation, most recently pinned first.
messages:read
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | Conversation id. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/pinned" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/messages/hide
hide_messages
Hide several messages for yourself
"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.
messages:write
Bodyapplication/json
| Field | Type | Required | Description |
message_ids | array<string> | ✓ | Message ids to hide for yourself (max 100). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/messages/hide" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"message_ids": []}'
GET
/messages/{message_id}
get_message
Get a message
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).
messages:read
Parameters
| Name | In | Required | Type | Description |
message_id | path | ✓ | string | Message id. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/messages/{message_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
DELETE
/messages/{message_id}
delete_message
Recall a message for everyone
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.
messages:write
Parameters
| Name | In | Required | Type | Description |
message_id | path | ✓ | string | Message id. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X DELETE "https://chat.orova.vn/api/chat/v1/messages/{message_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
PATCH
/messages/{message_id}
edit_message
Edit a message
Edit your own message within 15 minutes of sending (400 edit_window_expired after). Returns the updated message.
messages:write
Parameters
| Name | In | Required | Type | Description |
message_id | path | ✓ | string | Message id. |
Bodyapplication/json
| Field | Type | Required | Description |
text | string | | New plain text (up to 8000 characters). |
html | string | | New rich text HTML; omit to edit as plain text (drops previous formatting). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X PATCH "https://chat.orova.vn/api/chat/v1/messages/{message_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"text": "…", "html": "…"}'
GET
/messages/{message_id}/context
get_message_context
Get messages around a message
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.
messages:read
Parameters
| Name | In | Required | Type | Description |
message_id | path | ✓ | string | Message id. |
conversation_id | query | ✓ | string | Conversation that contains the message. |
n | query | | integer | Default: `20`. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/messages/{message_id}/context?conversation_id=..." \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/messages/{message_id}/hide
hide_message
Hide a message for yourself
"Delete for me": the message disappears only from your view, on all your devices. Safe to repeat.
messages:write
Parameters
| Name | In | Required | Type | Description |
message_id | path | ✓ | string | Message id. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/messages/{message_id}/hide" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/messages/{message_id}/reactions
list_reactions
List reactions on a message
Each emoji with its total count and who reacted (user id, name, avatar, count), most used first.
messages:read
Parameters
| Name | In | Required | Type | Description |
message_id | path | ✓ | string | Message id. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/messages/{message_id}/reactions" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
PUT
/messages/{message_id}/reactions/{emoji}
add_reaction
Add a reaction
React with one emoji (URL-encoded). Idempotent: if you already reacted with it nothing changes (`action` none). Returns the reactions and your emojis.
messages:write
Parameters
| Name | In | Required | Type | Description |
message_id | path | ✓ | string | Message id. |
emoji | path | ✓ | string | One emoji. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X PUT "https://chat.orova.vn/api/chat/v1/messages/{message_id}/reactions/{emoji}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
DELETE
/messages/{message_id}/reactions/{emoji}
remove_reaction
Remove a reaction
Remove your reaction with this emoji (URL-encoded). `action` is none when you had not reacted with it.
messages:write
Parameters
| Name | In | Required | Type | Description |
message_id | path | ✓ | string | Message id. |
emoji | path | ✓ | string | One emoji. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X DELETE "https://chat.orova.vn/api/chat/v1/messages/{message_id}/reactions/{emoji}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/messages/{message_id}/forward
forward_message
Forward a message
Forward a text, media or voice message to one or more conversations. Supports `Idempotency-Key`. Returns how many copies were sent.
messages:writeIdempotency-Key
Parameters
| Name | In | Required | Type | Description |
message_id | path | ✓ | string | Message id. |
Bodyapplication/json
| Field | Type | Required | Description |
conversation_ids | array<string> | ✓ | Target conversation ids. |
Responses
| Status | Description |
201 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/messages/{message_id}/forward" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Idempotency-Key: <uuid>" \
-H "Content-Type: application/json" \
-d '{"conversation_ids": []}'
POST
/messages/{message_id}/pin
pin_message
Pin a message
Pin a message in its conversation. Already pinned → no change.
messages:write
Parameters
| Name | In | Required | Type | Description |
message_id | path | ✓ | string | Message id. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/messages/{message_id}/pin" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/messages/{message_id}/unpin
unpin_message
Unpin a message
Unpin a message. Not pinned → no change.
messages:write
Parameters
| Name | In | Required | Type | Description |
message_id | path | ✓ | string | Message id. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/messages/{message_id}/unpin" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/messages/{message_id}/history
get_message_history
Get edit history
Previous versions of an edited message, oldest first, plus the current version. Recalled messages have no history.
messages:read
Parameters
| Name | In | Required | Type | Description |
message_id | path | ✓ | string | Message id. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/messages/{message_id}/history" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/messages/{message_id}/thread
get_message_thread
Get the reply thread of a message
The root message and its replies (oldest to newest, latest page first). Pass `next_cursor` as `before` for older replies.
messages:read
Parameters
| Name | In | Required | Type | Description |
message_id | path | ✓ | string | Message id. |
before | query | | string | Reply id; return older replies. |
limit | query | | integer | Default: `50`. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/messages/{message_id}/thread?limit=20" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/search/messages
search_messages
Search messages
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).
messages:read
Parameters
| Name | In | Required | Type | Description |
q | query | | string | Text to find. |
limit | query | | integer | Default: `30`. |
cursor | query | | string | `next_cursor` from the previous page. |
conversation_id | query | | string | Only this conversation. |
from_me | query | | boolean | Only messages you sent. Default: `false`. |
sender_handle | query | | string | Only messages from this Chat ID. |
date_from | query | | string | 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. |
date_to | query | | string | Up to this day (YYYY-MM-DD), inclusive. Same day boundaries as `date_from`. |
has | query | | string | Only messages with a file, link or image. |
tz | query | | string | 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
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/search/messages?limit=20" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/link_preview
get_link_preview
Preview a link
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).
messages:read
Parameters
| Name | In | Required | Type | Description |
url | query | ✓ | string | http(s) URL to preview. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/link_preview?url=..." \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
Files25
POST
/files
upload_file
Upload a file
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.
files:write
Bodymultipart/form-data
| Field | Type | Required | Description |
file | file | ✓ | The file to upload. |
purpose | string | | `message`, `cloud` or `avatar`. Default: `message`. |
conversation_id | string | | Conversation the file belongs to (required). |
width | integer | | Image/video width in pixels. |
height | integer | | Image/video height in pixels. |
duration_s | integer | | Audio/video length in seconds. |
Responses
| Status | Description |
201 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/files" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-F "file=@./file"
GET
/files/{file_id}
get_file
Get file metadata
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.
files:read
Parameters
| Name | In | Required | Type | Description |
file_id | path | ✓ | string | File ID. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/files/{file_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
DELETE
/files/{file_id}
delete_cloud_file
Delete a Cloud file
Permanently delete one of your Cloud files to free space. Only Cloud files you uploaded can be deleted (others → 403 `forbidden`).
files:write
Parameters
| Name | In | Required | Type | Description |
file_id | path | ✓ | string | File ID. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X DELETE "https://chat.orova.vn/api/chat/v1/files/{file_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/files/{file_id}/content
download_file
Download a file
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`.
files:read
Parameters
| Name | In | Required | Type | Description |
file_id | path | ✓ | string | File ID. |
download | query | | boolean | Force `Content-Disposition: attachment`. Default: `false`. |
Responses
| Status | Description |
200 | Raw file bytes. Content-Type and Content-Disposition follow the file. |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/files/{file_id}/content" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/cloud/usage
get_cloud_usage
Get Cloud storage usage
Bytes used and allowed in your Cloud, file count and usage by kind (image, video, file, voice).
files:read
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/cloud/usage" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/cloud/files
list_cloud_files
List Cloud files
Your Cloud files, newest first. Delete one with `delete_cloud_file`.
files:read
Parameters
| Name | In | Required | Type | Description |
limit | query | | integer | Page size. Default: `100`. |
cursor | query | | string | `next_cursor` of the previous page. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/cloud/files?limit=20" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/quick_replies
list_quick_replies
List quick replies
Your `/keyword` shortcuts with their text and attached files, sorted by keyword.
files:read
Parameters
| Name | In | Required | Type | Description |
limit | query | | integer | Page size. Default: `100`. |
cursor | query | | string | `next_cursor` of the previous page. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/quick_replies?limit=20" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/quick_replies
create_quick_reply
Create a quick reply
Create a `/keyword` shortcut. Attach images/files by uploading them first with `upload_quick_file`. 409 `duplicate` if the keyword exists.
files:write
Bodyapplication/json
| Field | Type | Required | Description |
keyword | string | ✓ | Shortcut typed after `/`. Lower-cased; letters, digits, `_` and `-`, 1-32 characters. Must be unique for you. |
body | string | | Text inserted by the shortcut (1-4000 characters). May be empty only when `file_ids` is not empty. |
file_ids | array<string> | | IDs of quick files from `upload_quick_file` to attach, in order. |
Responses
| Status | Description |
201 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/quick_replies" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"keyword": "…"}'
GET
/quick_replies/{quick_reply_id}
get_quick_reply
Get a quick reply
One of your quick replies by ID.
files:read
Parameters
| Name | In | Required | Type | Description |
quick_reply_id | path | ✓ | integer | Quick reply ID. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/quick_replies/{quick_reply_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
DELETE
/quick_replies/{quick_reply_id}
delete_quick_reply
Delete a quick reply
Delete one of your quick replies and its attached files.
files:write
Parameters
| Name | In | Required | Type | Description |
quick_reply_id | path | ✓ | integer | Quick reply ID. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X DELETE "https://chat.orova.vn/api/chat/v1/quick_replies/{quick_reply_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
PATCH
/quick_replies/{quick_reply_id}
update_quick_reply
Update a quick reply
Change the keyword, text and/or attached files. Only fields you send change.
files:write
Parameters
| Name | In | Required | Type | Description |
quick_reply_id | path | ✓ | integer | Quick reply ID. |
Bodyapplication/json
| Field | Type | Required | Description |
keyword | string | | New shortcut keyword (same rules as create). |
body | string | | New text. Empty is allowed only if files remain. |
file_ids | array<string> | | Full list of attached quick file IDs. Files no longer listed are deleted. Omit to keep the current files. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X PATCH "https://chat.orova.vn/api/chat/v1/quick_replies/{quick_reply_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"keyword": "…", "body": "…", "file_ids": []}'
POST
/quick_files
upload_quick_file
Upload a quick reply file
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`.
files:write
Bodymultipart/form-data
| Field | Type | Required | Description |
file | file | ✓ | The file to upload. |
Responses
| Status | Description |
201 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/quick_files" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-F "file=@./file"
GET
/quick_files/{quick_file_id}/content
download_quick_file
Download a quick reply file
Raw bytes of one of your quick reply files.
files:read
Parameters
| Name | In | Required | Type | Description |
quick_file_id | path | ✓ | string | Quick file ID. |
download | query | | boolean | Force `Content-Disposition: attachment`. Default: `false`. |
Responses
| Status | Description |
200 | Raw file bytes. Content-Type and Content-Disposition follow the file. |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/quick_files/{quick_file_id}/content" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
DELETE
/quick_files/{quick_file_id}
delete_quick_file
Delete a quick reply file
Delete one of your quick reply files (it disappears from its quick reply).
files:write
Parameters
| Name | In | Required | Type | Description |
quick_file_id | path | ✓ | string | Quick file ID. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X DELETE "https://chat.orova.vn/api/chat/v1/quick_files/{quick_file_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/sticker_packs
list_sticker_packs
List your sticker packs
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>`).
files:read
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/sticker_packs" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/sticker_packs
create_sticker_pack
Create a sticker pack
Create an empty sticker pack. Add stickers with `add_sticker`.
files:write
Bodyapplication/json
| Field | Type | Required | Description |
name | string | | Pack name (1-40 characters). Empty → `MY<n>`. |
Responses
| Status | Description |
201 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/sticker_packs" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"name": "…"}'
GET
/system_sticker_packs
list_system_sticker_packs
List system sticker packs
Built-in sticker packs (`pack`, names, thumbnail, sticker count) and whether you have hidden each one.
files:read
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/system_sticker_packs" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/stickers/preferences
get_sticker_preferences
Get sticker preferences
Which system sticker packs you have hidden.
files:read
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/stickers/preferences" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
PATCH
/stickers/preferences
update_sticker_preferences
Update sticker preferences
Set which system sticker packs are hidden (replaces the whole list).
files:write
Bodyapplication/json
| Field | Type | Required | Description |
hidden_packs | array<string> | ✓ | System sticker pack names to hide (from `list_system_sticker_packs`). Unknown names are ignored. Send `[]` to show all. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X PATCH "https://chat.orova.vn/api/chat/v1/stickers/preferences" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"hidden_packs": []}'
GET
/sticker_packs/{pack_id}
get_sticker_pack
Get a sticker pack
One of your sticker packs with its stickers.
files:read
Parameters
| Name | In | Required | Type | Description |
pack_id | path | ✓ | string | Sticker pack ID. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/sticker_packs/{pack_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
DELETE
/sticker_packs/{pack_id}
delete_sticker_pack
Delete a sticker pack
Delete a sticker pack and every sticker in it. Stickers already sent still show in old messages.
files:write
Parameters
| Name | In | Required | Type | Description |
pack_id | path | ✓ | string | Sticker pack ID. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X DELETE "https://chat.orova.vn/api/chat/v1/sticker_packs/{pack_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
PATCH
/sticker_packs/{pack_id}
update_sticker_pack
Update a sticker pack
Rename a sticker pack and/or change its sort position.
files:write
Parameters
| Name | In | Required | Type | Description |
pack_id | path | ✓ | string | Sticker pack ID. |
Bodyapplication/json
| Field | Type | Required | Description |
name | string | | New pack name (1-40 characters). |
sort | integer | | Sort position; lower comes first. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X PATCH "https://chat.orova.vn/api/chat/v1/sticker_packs/{pack_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"name": "…", "sort": 0}'
POST
/sticker_packs/{pack_id}/stickers
add_sticker
Add a sticker to a pack
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).
files:write
Parameters
| Name | In | Required | Type | Description |
pack_id | path | ✓ | string | Sticker pack ID. |
Bodymultipart/form-data
| Field | Type | Required | Description |
file | file | ✓ | Sticker image. |
w | integer | | Width in pixels. |
h | integer | | Height in pixels. |
Responses
| Status | Description |
201 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/sticker_packs/{pack_id}/stickers" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-F "file=@./file"
DELETE
/stickers/{sticker_id}
delete_sticker
Delete a sticker
Delete one of your stickers. Messages that already use it still show it.
files:write
Parameters
| Name | In | Required | Type | Description |
sticker_id | path | ✓ | string | Sticker ID. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X DELETE "https://chat.orova.vn/api/chat/v1/stickers/{sticker_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/stickers/{sticker_id}/content
download_sticker
Download a sticker image
Image bytes of a sticker you own or that was sent in a conversation you are in.
files:read
Parameters
| Name | In | Required | Type | Description |
sticker_id | path | ✓ | string | Sticker ID. |
Responses
| Status | Description |
200 | Raw file bytes. Content-Type and Content-Disposition follow the file. |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/stickers/{sticker_id}/content" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
Calls13
POST
/calls
start_call
Start a call
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`.
calls:writeIdempotency-Key
Bodyapplication/json
| Field | Type | Required | Description |
conversation_id | string | ✓ | Conversation to call (direct or group). |
kind | string | | `audio` or `video`. Audio calls can still turn the camera on later. Default: `audio`. |
Responses
| Status | Description |
201 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/calls" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Idempotency-Key: <uuid>" \
-H "Content-Type: application/json" \
-d '{"conversation_id": "…"}'
GET
/calls/active
get_active_call
Get the active call of a conversation
The ringing or ongoing call of a conversation, or `call: null` when there is none.
calls:read
Parameters
| Name | In | Required | Type | Description |
conversation_id | query | ✓ | string | Conversation id. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/calls/active?conversation_id=..." \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/calls/{call_id}
get_call
Get a call
Call status, kind, timestamps, duration and per-member status.
calls:read
Parameters
| Name | In | Required | Type | Description |
call_id | path | ✓ | string | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/calls/{call_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/calls/{call_id}/accept
accept_call
Accept a call
Answer a ringing call. Use `create_call_token` to actually join the media room.
calls:write
Parameters
| Name | In | Required | Type | Description |
call_id | path | ✓ | string | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/calls/{call_id}/accept" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/calls/{call_id}/decline
decline_call
Decline a call
Decline a ringing call. `ended` is true when nobody else is left to answer and the call is over.
calls:write
Parameters
| Name | In | Required | Type | Description |
call_id | path | ✓ | string | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/calls/{call_id}/decline" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/calls/{call_id}/end
end_call
End or leave a call
Hang up. Cancels the call while ringing; ends it for everyone when you are the last one in. Returns the call status afterwards.
calls:write
Parameters
| Name | In | Required | Type | Description |
call_id | path | ✓ | string | |
Bodyapplication/json
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/calls/{call_id}/end" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{}'
POST
/calls/{call_id}/token
create_call_token
Get a media token to join a call
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.
calls:write
Parameters
| Name | In | Required | Type | Description |
call_id | path | ✓ | string | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/calls/{call_id}/token" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/calls/{call_id}/summary
create_call_summary
Post an AI summary of a call
[$] 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`.
calls:writeIdempotency-Key
Parameters
| Name | In | Required | Type | Description |
call_id | path | ✓ | string | |
Bodyapplication/json
| Field | Type | Required | Description |
lines | array<object> | ✓ | Caption transcript of the call, at least 3 non-empty lines. Very long transcripts keep the end of the call. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/calls/{call_id}/summary" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Idempotency-Key: <uuid>" \
-H "Content-Type: application/json" \
-d '{"lines": []}'
POST
/calls/{call_id}/captions/start
start_call_captions
Turn on live captions
[$] 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`).
calls:write
Parameters
| Name | In | Required | Type | Description |
call_id | path | ✓ | string | |
Bodyapplication/json
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/calls/{call_id}/captions/start" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{}'
POST
/calls/{call_id}/captions/stop
stop_call_captions
Turn off live captions
[$] 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.
calls:write
Parameters
| Name | In | Required | Type | Description |
call_id | path | ✓ | string | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/calls/{call_id}/captions/stop" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/calls/{call_id}/captions/lang
set_call_caption_language
Set your caption languages
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.
calls:write
Parameters
| Name | In | Required | Type | Description |
call_id | path | ✓ | string | |
Bodyapplication/json
| Field | Type | Required | Description |
identity | string | ✓ | Your LiveKit participant identity in this call (the `sub` claim of the token from `create_call_token`). |
lang | string | | Language you want to READ captions in. Empty string or null = original. Omit to keep unchanged. |
speak_lang | string | | Language you SPEAK. Empty string or null = room default. Omit to keep unchanged. |
dub | boolean | | Turn AI voice-over (dubbing) on/off for you. Omit to keep unchanged. [$] Dubbing is billed to the call's paying workspace. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/calls/{call_id}/captions/lang" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"identity": "…"}'
GET
/calls/{call_id}/captions/state
get_call_captions_state
Get live caption state
Whether captions are on, the room's spoken language, your speaking language (pass `identity`), seconds of speech so far and the supported languages.
calls:read
Parameters
| Name | In | Required | Type | Description |
call_id | path | ✓ | string | |
identity | query | | string | Your LiveKit participant identity in this call. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/calls/{call_id}/captions/state" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/calls/{call_id}/captions/translate
translate_call_captions
Translate past caption lines
[$] 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.
calls:write
Parameters
| Name | In | Required | Type | Description |
call_id | path | ✓ | string | |
Bodyapplication/json
| Field | Type | Required | Description |
lang | string | ✓ | Target language code. |
items | array<object> | ✓ | Caption lines to translate (the server accepts up to 40 per request). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/calls/{call_id}/captions/translate" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"lang": "…", "items": []}'
AI44
GET
/ai/style_prefs
get_ai_style_prefs
Get AI rewrite style
Effective rewrite style for a conversation (or your default), your saved preferences, system templates, languages and the paying wallet.
ai:read
Parameters
| Name | In | Required | Type | Description |
conversation_id | query | | string | Conversation; omitted = your default only. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/ai/style_prefs" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
PUT
/ai/style_prefs
set_ai_style_prefs
Set AI rewrite style
Save the rewrite style for one conversation or as your personal default (system template, one of your style sets, or custom).
ai:write
Bodyapplication/json
| Field | Type | Required | Description |
scope | string | | `conversation` = this conversation only; `default` = your personal default for every conversation. |
conversation_id | string | | Required when scope is conversation. |
template_id | string | | System template id (see templates in get_ai_style_prefs) or `custom`. |
set_id | integer | | Use one of your style sets instead. |
style | object | | Overrides on top of the template. |
rewrite_on | boolean | | Rewrite outgoing messages automatically. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X PUT "https://chat.orova.vn/api/chat/v1/ai/style_prefs" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"scope": "…", "conversation_id": "…", "template_id": "…"}'
DELETE
/ai/style_prefs
reset_ai_style_prefs
Reset AI rewrite style
Remove the saved style of a conversation (falls back to your default) or your personal default.
ai:write
Parameters
| Name | In | Required | Type | Description |
scope | query | | string | What to reset. One of: `conversation`, `default`. |
conversation_id | query | | string | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X DELETE "https://chat.orova.vn/api/chat/v1/ai/style_prefs" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/ai/style_sets
list_ai_style_sets
List style sets
Your own rewrite style sets.
ai:read
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/ai/style_sets" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/ai/style_sets
create_ai_style_set
Create style set
Create a reusable rewrite style set (optionally from a system template).
ai:write
Bodyapplication/json
| Field | Type | Required | Description |
name | string | ✓ | Style set name. |
style | object | | Style of the set. |
base_template_id | string | | Start from this system template. |
Responses
| Status | Description |
201 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/ai/style_sets" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"name": "…"}'
DELETE
/ai/style_sets/{set_id}
delete_ai_style_set
Delete style set
Delete a style set. Conversations using it keep a copy of the style as custom.
ai:write
Parameters
| Name | In | Required | Type | Description |
set_id | path | ✓ | integer | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X DELETE "https://chat.orova.vn/api/chat/v1/ai/style_sets/{set_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
PATCH
/ai/style_sets/{set_id}
update_ai_style_set
Update style set
Rename a style set or change part of its style; conversations using the set get the new style.
ai:write
Parameters
| Name | In | Required | Type | Description |
set_id | path | ✓ | integer | |
Bodyapplication/json
| Field | Type | Required | Description |
name | string | | New name. |
style | object | | Keys to change (partial). |
base_template_id | string | | Change the base system template. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X PATCH "https://chat.orova.vn/api/chat/v1/ai/style_sets/{set_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"name": "…", "style": {}, "base_template_id": "…"}'
POST
/ai/rewrite
rewrite_text
Rewrite text with AI
[$] Rewrite text with the conversation's effective style. Spends quota from the paying wallet; 402 `out_of_quota` when it is empty.
ai:write
Bodyapplication/json
| Field | Type | Required | Description |
conversation_id | string | ✓ | Conversation whose effective style and wallet are used. |
text | string | ✓ | Text to rewrite. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/ai/rewrite" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"conversation_id": "…", "text": "…"}'
POST
/ai/rewrite/test
test_ai_rewrite_style
Try a rewrite style
[$] Rewrite sample text with an unsaved style (template, style set or overrides). Spends quota like a real rewrite.
ai:write
Bodyapplication/json
| Field | Type | Required | Description |
text | string | ✓ | Sample text. |
conversation_id | string | | Wallet of this conversation; omitted = your personal wallet. |
template_id | string | | Template to try. |
set_id | integer | | Style set to try. |
style | object | | Unsaved overrides to try. |
base_template_id | string | | Base template. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/ai/rewrite/test" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"text": "…"}'
POST
/ai/transcribe
transcribe_audio
Transcribe audio
[$] Speech to text for a voice clip (webm, ogg, mp4, m4a, wav, mp3; max 25 MB), optionally rewritten with the conversation's style.
ai:write
Bodymultipart/form-data
| Field | Type | Required | Description |
audio | file | ✓ | Audio file. |
conversation_id | string | ✓ | Conversation (wallet, style). |
rewrite | boolean | | Also rewrite the text with AI. Default: `false`. |
duration_s | number | | Clip length in seconds. |
voiced | number | | Seconds of detected speech. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/ai/transcribe" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-F "audio=@./file" \
-F "conversation_id=..."
GET
/ai/models
list_ai_models
List AI models
AI providers and text models you can pick for styles, sessions and bots. Free. `default` is the automatic choice.
ai:read
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/ai/models" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/ai/assistant/profile
get_assistant_profile
Get assistant profile
Name, avatar and forms of address of your Orova Assistant (null = default), plus the defaults.
ai:read
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/ai/assistant/profile" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
PATCH
/ai/assistant/profile
update_assistant_profile
Update assistant profile
Change only the fields you send; null or empty resets to default.
ai:write
Bodyapplication/json
| Field | Type | Required | Description |
name | string | | Assistant name; null or empty = default. |
user_title | string | | How the assistant addresses you; `__name__` = by your first name. |
self_title | string | | How the assistant refers to itself. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X PATCH "https://chat.orova.vn/api/chat/v1/ai/assistant/profile" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"name": "…", "user_title": "…", "self_title": "…"}'
PUT
/ai/assistant/avatar
upload_assistant_avatar
Upload assistant avatar
Replace the assistant avatar (jpg, png, webp or gif, max 4 MB).
ai:write
Bodymultipart/form-data
| Field | Type | Required | Description |
avatar | file | ✓ | Image file. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X PUT "https://chat.orova.vn/api/chat/v1/ai/assistant/avatar" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-F "avatar=@./file"
DELETE
/ai/assistant/avatar
reset_assistant_avatar
Reset assistant avatar
Remove the custom avatar; returns the default avatar url.
ai:write
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
429 | `rate_limited` — see Retry-After |
curl -X DELETE "https://chat.orova.vn/api/chat/v1/ai/assistant/avatar" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/ai/assistant/sessions
list_assistant_sessions
List assistant sessions
Your Orova Assistant (or Ask AI) chat sessions in a workspace, newest first.
ai:read
Parameters
| Name | In | Required | Type | Description |
workspace | query | | string | Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet). |
kind | query | | string | Assistant or Ask AI. One of: `assistant`, `ai`. Default: `assistant`. |
limit | query | | integer | Default: `30`. |
cursor | query | | string | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/ai/assistant/sessions?limit=20" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/ai/assistant/search
search_assistant_messages
Search assistant history
Search your past messages with the Orova Assistant (or Ask AI) in a workspace. Queries under 2 characters return nothing.
ai:read
Parameters
| Name | In | Required | Type | Description |
q | query | ✓ | string | Text to find. |
workspace | query | | string | Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet). |
kind | query | | string | Assistant or Ask AI. One of: `assistant`, `ai`. Default: `assistant`. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/ai/assistant/search?q=..." \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/ai/messages
send_ai_message
Send a message to the AI
[$] 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.
ai:write
Bodyapplication/json
| Field | Type | Required | Description |
workspace | string | | Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet). |
text | string | ✓ | Your message. |
mode | string | | `assistant` = Orova Assistant; `ai` = Ask AI with a model or bot session. Default: `assistant`. |
session_id | integer | | Session to continue (create one with create_ai_session for mode `ai`). |
model | string | | Mode `ai` only: `provider[:model_id]`; empty = the session's model, else automatic OpenAI. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/ai/messages" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"text": "…"}'
GET
/ai/bots
list_ai_bots
List AI bots
Bots you can use in a workspace (yours, shared with the workspace, and accepted invites).
ai:read
Parameters
| Name | In | Required | Type | Description |
workspace | query | | string | Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/ai/bots" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/ai/bots
create_ai_bot
Create AI bot
Create a custom AI bot with its own instructions, tone, model and audience.
ai:write
Bodyapplication/json
| Field | Type | Required | Description |
workspace | string | | Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet). |
name | string | ✓ | Bot name. |
description | string | | Short description. |
instructions | string | | System instructions. |
tone | string | | Tone of voice (free text). |
provider | string | | AI provider; null = automatic. One of: `openai`, `claude`, `gemini`. |
model | string | | Model id of the provider. |
avatar | string | | Avatar: url from upload_ai_bot_avatar or a built-in avatar key; omitted = random. |
visibility | string | | Who can use the bot (default private). One of: `private`, `workspace`, `members`. |
shared_user_ids | array<integer> | | People to invite when visibility is `members`. |
Responses
| Status | Description |
201 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/ai/bots" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"name": "…"}'
GET
/ai/bots/{bot_id}
get_ai_bot
Get AI bot
One bot with its knowledge sources.
ai:read
Parameters
| Name | In | Required | Type | Description |
bot_id | path | ✓ | integer | |
workspace | query | | string | Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/ai/bots/{bot_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
DELETE
/ai/bots/{bot_id}
delete_ai_bot
Delete AI bot
Delete a bot and its knowledge sources. Cannot be undone.
ai:write
Parameters
| Name | In | Required | Type | Description |
bot_id | path | ✓ | integer | |
workspace | query | | string | Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X DELETE "https://chat.orova.vn/api/chat/v1/ai/bots/{bot_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
PATCH
/ai/bots/{bot_id}
update_ai_bot
Update AI bot
Change only the fields you send. Only the bot owner can change visibility and invites.
ai:write
Parameters
| Name | In | Required | Type | Description |
bot_id | path | ✓ | integer | |
Bodyapplication/json
| Field | Type | Required | Description |
workspace | string | | Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet). |
name | string | | Bot name. |
description | string | | Short description. |
instructions | string | | System instructions. |
tone | string | | Tone of voice. |
provider | string | | AI provider; null = automatic. One of: `openai`, `claude`, `gemini`. |
model | string | | Model id. |
avatar | string | | Avatar; empty = default. |
visibility | string | | Who can use the bot. One of: `private`, `workspace`, `members`. |
shared_user_ids | array<integer> | | Desired invite list (new ids are invited, missing ids removed). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X PATCH "https://chat.orova.vn/api/chat/v1/ai/bots/{bot_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"workspace": "…", "name": "…", "description": "…"}'
POST
/ai/bot_avatars
upload_ai_bot_avatar
Upload bot avatar
Upload an image (png, jpg or webp) and get a url to use as a bot `avatar`.
ai:write
Bodymultipart/form-data
| Field | Type | Required | Description |
avatar | file | ✓ | Image file. |
workspace | string | | Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet). |
Responses
| Status | Description |
201 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/ai/bot_avatars" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-F "avatar=@./file"
GET
/ai/bots/{bot_id}/sources
list_ai_bot_sources
List bot knowledge sources
Files, texts and pages the bot learns from, with processing status.
ai:read
Parameters
| Name | In | Required | Type | Description |
bot_id | path | ✓ | integer | |
workspace | query | | string | Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/ai/bots/{bot_id}/sources" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/ai/bots/{bot_id}/sources
add_ai_bot_source
Add text or url source
[$] Teach the bot from a text or a web page. Processing runs in the background (status `queued`) and spends quota from the wallet.
ai:write
Parameters
| Name | In | Required | Type | Description |
bot_id | path | ✓ | integer | |
Bodyapplication/json
| Field | Type | Required | Description |
workspace | string | | Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet). |
kind | string | ✓ | `text` (name + text) or `url`. |
name | string | | Source name (kind text). |
text | string | | Source text (kind text). |
url | string | | Page to learn (kind url). |
Responses
| Status | Description |
201 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/ai/bots/{bot_id}/sources" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"kind": "…"}'
POST
/ai/bots/{bot_id}/sources/file
upload_ai_bot_source_file
Upload file source
[$] Teach the bot from a document (pdf, docx, xlsx, csv, txt…). Processing runs in the background and spends quota from the wallet.
ai:write
Parameters
| Name | In | Required | Type | Description |
bot_id | path | ✓ | integer | |
Bodymultipart/form-data
| Field | Type | Required | Description |
file | file | ✓ | Document. |
workspace | string | | Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet). |
Responses
| Status | Description |
201 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/ai/bots/{bot_id}/sources/file" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-F "file=@./file"
DELETE
/ai/bots/{bot_id}/sources/{source_id}
delete_ai_bot_source
Delete bot source
Remove a knowledge source from the bot. Cannot be undone.
ai:write
Parameters
| Name | In | Required | Type | Description |
bot_id | path | ✓ | integer | |
source_id | path | ✓ | integer | |
workspace | query | | string | Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X DELETE "https://chat.orova.vn/api/chat/v1/ai/bots/{bot_id}/sources/{source_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/ai/bot_invites
list_ai_bot_invites
List bot invites
Pending invitations to use someone else's bot, newest first.
ai:read
Parameters
| Name | In | Required | Type | Description |
workspace | query | | string | Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/ai/bot_invites" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/ai/bot_invites/{invite_id}/accept
accept_ai_bot_invite
Accept bot invite
Accept an invitation; the bot then appears in your bot list.
ai:write
Parameters
| Name | In | Required | Type | Description |
invite_id | path | ✓ | integer | |
Bodyapplication/json
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/ai/bot_invites/{invite_id}/accept" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{}'
POST
/ai/bot_invites/{invite_id}/decline
decline_ai_bot_invite
Decline bot invite
Decline an invitation.
ai:write
Parameters
| Name | In | Required | Type | Description |
invite_id | path | ✓ | integer | |
Bodyapplication/json
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/ai/bot_invites/{invite_id}/decline" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{}'
GET
/ai/sessions
list_ai_sessions
List Ask AI sessions
Your Ask AI sessions that have messages, newest activity first; `q` filters by name or message text.
ai:read
Parameters
| Name | In | Required | Type | Description |
workspace | query | | string | Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet). |
q | query | | string | Filter text. |
limit | query | | integer | Default: `30`. |
cursor | query | | string | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/ai/sessions?limit=20" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/ai/sessions
create_ai_session
Create Ask AI session
Start an Ask AI session with a model or one of your bots; send messages to it with send_ai_message (mode `ai`).
ai:write
Bodyapplication/json
| Field | Type | Required | Description |
workspace | string | | Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet). |
bot_id | integer | | Chat with this bot. |
model | string | | `openai[:id]`, `claude[:id]` or `gemini[:id]` (ignored when bot_id is set); null = automatic. |
Responses
| Status | Description |
201 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/ai/sessions" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"workspace": "…", "bot_id": 0, "model": "…"}'
GET
/ai/sessions/{session_id}
get_ai_session
Get Ask AI session
One Ask AI session (also when it has no messages yet).
ai:read
Parameters
| Name | In | Required | Type | Description |
session_id | path | ✓ | integer | |
workspace | query | | string | Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/ai/sessions/{session_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
DELETE
/ai/sessions/{session_id}
delete_ai_session
Delete Ask AI session
Delete the session and all its messages. Cannot be undone.
ai:write
Parameters
| Name | In | Required | Type | Description |
session_id | path | ✓ | integer | |
workspace | query | | string | Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X DELETE "https://chat.orova.vn/api/chat/v1/ai/sessions/{session_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
PATCH
/ai/sessions/{session_id}
update_ai_session
Update Ask AI session
Rename the session or change its model (null = automatic).
ai:write
Parameters
| Name | In | Required | Type | Description |
session_id | path | ✓ | integer | |
Bodyapplication/json
| Field | Type | Required | Description |
workspace | string | | Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet). |
name | string | | Session name; null or empty = default. |
model | string | | Model; null = automatic. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X PATCH "https://chat.orova.vn/api/chat/v1/ai/sessions/{session_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"workspace": "…", "name": "…", "model": "…"}'
GET
/ai/sessions/{session_id}/media
list_ai_session_media
List session media
Images, files and audio sent or generated in an Ask AI session, oldest first.
ai:read
Parameters
| Name | In | Required | Type | Description |
session_id | path | ✓ | integer | |
workspace | query | | string | Workspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/ai/sessions/{session_id}/media" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/messages/{message_id}/thread/summary/estimate
estimate_thread_summary
Estimate thread summary cost
Free quote (quota) for summarizing a reply thread; 402 `out_of_quota` when the wallet cannot cover it.
ai:read
Parameters
| Name | In | Required | Type | Description |
message_id | path | ✓ | string | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/messages/{message_id}/thread/summary/estimate" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/messages/{message_id}/thread/summary
summarize_thread
Summarize thread
[$] AI summary of a message and its replies. Spends quota from the paying wallet (rate limited per hour).
ai:write
Parameters
| Name | In | Required | Type | Description |
message_id | path | ✓ | string | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/messages/{message_id}/thread/summary" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/conversations/{conversation_id}/summary/estimate
estimate_conversation_summary
Estimate conversation summary cost
Free quote (quota) for summarizing recent or unread messages of a conversation.
ai:read
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
Bodyapplication/json
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/summary/estimate" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{}'
POST
/conversations/{conversation_id}/summary
summarize_conversation
Summarize conversation
[$] AI summary of recent (or unread / since a message) messages of a conversation. Spends quota from the paying wallet.
ai:write
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
Bodyapplication/json
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/summary" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{}'
POST
/conversations/{conversation_id}/translate
translate_messages
Translate messages
[$] Translate up to 40 messages of a conversation into a language. Spends quota from the paying wallet.
ai:write
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
Bodyapplication/json
| Field | Type | Required | Description |
message_ids | array<string> | ✓ | Message ids to translate (max 40). |
lang | string | ✓ | Target language code. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/translate" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"message_ids": [], "lang": "…"}'
GET
/conversations/{conversation_id}/translation
get_conversation_translation_settings
Get conversation translation settings
Auto-translate settings of a conversation (or the inherited account default) and the available languages.
ai:read
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/translation" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
PATCH
/conversations/{conversation_id}/translation
update_conversation_translation_settings
Update conversation translation settings
Change auto-translate for one conversation; fields you omit keep their current value. Auto-translate spends quota as messages arrive.
ai:write
Parameters
| Name | In | Required | Type | Description |
conversation_id | path | ✓ | string | |
Bodyapplication/json
| Field | Type | Required | Description |
auto | boolean | | Translate new messages automatically. |
lang | string | | Target language; empty = interface language. |
old | boolean | | Also translate older messages. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X PATCH "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/translation" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"auto": false, "lang": "…", "old": false}'
Pockets21
GET
/pockets
list_pockets
List Pockets
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`).
pockets:read
Parameters
| Name | In | Required | Type | Description |
view | query | | string | `all`, `mine` (pinned or opened), `pinned` or `recent`. Default: `all`. |
category | query | | string | Only this category key. |
label | query | | string | Only Pockets with this label (`l:<id>`). |
q | query | | string | Search name, description or slug. |
platform | query | | string | Platform to list for: `web`, `ios`, `ipad`, `android`, `macos`, `windows`, `linux`. |
limit | query | | integer | Page size. Default: `50`. |
cursor | query | | string | `next_cursor` of the previous page. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/pockets?limit=20" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/developer/overview
get_developer_overview
Get developer overview
Your Pocket developer account: USD balance used for the yearly maintenance fee, the price table and how many Pockets you own.
pockets:read
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/developer/overview" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/developer/pockets
list_my_pockets
List your Pockets
Pockets you own, newest first: `id`, `slug`, name, status, environment, icon, live version and latest version with its review status.
pockets:read
Parameters
| Name | In | Required | Type | Description |
limit | query | | integer | Page size. Default: `50`. |
cursor | query | | string | `next_cursor` of the previous page. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/developer/pockets?limit=20" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/developer/pockets
create_pocket
Create a Pocket
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`.
pockets:writeIdempotency-Key
Bodyapplication/json
| Field | Type | Required | Description |
slug | string | ✓ | Permanent handle (`@slug`): lower-case letters, digits and `-`. Must match `slug` in the bundle's `pocket.json`. 409 `slug_taken` if used. |
name | string | ✓ | Display name, 1-30 characters. |
short_description | string | | One-line tagline, up to 30 characters. |
category | string | | Category key, e.g. `productivity`, `utilities`, `finance`. |
locales | array<string> | | Languages the Pocket supports, e.g. `["en", "vi"]`. |
regions | array<string> | | ISO-3166 alpha-2 country codes where it is listed, or `["*"]` for worldwide. |
platforms | array<string> | | `web`, `ios`, `ipad`, `android`, `macos`, `windows`, `linux`, or `["*"]` for all. |
Responses
| Status | Description |
201 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/developer/pockets" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Idempotency-Key: <uuid>" \
-H "Content-Type: application/json" \
-d '{"slug": "…", "name": "…"}'
GET
/developer/pockets/{pocket_id}
get_my_pocket
Get one of your Pockets
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}`.
pockets:read
Parameters
| Name | In | Required | Type | Description |
pocket_id | path | ✓ | string | Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/developer/pockets/{pocket_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
PATCH
/developer/pockets/{pocket_id}
update_pocket
Update a Pocket
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.
pockets:write
Parameters
| Name | In | Required | Type | Description |
pocket_id | path | ✓ | string | Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`. |
Bodyapplication/json
| Field | Type | Required | Description |
name | string | | Display name, 1-30 characters (required). |
short_description | string | | One-line tagline, up to 30 characters (required). |
description | string | | Long description (multi-line). |
i18n | object | | 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 | string | | Category key (required), e.g. `productivity`, `utilities`, `finance`, `travel`, `developer_tools`, `other`. |
support_email | string | | Support email (required). |
privacy_url | string | | Privacy policy URL, `https://` only (required). Empty or null clears it. |
env | string | | `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 | array<string> | | Languages the Pocket supports (at least one). |
regions | array<string> | | ISO-3166 alpha-2 country codes, or `["*"]` for worldwide (at least one). |
platforms | array<string> | | Platforms it runs on, or `["*"]` for all (at least one). |
permissions | array<string> | | 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 | object | | Why each permission is needed, `{permission: reason}`. Every sensitive `user.*` permission except `user.profile` needs a reason of 10-80 characters. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X PATCH "https://chat.orova.vn/api/chat/v1/developer/pockets/{pocket_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"name": "…", "short_description": "…", "description": "…"}'
POST
/developer/pockets/{pocket_id}/icon
upload_pocket_icon
Upload a Pocket icon
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.
pockets:write
Parameters
| Name | In | Required | Type | Description |
pocket_id | path | ✓ | string | Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`. |
Bodymultipart/form-data
| Field | Type | Required | Description |
file | file | ✓ | Square PNG/JPEG/WebP image. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/developer/pockets/{pocket_id}/icon" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-F "file=@./file"
POST
/developer/pockets/{pocket_id}/publish
publish_pocket
Publish a Pocket
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`).
pockets:write
Parameters
| Name | In | Required | Type | Description |
pocket_id | path | ✓ | string | Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/developer/pockets/{pocket_id}/publish" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/developer/pockets/{pocket_id}/unpublish
unpublish_pocket
Unpublish a Pocket
Hide a live Pocket from the store and from users (status `suspended`). Re-publish it any time with `publish_pocket`.
pockets:write
Parameters
| Name | In | Required | Type | Description |
pocket_id | path | ✓ | string | Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/developer/pockets/{pocket_id}/unpublish" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/developer/pockets/{pocket_id}/stats
get_pocket_stats
Get Pocket statistics
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.
pockets:read
Parameters
| Name | In | Required | Type | Description |
pocket_id | path | ✓ | string | Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`. |
from | query | | string | Start date `YYYY-MM-DD` (UTC). |
to | query | | string | End date `YYYY-MM-DD` (UTC). |
by | query | | string | Break the series down by `day`, `country`, `platform` or `locale`. Default: `day`. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/developer/pockets/{pocket_id}/stats" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/developer/pockets/{pocket_id}/submit_info
submit_pocket_info
Submit Pocket info for review
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`.
pockets:writeIdempotency-Key
Parameters
| Name | In | Required | Type | Description |
pocket_id | path | ✓ | string | Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/developer/pockets/{pocket_id}/submit_info" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Idempotency-Key: <uuid>"
POST
/developer/pockets/{pocket_id}/versions
upload_pocket_version
Upload a Pocket version
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`.
pockets:writeIdempotency-Key
Parameters
| Name | In | Required | Type | Description |
pocket_id | path | ✓ | string | Pocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`. |
Bodymultipart/form-data
| Field | Type | Required | Description |
file | file | ✓ | Zip bundle. |
release_notes | string | | Public "What's new" for this version, up to 2000 characters. |
review_notes | string | | Notes for reviewers only (test steps, demo account), up to 2000 characters. Not shown to users. |
Responses
| Status | Description |
201 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/developer/pockets/{pocket_id}/versions" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Idempotency-Key: <uuid>" \
-F "file=@./file"
GET
/developer/versions/{version_id}
get_pocket_version
Get a Pocket version
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.
pockets:read
Parameters
| Name | In | Required | Type | Description |
version_id | path | ✓ | integer | Version ID (from `upload_pocket_version` or `get_my_pocket` → `versions`). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/developer/versions/{version_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
DELETE
/developer/versions/{version_id}
delete_pocket_version
Delete a Pocket version
Delete an `uploaded` or `rejected` version and its files. The live version cannot be deleted (400 `invalid_status`).
pockets:write
Parameters
| Name | In | Required | Type | Description |
version_id | path | ✓ | integer | Version ID (from `upload_pocket_version` or `get_my_pocket` → `versions`). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X DELETE "https://chat.orova.vn/api/chat/v1/developer/versions/{version_id}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
GET
/developer/versions/{version_id}/sandbox_url
get_pocket_sandbox_url
Get a sandbox link
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.
pockets:read
Parameters
| Name | In | Required | Type | Description |
version_id | path | ✓ | integer | Version ID (from `upload_pocket_version` or `get_my_pocket` → `versions`). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/developer/versions/{version_id}/sandbox_url" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
POST
/developer/versions/{version_id}/submit
submit_pocket_version
Submit a version for review
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`.
pockets:writeIdempotency-Key
Parameters
| Name | In | Required | Type | Description |
version_id | path | ✓ | integer | Version ID (from `upload_pocket_version` or `get_my_pocket` → `versions`). |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/developer/versions/{version_id}/submit" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Idempotency-Key: <uuid>"
GET
/developer/profile
get_developer_profile
Get your developer profile
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.
pockets:read
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/developer/profile" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
PUT
/developer/profile
update_developer_profile
Update your developer profile
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`).
pockets:write
Bodyapplication/json
| Field | Type | Required | Description |
handle | string | | Public handle for `https://pocket.orova.vn/console/d/<handle>`: lower-case letters, digits and `-`. 400 `invalid_handle` / `reserved_handle` / `handle_taken`. |
display_name | string | | Developer name shown on Pockets. |
bio | string | | Short introduction (multi-line). |
website | string | | Website URL, `https://` only. |
support_email | string | | Public support email. |
country | string | | ISO-3166 alpha-2 country code. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X PUT "https://chat.orova.vn/api/chat/v1/developer/profile" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Content-Type: application/json" \
-d '{"handle": "…", "display_name": "…", "bio": "…"}'
POST
/developer/profile/submit
submit_developer_profile
Submit your developer profile for review
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`.
pockets:writeIdempotency-Key
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
429 | `rate_limited` — see Retry-After |
curl -X POST "https://chat.orova.vn/api/chat/v1/developer/profile/submit" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…" \
-H "Idempotency-Key: <uuid>"
GET
/connected_pockets
list_connected_pockets
List connected Pockets
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.
pockets:read
Parameters
| Name | In | Required | Type | Description |
limit | query | | integer | Page size. Default: `50`. |
cursor | query | | string | `next_cursor` of the previous page. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl "https://chat.orova.vn/api/chat/v1/connected_pockets?limit=20" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"
DELETE
/connected_pockets/{slug}
revoke_connected_pocket
Remove a connected Pocket
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.
pockets:write
Parameters
| Name | In | Required | Type | Description |
slug | path | ✓ | string | Pocket handle (`slug` or `@slug`) from `list_connected_pockets`. |
Responses
| Status | Description |
200 | Successful Response |
401 | Missing, invalid, revoked or expired key (`invalid_token`) |
403 | `insufficient_scope`, `not_enabled` or `ip_not_allowed` |
422 | Invalid request (`invalid_request`) |
429 | `rate_limited` — see Retry-After |
curl -X DELETE "https://chat.orova.vn/api/chat/v1/connected_pockets/{slug}" \
-H "X-Api-Key: ock_…" \
-H "X-Api-Secret: ocs_…"