Worked request and response samples
Copy a request as written, substitute your own ids, and compare the response envelope. Errors follow Devotel Orbit’s{ error, meta } envelope, shown under Error envelope.
Inbound message flow
An inbound message arrives on one of your channels (an SMS carrier webhook, a WhatsApp callback, an email ingest, the web-chat widget, and so on) and is folded onto one normalized shape. Every message you list or reply to below is the same object — the carrier differences are already folded out. For the webhook side of that flow — thedata.normalized block stamped on inbound message and opt-out envelopes, one kind discriminator, and the single normalized.inbound subscription that covers the whole inbound family — see Normalized inbound event envelope.
1. List conversations
GET /api/v1/conversations/2. Open one conversation
GET /api/v1/conversations/{id}GET /api/v1/conversations/{id}/messages. Each element of its data array looks like:
GET /api/v1/conversations/export?format=json&include_messages=true inlines each conversation’s full transcript in one response.
3. Post a reply
POST /api/v1/conversations/{id}/replybody and from are the usual pair; media_url works on its own when you are sending an attachment. channel optionally overrides the reply channel, and email replies can carry subject, cc, and bcc top-level.
A successful reply answers 202 Accepted with the message status set to queued — the message is accepted onto the conversation and delivery continues asynchronously, so poll GET /:id/messages or your message.delivered webhook for the final status:
4. Reply to a closed conversation
closed, archived, and snoozed conversations reject replies so a scripted caller cannot bill a send or disturb a deferred thread — reopen first with POST /api/v1/conversations/{id}/reopen. The message names the status so your client can point the operator at the next action:
422
Error envelope
Malformed input returns the standard validation envelope:422
Worked sequences
The samples above show one operation each. This section chains them into the full inbox loop an integration actually drives: receive, triage, note, reply, close, then read the result back throughGET /api/v1/interactions and its CSV export. The Node tabs use the typed omnichannel surface (orbit.conversations.list / reply / assign / close / snooze / merge / bulk and orbit.inbox.notes.*, documented in the Node SDK under “Inbox & Conversations”); the other languages run the same chain over each SDK’s low-level request helper.
1. Receive: verify the webhook, then let the inbox hold the thread
Orbit POSTs every customer message to the endpoint you registered under Settings → Webhooks as a signedmessage.received event. The message is already in your inbox as a conversation thread; your handler only feeds your own queue. Capture the raw body before any JSON middleware touches it and verify the signature first (constructEvent throws on a bad signature; answer those with a plain 400). The complete handler per language is in Verify webhook signatures; the Node shape is:
Node — verify, then hand off to triage
2. Triage: list what still needs an operator
status=open returns the work backlog, newest first. Read the transcript before answering, and assign the thread so two operators never work the same customer.
3. Note: leave context for the next operator
An internal note is visible to your team only; it is never sent to the customer. Use it for handoffs (“VIP customer, priority.”) before the reply goes out.Node.js — typed inbox tooling
4. Reply on the channel the customer wrote to
POST /api/v1/conversations/{id}/reply (typed: orbit.conversations.reply) answers on the conversation’s own channel and sender identity. A 202 with status: "queued" means the send is accepted; confirm final delivery with the message.delivered webhook or GET /api/v1/conversations/{id}/messages, as in Receive a customer message, reply, and clear the queue.
5. Close: clear the queue
Close flips the thread toclosed and moves it out of your status=open views. Snooze instead when the ball is in the customer’s court; reopen if they write back after a close.
Read back: GET /api/v1/interactions
GET /api/v1/interactions unions your two record families, messaging conversations and voice calls, into one recency-ordered list; both row types carry the same ordering key, last_activity_at. types=call narrows to call rows, channels=voice narrows to voice rows, and dropping voice from a channel set removes call rows entirely. Call rows return preview: null; conversation rows carry a plain-text snippet of the latest message.
200 — types=call&channels=voice returns call rows only; omit the filters for the union
Export: GET /api/v1/interactions/export.csv
The export applies the same filter set as the list and walks the cursor chain to a 20,000-row ceiling; a truncated export setsX-Export-Truncated: true. Write it to disk with -o, exactly as you would any other read:
GET /api/v1/interactions is open to the owner, admin, developer, and viewer roles; the CSV export is a bulk, org-wide pull and requires owner, admin, or developer holding the contacts:read scope. A viewer key still reads the list and only the export is rejected, with a 403 naming the missing grant.
Error envelopes for the sequence
An unknown conversation id anywhere in the chain (reply, close, notes) returns the standard404:
404
viewer key (or any key without contacts:read) calling the export receives 403 while the plain list keeps working:
403