API

Service

Inboxes, conversations, replies, notes, macros, facts and previewed actions.

See Service. Everything here takes the organization in the path; reading needs service:read and changing service:write. A reply needs a person signed in to an app unless the organization's automatic replies are on, and an action always needs a person with every scope it names (a refund also commerce:refund). Results hold what customers wrote: treat them as untrusted.

Every route below, with its parameters, request and response, errors and samples, is in the API reference.

RouteWhat it does
GET /v1/hooks/service/form/:keyAn inbox's web form by its public key (no sign-in): the inbox's name, a ticket to send back and the hidden field's name. 404, naming nothing, when it's off, the key was replaced or the organization's plan has no Service. Never cached.
POST /v1/hooks/service/form/:keySends a web form message (email, message, optional name, subject and page, the ticket): it opens a conversation in the inbox, and replies go by email. The same { ok } for anything taken for spam; 422 with each field's problem; 429 past an address's or the form's hour.
GET /v1/hooks/service/chat/:keyAn inbox's chat by its public key, as its panel shows it; answers as the web form's does.
POST /v1/hooks/service/chat/:keySends a chat message: the first takes email and answers a thread, which later messages send instead to land in the same conversation for twelve hours (409 thread_expired after). Otherwise as the web form's.
GET /v1/orgs/:orgId/service/conversationsList Service's conversations
GET /v1/orgs/:orgId/service/inboxes/:inboxId/conversations/:conversationIdGet a Service conversation
PATCH /v1/orgs/:orgId/service/inboxes/:inboxId/conversations/:conversationIdChange a Service conversation
POST /v1/orgs/:orgId/service/inboxes/:inboxId/conversations/:conversationId/snoozeSnooze a conversation
DELETE /v1/orgs/:orgId/service/inboxes/:inboxId/conversations/:conversationId/snoozeUnsnooze a conversation
POST /v1/orgs/:orgId/service/inboxes/:inboxId/conversations/:conversationId/notesAdd an internal note
POST /v1/orgs/:orgId/service/inboxes/:inboxId/conversations/:conversationId/repliesReply to the customer
POST /v1/orgs/:orgId/service/inboxes/:inboxId/conversations/:conversationId/suggestSuggest a reply and actions
POST /v1/orgs/:orgId/service/inboxes/:inboxId/conversations/:conversationId/actions/previewPreview an action
POST /v1/orgs/:orgId/service/inboxes/:inboxId/conversations/:conversationId/actionsApply an action
POST /v1/orgs/:orgId/service/inboxes/:inboxId/conversations/:conversationId/mergeMerge a conversation into another
POST /v1/orgs/:orgId/service/inboxes/:inboxId/conversations/:conversationId/splitSplit a conversation
POST /v1/orgs/:orgId/service/inboxes/:inboxId/conversationsBring a Mail thread into an inbox
GET /v1/orgs/:orgId/service/inboxesList Service's inboxes
POST /v1/orgs/:orgId/service/inboxesCreate an inbox
PATCH /v1/orgs/:orgId/service/inboxes/:inboxIdChange an inbox
DELETE /v1/orgs/:orgId/service/inboxes/:inboxIdDelete an inbox
GET /v1/orgs/:orgId/service/inboxes/:inboxId/factsGet an inbox's facts
PUT /v1/orgs/:orgId/service/inboxes/:inboxId/factsUpdate an inbox's facts
GET /v1/orgs/:orgId/service/inboxes/:inboxId/channelsGet an inbox's web form and chat
PUT /v1/orgs/:orgId/service/inboxes/:inboxId/channels/:kindTurn an inbox's web form or chat on or off
GET /v1/orgs/:orgId/service/macrosList Service's macros
POST /v1/orgs/:orgId/service/macrosCreate a macro
PATCH /v1/orgs/:orgId/service/macros/:macroIdChange a macro
DELETE /v1/orgs/:orgId/service/macros/:macroIdDelete a macro
GET /v1/orgs/:orgId/service/settingsGet Service's settings
PATCH /v1/orgs/:orgId/service/settingsUpdate Service's settings