Orova Pocket

REST API reference

215 operations · Base https://chat.orova.vn/api/chat/v1

No results

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

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
full_namestringDisplay name. Cannot be empty.
phonestringFree-form phone number (trimmed to 32 chars). null or "" clears it.
zalostringZalo phone or link. null or "" clears it.
whatsappstringWhatsApp number or link. null or "" clears it.
websitestringWebsite URL. null or "" clears it.
companystringCompany name (up to 120 chars kept).
job_titlestringJob title (up to 80 chars kept).
countrystringISO 3166-1 alpha-2 country code, e.g. "VN". null or "" clears it.
citystringCity (up to 120 chars kept).
birthdaystringDate YYYY-MM-DD between 1900-01-01 and today. null or "" clears it.
genderstringmale | female | other. null or "" clears it.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
429`rate_limited` — see Retry-After
curl
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

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
privacystringProfile privacy: private (contacts only) or public.
themeobjectAppearance; merged into the current theme.
show_onlinebooleanShow your online status to others.
handlestringChat ID ("@abc" or "abc", normalized). null or "" removes it. At most 10 changes per hour.
email_visiblebooleanLet others see your email.
read_receiptsbooleanSend read receipts.
allow_group_addbooleanfalse = nobody can add you to a group directly; they must send an invite link.
prefsobjectApp preferences, shallow-merged into the stored ones (e.g. quick_emoji, react_set, enter_send, ai_auto_send, translate, contact_groups, device_sync).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
autobooleanAuto-translate incoming messages by default.
langstringTarget language code, e.g. "en", "vi", "zh-TW". "" = your interface language.
oldbooleanAlso translate messages received before auto-translate was turned on.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
429`rate_limited` — see Retry-After
curl
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

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
otpstring✓The 6-digit code emailed to the user by request_account_deletion. Ask the user for it; never guess.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
device_idpath✓string`device_id` from `GET /devices`.

Responses

StatusDescription
204Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
429`rate_limited` — see Retry-After
curl
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

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
workspacestring✓Slug of the business workspace whose wallet pays for your Chat usage. Must be one of `choices` from `GET /business`.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
user_idsquery✓stringComma-separated user ids, at most 200 (extra ids are ignored).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
labelquerystringLabel shown for this API connection in the Pocket console.

Responses

StatusDescription
200`text/event-stream`
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
slugpath✓stringWorkspace slug (as in `https://orova.vn/u/workspaces/<slug>`).
qquerystringSearch name, email or phone (accent-insensitive).
department_idqueryintegerOnly this department and its sub-departments.
onlinequerybooleantrue = online only, false = offline only.
limitqueryintegerPage size: 25, 50, 100 or 250. Default: `50`.
cursorquerystring`next_cursor` from the previous page.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
slugpath✓stringWorkspace slug (as in `https://orova.vn/u/workspaces/<slug>`).
daysqueryinteger7, 30 or 90 (default 30). Ignored when `from`/`to` are set.
fromquerystring (date)Start date YYYY-MM-DD.
toquerystring (date)End date YYYY-MM-DD (inclusive).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
slugpath✓stringWorkspace slug (as in `https://orova.vn/u/workspaces/<slug>`).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
slugpath✓stringWorkspace slug (as in `https://orova.vn/u/workspaces/<slug>`).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
slugpath✓stringWorkspace slug (as in `https://orova.vn/u/workspaces/<slug>`).
limitqueryintegerMax entries (1-500). Default: `100`.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
slugpath✓stringWorkspace slug (as in `https://orova.vn/u/workspaces/<slug>`).
conversation_idquery✓stringConversation `id` (from `list_workspace_chat_groups` or `list_workspace_direct_chats`).
formatquerystring`json` or `csv`. Default: `json`.
fromquerystring (date)Start date YYYY-MM-DD.
toquerystring (date)End date YYYY-MM-DD (inclusive).

Responses

StatusDescription
200File download
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
qquerystringFilter by name, email or handle.
limitqueryintegerMax items per page. Default: `100`.
cursorquerystring`next_cursor` from the previous page.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
user_idintegerInvite by user id.
handlestringInvite by Chat ID (with or without `@`).
emailstringInvite by exact email address.
tagstringContact group to file this person under.
messagestringShort note shown with the request.

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
qquerystringFilter by name/email/handle.
limitqueryintegerMax items per page. Default: `100`.
cursorquerystring`next_cursor` from the previous page.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
limitqueryintegerMax items per page. Default: `100`.
cursorquerystring`next_cursor` from the previous page.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
limitqueryintegerMax items per page. Default: `100`.
cursorquerystring`next_cursor` from the previous page.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
qquerystringFilter by name/email/handle.
modequerystring`personal` = group-chat members only; `workspace` = include workspace colleagues. Default follows the key's scope.
workspacequerystringWorkspace slug.
limitqueryintegerMax items per page. Default: `100`.
cursorquerystring`next_cursor` from the previous page.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
user_idpath✓integerNumeric user id (`user_id` in contact/user objects).

Bodyapplication/json

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
user_idpath✓integerNumeric user id (`user_id` in contact/user objects).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
user_idpath✓integerNumeric user id (`user_id` in contact/user objects).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
user_idpath✓integerNumeric user id (`user_id` in contact/user objects).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
user_idpath✓integerNumeric user id (`user_id` in contact/user objects).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
user_idpath✓integerNumeric user id (`user_id` in contact/user objects).

Bodyapplication/json

FieldTypeRequiredDescription
tagstring✓Group name (1-24 chars); `null` removes the group.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
limitqueryintegerMax items per page. Default: `100`.
cursorquerystring`next_cursor` from the previous page.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
namestring✓Group name (1-24 chars).

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
tagpath✓stringGroup name to delete.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
tagpath✓stringCurrent group name.

Bodyapplication/json

FieldTypeRequiredDescription
namestring✓New group name (1-24 chars).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
qquery✓stringExact email or Chat ID (`abc` or `@abc`).
email_privacyquerybooleanMatch an email only when its owner made it visible (ignore shared-workspace exception). Default: `false`.
limitqueryintegerMax items per page. Default: `100`.
cursorquerystring`next_cursor` from the previous page.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
user_idpath✓integerNumeric user id (`user_id` in contact/user objects).
conversation_idquerystringConversation you opened the profile from (applies the group's hidden-member rule).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
user_idpath✓integerNumeric user id (`user_id` in contact/user objects).

Bodyapplication/json

FieldTypeRequiredDescription
reasonstring✓Report reason. One of: `spam`, `harassment`, `impersonation`, `inappropriate`, `other`.
notestringFree-text details (max 500).
message_idsarray<string>Up to 20 message ids as evidence (only messages you can see count).
workspacestringWorkspace slug the report relates to.

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
qquerystringSearch title / member name / email.
workspacequerystringWorkspace slug, or `personal`.
archivedquerybooleanList archived conversations instead. Default: `false`.
updated_afterquerystringOnly conversations with a message after this ISO 8601 time.
limitqueryintegerDefault: `50`.
cursorquerystring`next_cursor` from the previous page.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
kindstring✓`direct` (1:1 with `user_id`), `group` (with `user_ids`) or `self` (your own notes / My Cloud).
user_idintegerOther person (kind=direct).
user_idsarray<integer>Initial members (kind=group), excluding yourself.
titlestringGroup name (kind=group, max 50 characters).
workspacestringWorkspace slug to create it in; omit for your personal space.

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string

Bodyapplication/json

FieldTypeRequiredDescription
titlestringNew group name (max 50 characters); empty or null clears it.
avatar_file_idstringFile id of an image uploaded with purpose `avatar` for this conversation.
invite_link_enabledbooleanAllow joining by invite link / QR.
only_admins_postbooleanOnly owner/admins can send messages.
members_can_invitebooleanRegular members can add people and share the link.
members_can_edit_infobooleanRegular members can change name and photo.
hide_member_profilesbooleanMembers only see each other's name and photo.
join_approvalbooleanJoining by link needs approval from an owner/admin.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string

Bodyapplication/json

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string

Bodyapplication/json

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string

Bodyapplication/json

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string

Bodyapplication/json

FieldTypeRequiredDescription
label_idinteger✓One of your labels (`GET /labels`), or null to clear.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string
limitqueryintegerDefault: `100`.
cursorquerystring

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string

Bodyapplication/json

FieldTypeRequiredDescription
user_idsarray<integer>✓People to add.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string
user_idpath✓integer

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string
user_idpath✓integer

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string
user_idpath✓integer

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string

Bodyapplication/json

FieldTypeRequiredDescription
user_idinteger✓Current member who becomes the new owner. You become an admin.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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}'
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

NameInRequiredTypeDescription
tokenpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
tokenpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string
request_idpath✓integer

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string
request_idpath✓integer

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
namestring✓Label name (unique, case-insensitive).
colorstring✓Preset colour or hex `#RGB` / `#RRGGBB`.

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
label_idpath✓integer

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
label_idpath✓integer

Bodyapplication/json

FieldTypeRequiredDescription
namestringNew name.
colorstringNew colour (`#RRGGBB`).
positionintegerSort position (0 = first).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓stringConversation id.
beforequerystringReturn messages older than this message id.
afterquerystringReturn messages newer than this message id.
limitqueryintegerDefault: `50`.
qquerystringOnly messages containing this text.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓stringConversation id.

Bodyapplication/json

FieldTypeRequiredDescription
textstringPlain text, up to 8000 characters (longer → 400 text_too_long). Ignored when `html` has content.
htmlstringRich text HTML (sanitized server-side). When it has content the plain body is generated from it. Media messages keep only the text.
reply_tostringId of a message in this conversation to reply to.
mediaarray<string>File ids from `POST /files` (purpose message, same conversation, not yet attached).
kindstringUsually omitted (text or media is inferred). `voice` = all media are audio; `sticker` needs `sticker_id`; `contact` needs `contact_user_id`.
mentionsarray<integer>User ids to @mention (must be members; yourself is ignored).
sticker_idstringSticker id "<pack>:<id>" or "u:<id>" (kind sticker).
contact_user_idintegerUser id of the contact card to share (kind contact).
thread_onlybooleanWith `reply_to`: post only inside the reply thread, not in the main timeline.
importantbooleanMark as important. In groups this @mentions every member and notifies muted members too.
emoji_scalenumberEnlarge an emoji-only message (1.0-3.0).
quick_filesarray<string>Ids of your own quick-reply files to attach (copied into this conversation).

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓stringConversation id.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
message_idsarray<string>✓Message ids to hide for yourself (max 100).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
message_idpath✓stringMessage id.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
message_idpath✓stringMessage id.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
message_idpath✓stringMessage id.

Bodyapplication/json

FieldTypeRequiredDescription
textstringNew plain text (up to 8000 characters).
htmlstringNew rich text HTML; omit to edit as plain text (drops previous formatting).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
message_idpath✓stringMessage id.
conversation_idquery✓stringConversation that contains the message.
nqueryintegerDefault: `20`.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
message_idpath✓stringMessage id.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
message_idpath✓stringMessage id.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
message_idpath✓stringMessage id.
emojipath✓stringOne emoji.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
message_idpath✓stringMessage id.
emojipath✓stringOne emoji.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
message_idpath✓stringMessage id.

Bodyapplication/json

FieldTypeRequiredDescription
conversation_idsarray<string>✓Target conversation ids.

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
message_idpath✓stringMessage id.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
message_idpath✓stringMessage id.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
message_idpath✓stringMessage id.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
message_idpath✓stringMessage id.
beforequerystringReply id; return older replies.
limitqueryintegerDefault: `50`.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
qquerystringText to find.
limitqueryintegerDefault: `30`.
cursorquerystring`next_cursor` from the previous page.
conversation_idquerystringOnly this conversation.
from_mequerybooleanOnly messages you sent. Default: `false`.
sender_handlequerystringOnly messages from this Chat ID.
date_fromquerystringFrom 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_toquerystringUp to this day (YYYY-MM-DD), inclusive. Same day boundaries as `date_from`.
hasquerystringOnly messages with a file, link or image.
tzquerystringIANA time zone name (e.g. `America/New_York`) used for the `date_from` / `date_to` day boundaries. Optional; an unknown name is ignored.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
curl "https://chat.orova.vn/api/chat/v1/search/messages?limit=20" \
  -H "X-Api-Key: ock_…" \
  -H "X-Api-Secret: ocs_…"

Extras19

GET /conversations/{conversation_id}/polls list_polls

List polls in a conversation

Poll messages of a conversation, newest first, with vote counts, your votes and (non-anonymous polls) voter names. Not paginated beyond `limit` (max 100).

messages:read

Parameters

NameInRequiredTypeDescription
conversation_idpath✓string
limitqueryintegerMaximum polls to return (1-100). Default: `50`.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
curl "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/polls?limit=20" \
  -H "X-Api-Key: ock_…" \
  -H "X-Api-Secret: ocs_…"
POST /conversations/{conversation_id}/polls create_poll

Create a poll

Post a poll message to a conversation. Returns `{message}` (the poll message). Supports `Idempotency-Key`.

messages:writeIdempotency-Key

Parameters

NameInRequiredTypeDescription
conversation_idpath✓string

Bodyapplication/json

FieldTypeRequiredDescription
questionstring✓Poll question (1-300 characters).
optionsarray<string>✓2-10 distinct option texts (1-100 characters each). Option ids are assigned o1, o2, …
multiplebooleanAllow choosing more than one option. Default: `false`.
anonymousbooleanHide who voted for which option. Default: `false`.
closes_atstringAuto-close time, ISO 8601 (no offset = UTC), between 1 minute and 365 days from now. Null = no deadline.
allow_addbooleanLet every member add new options. Default: `false`.

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/polls" \
  -H "X-Api-Key: ock_…" \
  -H "X-Api-Secret: ocs_…" \
  -H "Idempotency-Key: <uuid>" \
  -H "Content-Type: application/json" \
  -d '{"question": "…", "options": []}'
POST /messages/{message_id}/votes vote_poll

Vote in a poll

Set your vote on a poll message (replaces any previous vote; empty `option_ids` withdraws it). Returns `{message}` with updated counts.

messages:write

Parameters

NameInRequiredTypeDescription
message_idpath✓string

Bodyapplication/json

FieldTypeRequiredDescription
option_idsarray<string>Option ids to vote for (e.g. ["o1"]). Replaces your previous vote; an empty list withdraws it. Single-choice polls accept at most one id.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
curl -X POST "https://chat.orova.vn/api/chat/v1/messages/{message_id}/votes" \
  -H "X-Api-Key: ock_…" \
  -H "X-Api-Secret: ocs_…" \
  -H "Content-Type: application/json" \
  -d '{"option_ids": []}'
POST /messages/{message_id}/poll/close close_poll

Close a poll

Stop accepting votes. Allowed for the poll creator and group owners/admins. Closing an already closed poll is a no-op.

messages:write

Parameters

NameInRequiredTypeDescription
message_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
curl -X POST "https://chat.orova.vn/api/chat/v1/messages/{message_id}/poll/close" \
  -H "X-Api-Key: ock_…" \
  -H "X-Api-Secret: ocs_…"
POST /messages/{message_id}/poll/options add_poll_option

Add a poll option

Add an option to an open poll (needs `allow_add`, or be the creator / a group owner or admin). Max 10 options. Supports `Idempotency-Key`.

messages:writeIdempotency-Key

Parameters

NameInRequiredTypeDescription
message_idpath✓string

Bodyapplication/json

FieldTypeRequiredDescription
textstring✓New option text (1-100 characters, must not duplicate an existing option).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
curl -X POST "https://chat.orova.vn/api/chat/v1/messages/{message_id}/poll/options" \
  -H "X-Api-Key: ock_…" \
  -H "X-Api-Secret: ocs_…" \
  -H "Idempotency-Key: <uuid>" \
  -H "Content-Type: application/json" \
  -d '{"text": "…"}'
GET /conversations/{conversation_id}/notes list_notes

List your notes in a conversation

Your own private notes in a conversation, newest first (other members never see them).

messages:read

Parameters

NameInRequiredTypeDescription
conversation_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
curl "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/notes" \
  -H "X-Api-Key: ock_…" \
  -H "X-Api-Secret: ocs_…"
POST /conversations/{conversation_id}/notes create_note

Create a note

Create a private note in a conversation (also adds a note card only you can see). Returns `{note, message}`. Supports `Idempotency-Key`.

messages:writeIdempotency-Key

Parameters

NameInRequiredTypeDescription
conversation_idpath✓string

Bodyapplication/json

FieldTypeRequiredDescription
titlestring✓Note title (1-200 characters).
body_htmlstringNote body as HTML. Sanitized by the server; the response `body_html` is the stored (safe) version.

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/notes" \
  -H "X-Api-Key: ock_…" \
  -H "X-Api-Secret: ocs_…" \
  -H "Idempotency-Key: <uuid>" \
  -H "Content-Type: application/json" \
  -d '{"title": "…"}'
GET /notes/{note_id} get_note

Get a note

One of your notes, including `body_html`.

messages:read

Parameters

NameInRequiredTypeDescription
note_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
curl "https://chat.orova.vn/api/chat/v1/notes/{note_id}" \
  -H "X-Api-Key: ock_…" \
  -H "X-Api-Secret: ocs_…"
DELETE /notes/{note_id} delete_note

Delete a note

Permanently delete one of your notes and its note card. Cannot be undone.

messages:write

Parameters

NameInRequiredTypeDescription
note_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
curl -X DELETE "https://chat.orova.vn/api/chat/v1/notes/{note_id}" \
  -H "X-Api-Key: ock_…" \
  -H "X-Api-Secret: ocs_…"
PATCH /notes/{note_id} update_note

Update a note

Change the title and/or body of one of your notes (at least one field).

messages:write

Parameters

NameInRequiredTypeDescription
note_idpath✓string

Bodyapplication/json

FieldTypeRequiredDescription
titlestringNew title (1-200 characters).
body_htmlstringNew body HTML (empty string clears it).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
curl -X PATCH "https://chat.orova.vn/api/chat/v1/notes/{note_id}" \
  -H "X-Api-Key: ock_…" \
  -H "X-Api-Secret: ocs_…" \
  -H "Content-Type: application/json" \
  -d '{"title": "…", "body_html": "…"}'
GET /conversations/{conversation_id}/scheduled_messages list_scheduled_messages

List your scheduled messages

Your pending scheduled messages in a conversation (soonest first), then those that failed in the last 7 days (with `error`).

messages:read

Parameters

NameInRequiredTypeDescription
conversation_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
curl "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/scheduled_messages" \
  -H "X-Api-Key: ock_…" \
  -H "X-Api-Secret: ocs_…"
POST /conversations/{conversation_id}/scheduled_messages create_scheduled_message

Schedule a message

Schedule a message to be sent later in a conversation. Returns `{item}`. Supports `Idempotency-Key`.

messages:writeIdempotency-Key

Parameters

NameInRequiredTypeDescription
conversation_idpath✓string

Bodyapplication/json

FieldTypeRequiredDescription
textstringPlain-text message (1-4000 characters). Required unless `html` is given.
htmlstringRich-text message as HTML (sanitized). When present the plain text is derived from it.
send_atstring✓Send time, ISO 8601 (no offset = UTC), between 1 minute and 365 days from now.
reply_tostringId of a message in this conversation to reply to.
mentionsarray<integer>User ids to mention (members only).
thread_onlybooleanPost only inside the reply thread (requires `reply_to`).

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/scheduled_messages" \
  -H "X-Api-Key: ock_…" \
  -H "X-Api-Secret: ocs_…" \
  -H "Idempotency-Key: <uuid>" \
  -H "Content-Type: application/json" \
  -d '{"send_at": "…"}'
DELETE /scheduled_messages/{scheduled_message_id} cancel_scheduled_message

Cancel a scheduled message

Cancel one of your pending scheduled messages (status becomes `canceled`). Returns `{item}`.

messages:write

Parameters

NameInRequiredTypeDescription
scheduled_message_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
curl -X DELETE "https://chat.orova.vn/api/chat/v1/scheduled_messages/{scheduled_message_id}" \
  -H "X-Api-Key: ock_…" \
  -H "X-Api-Secret: ocs_…"
PATCH /scheduled_messages/{scheduled_message_id} update_scheduled_message

Update a scheduled message

Change the text/HTML and/or send time of one of your pending scheduled messages.

messages:write

Parameters

NameInRequiredTypeDescription
scheduled_message_idpath✓string

Bodyapplication/json

FieldTypeRequiredDescription
textstringNew plain text.
htmlstringNew rich-text HTML (sanitized).
send_atstringNew send time, ISO 8601 (no offset = UTC).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
curl -X PATCH "https://chat.orova.vn/api/chat/v1/scheduled_messages/{scheduled_message_id}" \
  -H "X-Api-Key: ock_…" \
  -H "X-Api-Secret: ocs_…" \
  -H "Content-Type: application/json" \
  -d '{"text": "…", "html": "…", "send_at": "…"}'
POST /scheduled_messages/{scheduled_message_id}/dismiss dismiss_scheduled_message

Dismiss a failed scheduled message

Hide a failed scheduled message from the list (status becomes `dismissed`). Only failed messages; others return 409 `not_failed`.

messages:write

Parameters

NameInRequiredTypeDescription
scheduled_message_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
curl -X POST "https://chat.orova.vn/api/chat/v1/scheduled_messages/{scheduled_message_id}/dismiss" \
  -H "X-Api-Key: ock_…" \
  -H "X-Api-Secret: ocs_…"
GET /conversations/{conversation_id}/reminders list_reminders

List reminders in a conversation

All pending reminders of a conversation (from every member), soonest first.

messages:read

Parameters

NameInRequiredTypeDescription
conversation_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
curl "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/reminders" \
  -H "X-Api-Key: ock_…" \
  -H "X-Api-Secret: ocs_…"
POST /conversations/{conversation_id}/reminders create_reminder

Create a reminder

Create an optionally repeating reminder posted into the conversation at `send_at`. Returns `{item}`. Supports `Idempotency-Key`.

messages:writeIdempotency-Key

Parameters

NameInRequiredTypeDescription
conversation_idpath✓string

Bodyapplication/json

FieldTypeRequiredDescription
titlestring✓Reminder text (1-200 characters).
send_atstring✓First fire time, ISO 8601 (no offset = UTC), between 1 minute and 365 days from now.
repeatstringRepeat rule. One of: `none`, `daily`, `weekdays`, `weekly`, `monthly`. Default: `none`.
ping_allbooleanMention everyone in the conversation when it fires. Default: `true`.

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
curl -X POST "https://chat.orova.vn/api/chat/v1/conversations/{conversation_id}/reminders" \
  -H "X-Api-Key: ock_…" \
  -H "X-Api-Secret: ocs_…" \
  -H "Idempotency-Key: <uuid>" \
  -H "Content-Type: application/json" \
  -d '{"title": "…", "send_at": "…"}'
DELETE /reminders/{reminder_id} delete_reminder

Delete a reminder

Cancel a reminder and stop its whole repeat series (creator or group owner/admin). Returns `{item}` with status `canceled`.

messages:write

Parameters

NameInRequiredTypeDescription
reminder_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
curl -X DELETE "https://chat.orova.vn/api/chat/v1/reminders/{reminder_id}" \
  -H "X-Api-Key: ock_…" \
  -H "X-Api-Secret: ocs_…"
PATCH /reminders/{reminder_id} update_reminder

Update a reminder

Change a pending reminder (creator or group owner/admin). An id of an already fired occurrence targets the current one of the series.

messages:write

Parameters

NameInRequiredTypeDescription
reminder_idpath✓string

Bodyapplication/json

FieldTypeRequiredDescription
titlestringNew reminder text.
send_atstringNew next fire time, ISO 8601 (no offset = UTC).
repeatstringNew repeat rule. One of: `none`, `daily`, `weekdays`, `weekly`, `monthly`.
ping_allbooleanMention everyone when it fires.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
curl -X PATCH "https://chat.orova.vn/api/chat/v1/reminders/{reminder_id}" \
  -H "X-Api-Key: ock_…" \
  -H "X-Api-Secret: ocs_…" \
  -H "Content-Type: application/json" \
  -d '{"title": "…", "send_at": "…", "repeat": "…"}'

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

FieldTypeRequiredDescription
filefile✓The file to upload.
purposestring`message`, `cloud` or `avatar`. Default: `message`.
conversation_idstringConversation the file belongs to (required).
widthintegerImage/video width in pixels.
heightintegerImage/video height in pixels.
duration_sintegerAudio/video length in seconds.

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
file_idpath✓stringFile ID.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
file_idpath✓stringFile ID.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
file_idpath✓stringFile ID.
downloadquerybooleanForce `Content-Disposition: attachment`. Default: `false`.

Responses

StatusDescription
200Raw file bytes. Content-Type and Content-Disposition follow the file.
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
limitqueryintegerPage size. Default: `100`.
cursorquerystring`next_cursor` of the previous page.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
limitqueryintegerPage size. Default: `100`.
cursorquerystring`next_cursor` of the previous page.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
keywordstring✓Shortcut typed after `/`. Lower-cased; letters, digits, `_` and `-`, 1-32 characters. Must be unique for you.
bodystringText inserted by the shortcut (1-4000 characters). May be empty only when `file_ids` is not empty.
file_idsarray<string>IDs of quick files from `upload_quick_file` to attach, in order.

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
quick_reply_idpath✓integerQuick reply ID.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
quick_reply_idpath✓integerQuick reply ID.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
quick_reply_idpath✓integerQuick reply ID.

Bodyapplication/json

FieldTypeRequiredDescription
keywordstringNew shortcut keyword (same rules as create).
bodystringNew text. Empty is allowed only if files remain.
file_idsarray<string>Full list of attached quick file IDs. Files no longer listed are deleted. Omit to keep the current files.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
filefile✓The file to upload.

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
quick_file_idpath✓stringQuick file ID.
downloadquerybooleanForce `Content-Disposition: attachment`. Default: `false`.

Responses

StatusDescription
200Raw file bytes. Content-Type and Content-Disposition follow the file.
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
quick_file_idpath✓stringQuick file ID.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
namestringPack name (1-40 characters). Empty → `MY<n>`.

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
429`rate_limited` — see Retry-After
curl
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

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
hidden_packsarray<string>✓System sticker pack names to hide (from `list_system_sticker_packs`). Unknown names are ignored. Send `[]` to show all.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
pack_idpath✓stringSticker pack ID.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
pack_idpath✓stringSticker pack ID.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
pack_idpath✓stringSticker pack ID.

Bodyapplication/json

FieldTypeRequiredDescription
namestringNew pack name (1-40 characters).
sortintegerSort position; lower comes first.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
pack_idpath✓stringSticker pack ID.

Bodymultipart/form-data

FieldTypeRequiredDescription
filefile✓Sticker image.
wintegerWidth in pixels.
hintegerHeight in pixels.

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
sticker_idpath✓stringSticker ID.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
sticker_idpath✓stringSticker ID.

Responses

StatusDescription
200Raw file bytes. Content-Type and Content-Disposition follow the file.
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
conversation_idstring✓Conversation to call (direct or group).
kindstring`audio` or `video`. Audio calls can still turn the camera on later. Default: `audio`.

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idquery✓stringConversation id.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
call_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
call_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
call_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
call_idpath✓string

Bodyapplication/json

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
call_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
call_idpath✓string

Bodyapplication/json

FieldTypeRequiredDescription
linesarray<object>✓Caption transcript of the call, at least 3 non-empty lines. Very long transcripts keep the end of the call.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
call_idpath✓string

Bodyapplication/json

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
call_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
call_idpath✓string

Bodyapplication/json

FieldTypeRequiredDescription
identitystring✓Your LiveKit participant identity in this call (the `sub` claim of the token from `create_call_token`).
langstringLanguage you want to READ captions in. Empty string or null = original. Omit to keep unchanged.
speak_langstringLanguage you SPEAK. Empty string or null = room default. Omit to keep unchanged.
dubbooleanTurn AI voice-over (dubbing) on/off for you. Omit to keep unchanged. [$] Dubbing is billed to the call's paying workspace.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
call_idpath✓string
identityquerystringYour LiveKit participant identity in this call.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
call_idpath✓string

Bodyapplication/json

FieldTypeRequiredDescription
langstring✓Target language code.
itemsarray<object>✓Caption lines to translate (the server accepts up to 40 per request).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idquerystringConversation; omitted = your default only.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
scopestring`conversation` = this conversation only; `default` = your personal default for every conversation.
conversation_idstringRequired when scope is conversation.
template_idstringSystem template id (see templates in get_ai_style_prefs) or `custom`.
set_idintegerUse one of your style sets instead.
styleobjectOverrides on top of the template.
rewrite_onbooleanRewrite outgoing messages automatically.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
scopequerystringWhat to reset. One of: `conversation`, `default`.
conversation_idquerystring

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
namestring✓Style set name.
styleobjectStyle of the set.
base_template_idstringStart from this system template.

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
set_idpath✓integer

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
set_idpath✓integer

Bodyapplication/json

FieldTypeRequiredDescription
namestringNew name.
styleobjectKeys to change (partial).
base_template_idstringChange the base system template.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
conversation_idstring✓Conversation whose effective style and wallet are used.
textstring✓Text to rewrite.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
textstring✓Sample text.
conversation_idstringWallet of this conversation; omitted = your personal wallet.
template_idstringTemplate to try.
set_idintegerStyle set to try.
styleobjectUnsaved overrides to try.
base_template_idstringBase template.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
audiofile✓Audio file.
conversation_idstring✓Conversation (wallet, style).
rewritebooleanAlso rewrite the text with AI. Default: `false`.
duration_snumberClip length in seconds.
voicednumberSeconds of detected speech.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
429`rate_limited` — see Retry-After
curl
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

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
namestringAssistant name; null or empty = default.
user_titlestringHow the assistant addresses you; `__name__` = by your first name.
self_titlestringHow the assistant refers to itself.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
avatarfile✓Image file.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
workspacequerystringWorkspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).
kindquerystringAssistant or Ask AI. One of: `assistant`, `ai`. Default: `assistant`.
limitqueryintegerDefault: `30`.
cursorquerystring

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
qquery✓stringText to find.
workspacequerystringWorkspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).
kindquerystringAssistant or Ask AI. One of: `assistant`, `ai`. Default: `assistant`.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
workspacestringWorkspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).
textstring✓Your message.
modestring`assistant` = Orova Assistant; `ai` = Ask AI with a model or bot session. Default: `assistant`.
session_idintegerSession to continue (create one with create_ai_session for mode `ai`).
modelstringMode `ai` only: `provider[:model_id]`; empty = the session's model, else automatic OpenAI.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
workspacequerystringWorkspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
workspacestringWorkspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).
namestring✓Bot name.
descriptionstringShort description.
instructionsstringSystem instructions.
tonestringTone of voice (free text).
providerstringAI provider; null = automatic. One of: `openai`, `claude`, `gemini`.
modelstringModel id of the provider.
avatarstringAvatar: url from upload_ai_bot_avatar or a built-in avatar key; omitted = random.
visibilitystringWho can use the bot (default private). One of: `private`, `workspace`, `members`.
shared_user_idsarray<integer>People to invite when visibility is `members`.

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
bot_idpath✓integer
workspacequerystringWorkspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
bot_idpath✓integer
workspacequerystringWorkspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
bot_idpath✓integer

Bodyapplication/json

FieldTypeRequiredDescription
workspacestringWorkspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).
namestringBot name.
descriptionstringShort description.
instructionsstringSystem instructions.
tonestringTone of voice.
providerstringAI provider; null = automatic. One of: `openai`, `claude`, `gemini`.
modelstringModel id.
avatarstringAvatar; empty = default.
visibilitystringWho can use the bot. One of: `private`, `workspace`, `members`.
shared_user_idsarray<integer>Desired invite list (new ids are invited, missing ids removed).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
avatarfile✓Image file.
workspacestringWorkspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
bot_idpath✓integer
workspacequerystringWorkspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
bot_idpath✓integer

Bodyapplication/json

FieldTypeRequiredDescription
workspacestringWorkspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).
kindstring✓`text` (name + text) or `url`.
namestringSource name (kind text).
textstringSource text (kind text).
urlstringPage to learn (kind url).

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
bot_idpath✓integer

Bodymultipart/form-data

FieldTypeRequiredDescription
filefile✓Document.
workspacestringWorkspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
bot_idpath✓integer
source_idpath✓integer
workspacequerystringWorkspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
workspacequerystringWorkspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
invite_idpath✓integer

Bodyapplication/json

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
invite_idpath✓integer

Bodyapplication/json

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
workspacequerystringWorkspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).
qquerystringFilter text.
limitqueryintegerDefault: `30`.
cursorquerystring

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
workspacestringWorkspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).
bot_idintegerChat with this bot.
modelstring`openai[:id]`, `claude[:id]` or `gemini[:id]` (ignored when bot_id is set); null = automatic.

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
session_idpath✓integer
workspacequerystringWorkspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
session_idpath✓integer
workspacequerystringWorkspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
session_idpath✓integer

Bodyapplication/json

FieldTypeRequiredDescription
workspacestringWorkspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).
namestringSession name; null or empty = default.
modelstringModel; null = automatic.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
session_idpath✓integer
workspacequerystringWorkspace slug. Defaults to the key's workspace; personal keys must pass a slug or `personal` (your personal AI wallet).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
message_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
message_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string

Bodyapplication/json

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string

Bodyapplication/json

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string

Bodyapplication/json

FieldTypeRequiredDescription
message_idsarray<string>✓Message ids to translate (max 40).
langstring✓Target language code.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
conversation_idpath✓string

Bodyapplication/json

FieldTypeRequiredDescription
autobooleanTranslate new messages automatically.
langstringTarget language; empty = interface language.
oldbooleanAlso translate older messages.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
viewquerystring`all`, `mine` (pinned or opened), `pinned` or `recent`. Default: `all`.
categoryquerystringOnly this category key.
labelquerystringOnly Pockets with this label (`l:<id>`).
qquerystringSearch name, description or slug.
platformquerystringPlatform to list for: `web`, `ios`, `ipad`, `android`, `macos`, `windows`, `linux`.
limitqueryintegerPage size. Default: `50`.
cursorquerystring`next_cursor` of the previous page.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
limitqueryintegerPage size. Default: `50`.
cursorquerystring`next_cursor` of the previous page.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
slugstring✓Permanent handle (`@slug`): lower-case letters, digits and `-`. Must match `slug` in the bundle's `pocket.json`. 409 `slug_taken` if used.
namestring✓Display name, 1-30 characters.
short_descriptionstringOne-line tagline, up to 30 characters.
categorystringCategory key, e.g. `productivity`, `utilities`, `finance`.
localesarray<string>Languages the Pocket supports, e.g. `["en", "vi"]`.
regionsarray<string>ISO-3166 alpha-2 country codes where it is listed, or `["*"]` for worldwide.
platformsarray<string>`web`, `ios`, `ipad`, `android`, `macos`, `windows`, `linux`, or `["*"]` for all.

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
pocket_idpath✓stringPocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
pocket_idpath✓stringPocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`.

Bodyapplication/json

FieldTypeRequiredDescription
namestringDisplay name, 1-30 characters (required).
short_descriptionstringOne-line tagline, up to 30 characters (required).
descriptionstringLong description (multi-line).
i18nobjectName 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`…).
categorystringCategory key (required), e.g. `productivity`, `utilities`, `finance`, `travel`, `developer_tools`, `other`.
support_emailstringSupport email (required).
privacy_urlstringPrivacy policy URL, `https://` only (required). Empty or null clears it.
envstring`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.
localesarray<string>Languages the Pocket supports (at least one).
regionsarray<string>ISO-3166 alpha-2 country codes, or `["*"]` for worldwide (at least one).
platformsarray<string>Platforms it runs on, or `["*"]` for all (at least one).
permissionsarray<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_reasonsobjectWhy each permission is needed, `{permission: reason}`. Every sensitive `user.*` permission except `user.profile` needs a reason of 10-80 characters.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
pocket_idpath✓stringPocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`.

Bodymultipart/form-data

FieldTypeRequiredDescription
filefile✓Square PNG/JPEG/WebP image.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
pocket_idpath✓stringPocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
pocket_idpath✓stringPocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
pocket_idpath✓stringPocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`.
fromquerystringStart date `YYYY-MM-DD` (UTC).
toquerystringEnd date `YYYY-MM-DD` (UTC).
byquerystringBreak the series down by `day`, `country`, `platform` or `locale`. Default: `day`.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
pocket_idpath✓stringPocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
pocket_idpath✓stringPocket ID (number from `create_pocket` / `list_my_pockets`) or `@slug`.

Bodymultipart/form-data

FieldTypeRequiredDescription
filefile✓Zip bundle.
release_notesstringPublic "What's new" for this version, up to 2000 characters.
review_notesstringNotes for reviewers only (test steps, demo account), up to 2000 characters. Not shown to users.

Responses

StatusDescription
201Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
version_idpath✓integerVersion ID (from `upload_pocket_version` or `get_my_pocket` → `versions`).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
version_idpath✓integerVersion ID (from `upload_pocket_version` or `get_my_pocket` → `versions`).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
version_idpath✓integerVersion ID (from `upload_pocket_version` or `get_my_pocket` → `versions`).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
version_idpath✓integerVersion ID (from `upload_pocket_version` or `get_my_pocket` → `versions`).

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
429`rate_limited` — see Retry-After
curl
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

FieldTypeRequiredDescription
handlestringPublic handle for `https://pocket.orova.vn/console/d/<handle>`: lower-case letters, digits and `-`. 400 `invalid_handle` / `reserved_handle` / `handle_taken`.
display_namestringDeveloper name shown on Pockets.
biostringShort introduction (multi-line).
websitestringWebsite URL, `https://` only.
support_emailstringPublic support email.
countrystringISO-3166 alpha-2 country code.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
limitqueryintegerPage size. Default: `50`.
cursorquerystring`next_cursor` of the previous page.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
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

NameInRequiredTypeDescription
slugpath✓stringPocket handle (`slug` or `@slug`) from `list_connected_pockets`.

Responses

StatusDescription
200Successful Response
401Missing, invalid, revoked or expired key (`invalid_token`)
403`insufficient_scope`, `not_enabled` or `ip_not_allowed`
422Invalid request (`invalid_request`)
429`rate_limited` — see Retry-After
curl
curl -X DELETE "https://chat.orova.vn/api/chat/v1/connected_pockets/{slug}" \
  -H "X-Api-Key: ock_…" \
  -H "X-Api-Secret: ocs_…"

Meta2

GET / get_api_index

API index

Public entry point: links to the docs, OpenAPI document, Swagger UI, llms.txt and MCP server, how to authenticate, and the number of operations per tag. No key required.

Public

Responses

StatusDescription
200Successful Response
curl
curl "https://chat.orova.vn/api/chat/v1/"
GET /llms.txt get_llms_txt

Plain-text API summary for LLMs

Every operation on one line (`METHOD /path — summary [scopes]`) plus authentication notes and curl examples. Generated from the OpenAPI document. No key required.

Public

Responses

StatusDescription
200Successful Response
curl
curl "https://chat.orova.vn/api/chat/v1/llms.txt"