live-chat

GET /v1/chat/inbox

Every live conversation, and what is new in each.

All live-chat endpoints

Authentication

Send an API key as a bearer token. The key must carry the livechat.view permission; a key without it is refused with 403, not 404.

Where your organisation id goes

This endpoint takes org_id as a query parameter. Leave it out and the call covers your whole tenancy subtree; send it to narrow the call to one organisation.

Your organisation id is on the API keys screen in your dashboard, beside the key itself. It is the same id in every call you make.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X GET https://api.zinndigital.com/v1/chat/inbox \
  -H "Authorization: Bearer zdk_live_…"

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

Requires `livechat.view`. **One request serves the whole inbox**: pass what this browser already has as `cursors`, and the response carries only what it does not. An operator with eleven conversations open costs one poll, not eleven.

Parameters

NameTypeRequiredWhat it is
org_id (query)UuidNoThe organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agen…
cursors (query)stringNo`conversationId:seq` pairs, comma-separated — what the caller already holds.

Response

NameTypeRequiredWhat it is
itemsChatConversationWithMessages[]Yes
waitingintegerYesHow many are waiting for a human right now.
has_morebooleanYesWhether more conversations exist than this page carries. Reported rather than silently truncated: "50 conversations" and "50 of 84" are different facts and only one of them tell…
poll_after_msintegerYes

Errors this endpoint can return

401 · 403