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
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /conversations/{id}/timeline | Everything said in a conversation across channels. | read | rivier inbox conversation timeline |
inbox
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /workspace/inboxes | The messaging inboxes. | read | rivier inbox inbox list |
| POST | /workspace/inboxes | Make an inbox for the website widget. | write | rivier inbox inbox create |
| PATCH | /workspace/inboxes/{id} | Change an inbox or its autonomy mode. | write | rivier inbox inbox update |
| DELETE | /workspace/inboxes/{id} | Delete an inbox. | write | rivier inbox inbox delete |
thread
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /workspace/inboxes/{id}/threads | The threads of an inbox. | read | rivier inbox thread list |
| GET | /workspace/threads/{id} | One thread with its messages. | read | rivier inbox thread get |
| POST | /workspace/threads/{id}/say | Answer a thread, or keep the answer as a draft. | write | rivier inbox thread say |
| POST | /workspace/threads/{id}/close | Close a thread. | write | rivier inbox thread close |
message
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /messages | Search 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. | read | rivier 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. | read | rivier inbox message get |
| POST | /messages/{id}/replay | Send a message's announcements to the project's webhook subscribers again (every endpoint, or one). | write | rivier inbox message replay |
| GET | /messages/dead-letters | Webhook deliveries about messages that ran out of attempts. Replay one with keys.delivery.replay. | read | rivier inbox message dead letters |
| GET | /messages/usage | Messages and billable units this period by channel and direction, for plan metering. Defaults to the current calendar month. | read | rivier inbox message usage |
| POST | /messages/test-event | Send the project's subscribers a signed test announcement, to check an endpoint receives it and verifies the signature. | write | rivier inbox message test event |
message error
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /messages/errors | The error catalogue: every provider or mail-server code with its plain cause and fix. | read | rivier 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). | read | rivier inbox message error explain |
message retention
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /messages/retention | How long the log keeps messages for this project. | read | rivier inbox message retention get |
| PUT | /messages/retention | Set how many days the log keeps messages (1 to 3650), or null for the deployment default. | write | rivier inbox message retention set |
message event
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /message-events | The message event stream from a cursor: every state change on every channel, oldest first. | read | rivier inbox message event list |
| GET | /message-events/stream | A server-sent stream of message events; reconnect with Last-Event-ID to resume. | read | rivier inbox message event stream |
contact centre agent
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /contact-centre/agents | Desk agents: people and AI agents, with skills, presence and how many conversations each can hold. | read | rivier desk agents |
| POST | /contact-centre/agents | Add an agent to the desk (a person's seat or an AI agent). | write | rivier desk agent-add |
| PUT | /contact-centre/agents/{id} | Change an agent's name, skills or limit. | write | rivier desk agent-set |
| DELETE | /contact-centre/agents/{id} | Remove an agent with no open conversations. | write | rivier desk agent-remove |
contact centre presence
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| POST | /contact-centre/agents/{id}/presence | Set an agent online, away or offline. Coming online takes waiting conversations in order. | write | rivier desk presence |
contact centre agent stats
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /contact-centre/agents/{id}/stats | What one agent has done: conversations handled, open now, average first response, replies and hand-offs. The same for people and AI agents. | read | rivier desk agent-stats |
contact centre queue
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /contact-centre/queues | Queues with the skills they need, the channels they take and their service targets. | read | rivier desk queues |
| POST | /contact-centre/queues | Create a queue: skills needed, channels, first-response and resolution targets, and an optional AI agent that answers first. | write | rivier desk queue-add |
| PUT | /contact-centre/queues/{id} | Change a queue. | write | rivier desk queue-set |
| DELETE | /contact-centre/queues/{id} | Remove a queue with no open conversations. | write | rivier desk queue-remove |
contact centre canned
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /contact-centre/canned | Canned replies an agent can insert, with the customer's and the agent's names filled in. | read | rivier desk canned |
| POST | /contact-centre/canned | Add a canned reply. | write | rivier desk canned-add |
| PUT | /contact-centre/canned/{id} | Change a canned reply. | write | rivier desk canned-set |
| DELETE | /contact-centre/canned/{id} | Remove a canned reply. | write | rivier desk canned-remove |
contact centre canned text
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| POST | /contact-centre/canned/{id}/render | A canned reply filled in for one conversation and one agent, ready to send. | write | rivier desk canned-render |
contact centre conversation
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /contact-centre/conversations | Conversations, newest first: filter by status, agent, queue or customer. | read | rivier desk list |
| POST | /contact-centre/conversations | Open 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). | write | rivier desk open |
| GET | /contact-centre/conversations/{id} | One conversation with its notes, replies, hand-off state and service-target state. | read | rivier desk get |
| POST | /contact-centre/conversations/{id}/assign | Give a conversation to an agent. | write | rivier desk assign |
| POST | /contact-centre/conversations/{id}/release | Put a conversation back in its queue. | write | rivier desk release |
| PUT | /contact-centre/conversations/{id}/tags | Set a conversation's tags. | write | rivier desk tag |
| POST | /contact-centre/conversations/{id}/close | Close a conversation, with how it was resolved. A customer who writes again reopens it. | write | rivier desk close |
contact centre timeline
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /contact-centre/conversations/{id}/timeline | Everything with this customer in one list: messages, mail, calls, the contact's timeline, and the desk's replies and notes. | read | rivier desk timeline |
contact centre reply
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| POST | /contact-centre/conversations/{id}/reply | Reply 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. | write | rivier desk reply |
contact centre composer
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /contact-centre/conversations/{id}/composer | What 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. | read | rivier desk composer |
contact centre measure
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| POST | /contact-centre/measure | How a text is counted by the carrier: characters, encoding (GSM-7 or UCS-2) and the number of parts it becomes. | write | rivier desk measure |
contact centre note
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| POST | /contact-centre/conversations/{id}/notes | Add an internal note the customer never sees. | write | rivier desk note |
contact centre handoff
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| POST | /contact-centre/conversations/{id}/handoff | Hand a conversation over. To a person: at once, back into the queue. To an AI agent: waits until a person approves. | write | rivier desk handoff |
contact centre handoff decision
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| POST | /contact-centre/conversations/{id}/handoff/decision | A person approves or declines a hand-off to an AI agent. An agent's own approval is refused. | write | rivier desk handoff-decide |
contact centre history
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /contact-centre/customers/history | Calls, messages and mail with one customer, by contact id, number or email address, newest first. | read | rivier desk history |
contact centre overview
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /contact-centre/overview | The 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. | read | rivier desk overview |
contact centre trace
| Method | Route | What it does | Level | Command |
|---|---|---|---|---|
| GET | /contact-centre/traces | The per-agent trace: what each agent did and when, for people and AI agents alike. Filter by agent or conversation. | read | rivier desk traces |