API reference

Inbox

Mailboxes, threads, drafts, rules, the contact centre and the message log for every channel.

Scopes for this area: inbox:read, inbox:write and inbox:admin.

53 operations

conversation

MethodRouteWhat it doesLevelCommand
GET/conversations/{id}/timelineEverything said in a conversation across channels.readrivier inbox conversation timeline

inbox

MethodRouteWhat it doesLevelCommand
GET/workspace/inboxesThe messaging inboxes.readrivier inbox inbox list
POST/workspace/inboxesMake an inbox for the website widget.writerivier inbox inbox create
PATCH/workspace/inboxes/{id}Change an inbox or its autonomy mode.writerivier inbox inbox update
DELETE/workspace/inboxes/{id}Delete an inbox.writerivier inbox inbox delete

thread

MethodRouteWhat it doesLevelCommand
GET/workspace/inboxes/{id}/threadsThe threads of an inbox.readrivier inbox thread list
GET/workspace/threads/{id}One thread with its messages.readrivier inbox thread get
POST/workspace/threads/{id}/sayAnswer a thread, or keep the answer as a draft.writerivier inbox thread say
POST/workspace/threads/{id}/closeClose a thread.writerivier inbox thread close

message

MethodRouteWhat it doesLevelCommand
GET/messagesSearch the message log across email, SMS, WhatsApp and voice: by address, message id or provider id, channel, state, error code and time. Newest first, a cursor for more.readrivier inbox message list
GET/messages/{id}One message with its timeline of provider events, the plain cause of any error and what to do about it. The body of the message is never part of the log.readrivier inbox message get
POST/messages/{id}/replaySend a message's announcements to the project's webhook subscribers again (every endpoint, or one).writerivier inbox message replay
GET/messages/dead-lettersWebhook deliveries about messages that ran out of attempts. Replay one with keys.delivery.replay.readrivier inbox message dead letters
GET/messages/usageMessages and billable units this period by channel and direction, for plan metering. Defaults to the current calendar month.readrivier inbox message usage
POST/messages/test-eventSend the project's subscribers a signed test announcement, to check an endpoint receives it and verifies the signature.writerivier inbox message test event

message error

MethodRouteWhat it doesLevelCommand
GET/messages/errorsThe error catalogue: every provider or mail-server code with its plain cause and fix.readrivier inbox message error list
GET/messages/errors/{code}The plain cause and fix for one code (a mail status such as 5.1.1 or a phone-network code).readrivier inbox message error explain

message retention

MethodRouteWhat it doesLevelCommand
GET/messages/retentionHow long the log keeps messages for this project.readrivier inbox message retention get
PUT/messages/retentionSet how many days the log keeps messages (1 to 3650), or null for the deployment default.writerivier inbox message retention set

message event

MethodRouteWhat it doesLevelCommand
GET/message-eventsThe message event stream from a cursor: every state change on every channel, oldest first.readrivier inbox message event list
GET/message-events/streamA server-sent stream of message events; reconnect with Last-Event-ID to resume.readrivier inbox message event stream

contact centre agent

MethodRouteWhat it doesLevelCommand
GET/contact-centre/agentsDesk agents: people and AI agents, with skills, presence and how many conversations each can hold.readrivier desk agents
POST/contact-centre/agentsAdd an agent to the desk (a person's seat or an AI agent).writerivier desk agent-add
PUT/contact-centre/agents/{id}Change an agent's name, skills or limit.writerivier desk agent-set
DELETE/contact-centre/agents/{id}Remove an agent with no open conversations.writerivier desk agent-remove

contact centre presence

MethodRouteWhat it doesLevelCommand
POST/contact-centre/agents/{id}/presenceSet an agent online, away or offline. Coming online takes waiting conversations in order.writerivier desk presence

contact centre agent stats

MethodRouteWhat it doesLevelCommand
GET/contact-centre/agents/{id}/statsWhat one agent has done: conversations handled, open now, average first response, replies and hand-offs. The same for people and AI agents.readrivier desk agent-stats

contact centre queue

MethodRouteWhat it doesLevelCommand
GET/contact-centre/queuesQueues with the skills they need, the channels they take and their service targets.readrivier desk queues
POST/contact-centre/queuesCreate a queue: skills needed, channels, first-response and resolution targets, and an optional AI agent that answers first.writerivier desk queue-add
PUT/contact-centre/queues/{id}Change a queue.writerivier desk queue-set
DELETE/contact-centre/queues/{id}Remove a queue with no open conversations.writerivier desk queue-remove

contact centre canned

MethodRouteWhat it doesLevelCommand
GET/contact-centre/cannedCanned replies an agent can insert, with the customer's and the agent's names filled in.readrivier desk canned
POST/contact-centre/cannedAdd a canned reply.writerivier desk canned-add
PUT/contact-centre/canned/{id}Change a canned reply.writerivier desk canned-set
DELETE/contact-centre/canned/{id}Remove a canned reply.writerivier desk canned-remove

contact centre canned text

MethodRouteWhat it doesLevelCommand
POST/contact-centre/canned/{id}/renderA canned reply filled in for one conversation and one agent, ready to send.writerivier desk canned-render

contact centre conversation

MethodRouteWhat it doesLevelCommand
GET/contact-centre/conversationsConversations, newest first: filter by status, agent, queue or customer.readrivier desk list
POST/contact-centre/conversationsOpen a conversation for a customer. It is matched to a contact by number or email, given service targets from its queue, and routed by skills and load (or to the queue's AI agent first).writerivier desk open
GET/contact-centre/conversations/{id}One conversation with its notes, replies, hand-off state and service-target state.readrivier desk get
POST/contact-centre/conversations/{id}/assignGive a conversation to an agent.writerivier desk assign
POST/contact-centre/conversations/{id}/releasePut a conversation back in its queue.writerivier desk release
PUT/contact-centre/conversations/{id}/tagsSet a conversation's tags.writerivier desk tag
POST/contact-centre/conversations/{id}/closeClose a conversation, with how it was resolved. A customer who writes again reopens it.writerivier desk close

contact centre timeline

MethodRouteWhat it doesLevelCommand
GET/contact-centre/conversations/{id}/timelineEverything with this customer in one list: messages, mail, calls, the contact's timeline, and the desk's replies and notes.readrivier desk timeline

contact centre reply

MethodRouteWhat it doesLevelCommand
POST/contact-centre/conversations/{id}/replyReply to the customer on the conversation's channel as the agent it is with: a mail, a text, a WhatsApp message (a template when the 24-hour window is closed), a requested call back, or a web chat message. Each goes through the channel's own checks, consent and plan allowance, and is refused with the reason and the next step.writerivier desk reply

contact centre composer

MethodRouteWhat it doesLevelCommand
GET/contact-centre/conversations/{id}/composerWhat a reply to this conversation needs: whether it can go now and why not, the channel's limit, the WhatsApp 24-hour window and approved templates, whether it is quiet hours where the customer is, and whether they opted out.readrivier desk composer

contact centre measure

MethodRouteWhat it doesLevelCommand
POST/contact-centre/measureHow a text is counted by the carrier: characters, encoding (GSM-7 or UCS-2) and the number of parts it becomes.writerivier desk measure

contact centre note

MethodRouteWhat it doesLevelCommand
POST/contact-centre/conversations/{id}/notesAdd an internal note the customer never sees.writerivier desk note

contact centre handoff

MethodRouteWhat it doesLevelCommand
POST/contact-centre/conversations/{id}/handoffHand a conversation over. To a person: at once, back into the queue. To an AI agent: waits until a person approves.writerivier desk handoff

contact centre handoff decision

MethodRouteWhat it doesLevelCommand
POST/contact-centre/conversations/{id}/handoff/decisionA person approves or declines a hand-off to an AI agent. An agent's own approval is refused.writerivier desk handoff-decide

contact centre history

MethodRouteWhat it doesLevelCommand
GET/contact-centre/customers/historyCalls, messages and mail with one customer, by contact id, number or email address, newest first.readrivier desk history

contact centre overview

MethodRouteWhat it doesLevelCommand
GET/contact-centre/overviewThe supervisor view: per queue, how many wait, the longest wait and how many are at risk or past their target; per agent, presence and load.readrivier desk overview

contact centre trace

MethodRouteWhat it doesLevelCommand
GET/contact-centre/tracesThe per-agent trace: what each agent did and when, for people and AI agents alike. Filter by agent or conversation.readrivier desk traces