Conversations
The unified inbox: one conversation per person per channel, whatever they wrote in — email, chat widget, WhatsApp, Messenger, Slack, SMS.
This page covers two scope groups, because reading an inbox and sending on your customers' behalf are different privileges:
| Surface | Scope |
|---|---|
| Conversations, channels, tags, routing, SLAs, reports, settings | conversation:read · conversation:write |
| Sending, editing and deleting messages | messaging:read · messaging:write |
| The per-conversation AI endpoints | ai:read · ai:write |
messaging is rate-limited as heavy and ai as ai — see Rate limits.
Conversations
/conversationsPaged list.Try it/conversations/searchFull-text search across conversations.Try it/conversations/{id}One conversation with its participants and state.Try it/conversations/{id}Update status, priority or assignment metadata.Try it/conversations/{id}/assignAssign to a person, a group or the AI agent.Try it/conversations/{id}/handoffsThe assignment history.Try it/conversations/{id}/tagsTag the conversation.Try it/conversations/{id}/tags/{tagId}Untag it.Try it/conversations/{id}/contactThe CRM contact behind the conversation.Try itTurning a conversation into work
/conversations/{id}/convert/leadCreate a CRM lead from the conversation.Try it/conversations/{id}/convert/ticketOpen a ticket from it.Try it/conversations/{id}/tasksCreate a task from it.Try it/conversations/{id}/macros/{cannedReplyId}/applyApply a canned reply and its side effects.Try itSide conversations and approvals
/conversations/{id}/side-conversationsThreads with a supplier or colleague the customer never sees.Try it/conversations/{id}/side-conversationsStart one.Try it/side-conversations/{sideId}/replyContinue one.Try it/side-conversations/{sideId}/closeClose one.Try it/conversations/{id}/approvalsApproval requests on a draft reply.Try it/conversations/{id}/approvalsRequest approval on a draft.Try itMessages
Scope: messaging.
curl -X POST https://api.onivos.com/conversations/175041000000000042/messages \
-H "Authorization: Bearer onv_live_xxxxxxxx" \
-H "Idempotency-Key: reply-8f14e45f" \
-H "Content-Type: application/json" \
-d '{ "body": "Your order shipped this morning — tracking is on its way.", "internal": false }'/conversations/{id}/messagesPaged message history.Try it/conversations/{id}/messagesSend a message. internal: true writes a team-only note.Try it/conversations/{id}/messages/{messageId}Edit — internal notes only, and only your own.Try it/conversations/{id}/messages/{messageId}Delete an internal note. Author, or an admin.Try it/messages/{id}/translateTranslate one message.Try itA sent customer message cannot be edited
internal: true writes a note only your team sees, and notes are editable. A message that went out to the customer left the platform — the edit and delete endpoints refuse it. Use Idempotency-Key so a retry does not send twice.
AI on a conversation
Scope: ai. Each of these spends credits.
/conversations/{id}/ai/suggestDraft a reply.Try it/conversations/{id}/ai/summarySummarise the thread.Try it/conversations/{id}/ai/translateTranslate the thread.Try it/conversations/{id}/ai/classifyClassify intent and sentiment.Try it/conversations/{id}/ai/classify/applyApply the classification to the conversation.Try it/conversations/{id}/ai/extractExtract structured fields from the thread.Try it/conversations/{id}/ai/extract/applyWrite the extracted fields to the contact.Try it/conversations/{id}/ai/promptRun a saved inbox prompt.Try it/inbox/ai-promptsSaved inbox prompts.Try it/inbox/ai-promptsCreate one.Try it/inbox/ai-prompts/{id}Update one.Try it/inbox/ai-prompts/{id}Delete one.Try it/conversations/{id}/suggestions/{messageId}/resolveSend (optionally edited) or dismiss an AI suggestion.Try itChannels
/channelsConnected channels.Try it/channelsAdd a channel.Try it/channels/{id}Update a channel.Try it/channels/{id}Disconnect a channel.Try it/channels/{id}/connectFinish connecting a channel that needs credentials.Try itChannels that support OAuth are connected through a browser consent flow, not by posting credentials — start it at /channels/{id}/{provider}/oauth/start and let the provider redirect back. That is the supported path for Gmail, Outlook, Slack, Meta and Zalo.
Inbox configuration
/inbox/settingsInbox-wide settings.Try it/inbox/settingsReplace inbox settings.Try it/inbox/viewsSaved inbox views.Try it/inbox/viewsCreate a view.Try it/inbox/views/{id}Update a view.Try it/inbox/views/{id}Delete a view.Try it/inbox/views/countsPer-view conversation counts.Try it/inbox/attributesCustom conversation attributes.Try it/inbox/attributesCreate one.Try it/inbox/attributes/{id}Update one.Try it/inbox/attributes/{id}Delete one.Try it/inbox/attributes/previewDry-run an attribute against recent conversations.Try it/inbox/skillsSkill-based routing definitions.Try it/inbox/skillsReplace them.Try it/routing-rulesAssignment rules.Try it/routing-rulesCreate a rule.Try it/routing-rules/{id}Update a rule.Try it/routing-rules/{id}Delete a rule.Try it/sla-policiesFirst-reply and resolution targets.Try it/sla-policiesCreate a policy.Try it/sla-policies/{id}Update a policy.Try it/sla-policies/{id}Delete a policy.Try it/canned-repliesSaved replies.Try it/canned-repliesCreate one.Try it/canned-replies/{id}Update one.Try it/canned-replies/{id}Delete one.Try itReporting
/inbox/reportVolume, response and resolution metrics.Try it/inbox/report/performancePer-agent performance.Try it/inbox/report/widgetChat-widget engagement.Try it/inbox/peopleThe people behind your conversations.Try it/inbox/people/{contactId}One person, with their conversation history.Try it/inbox/reviewsConversation quality reviews.Try itWidget and webhook endpoints
The chat widget and each messaging provider talk to dedicated public endpoints under /conversation/widget/… and /conversation/webhooks/…. They authenticate with their own session or provider signature, not with an API key, and are called by the widget script and the providers — not by your integration.
Related
- Contacts & CRM — the person on the other end.
- AI agents — the agent that can answer for you.
- Automation — react to a new conversation automatically.