live-chat

GET /v1/chat/inbox

Every live conversation, and what is new in each.

Todos los endpoints de live-chat

Autenticación

Envía una clave de API como token de portador. La clave debe tener el permiso livechat.view; una clave que no lo tenga se rechazará con un código 403, no 404.

Donde va el ID de tu organización

Este endpoint acepta org_id como parámetro de consulta. Omítelo y la llamada abarcará todo tu subárbol de inquilinos; envíalo para acotar la llamada a una sola organización.

El id de tu organización se encuentra en la pantalla de claves de API en tu panel de control, junto a la propia clave. Es el mismo id en cada llamada que realices.

Pruébalo

Reemplaza cualquier elemento entre corchetes angulares por tus propios valores, y el marcador de posición key con una clave de tu panel de control.

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

¿Has iniciado sesión? La consola de la API en tu panel de control rellena el ID de tu organización real y tu propia clave, y ejecuta la solicitud contra la API en vivo para que puedas ver la respuesta real. Abre este endpoint en la consola de la API

Detalles

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.

Parámetros

NombreTipoObligatorio¿Qué es esto?
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.

Respuesta

NombreTipoObligatorio¿Qué es esto?
itemsChatConversationWithMessages[]
waitingintegerHow many are waiting for a human right now.
has_morebooleanWhether 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_msinteger

Errores que este endpoint puede devolver

401 · 403