Endpoints
Conversations
Open, close, assign and hand over conversations, pause the AI, and leave team comments.
Las rutas son relativas a la URL base. Cada tarjeta indica el permiso que necesita la llamada y cada parámetro, con su tipo y sus límites.
/conversationsList conversations, most recently updated first.
Parámetros de consulta
- limitopcionalinteger
1–100, default 20.
- offsetopcionalinteger
Number of conversations to skip, default 0.
- Returns a plain JSON array (offset pagination, not the list envelope).
/conversations/:idRetrieve a conversation with its messages, as { conversation, messages }.
Parámetros de ruta
- idobligatoriointeger
Conversation ID.
/conversations/:id/messagesPoll the AI replies of an API-channel conversation. Returns { conversationId, messages, cursor } with assistant messages newer than since.
Parámetros de ruta
- idobligatoriointeger
Conversation ID.
Parámetros de consulta
- sinceopcionalinteger
Return only messages with a larger ID (pass the previous cursor). Default 0.
- For every message of any conversation, use GET /messages?conversation_id= instead.
/conversations/:id/statusOpen or close a conversation, with an optional closing note.
Parámetros de ruta
- idobligatoriointeger
Conversation ID.
Cuerpo JSON
- statusobligatorioenum
New status.
Valores permitidos:
openclosed - closing_note_idopcionalinteger | null
A closing note from GET /closing-notes. Only when closing.
- closing_note_textopcionalstring | null
Free-text closing note, up to 2,000 characters. Only when closing.
- allow_reopenopcionalboolean
When closing: whether a new customer message reopens this conversation (true) or starts a new one (false).
/conversations/:id/assigneeAssign the conversation to a team member, or unassign it.
Parámetros de ruta
- idobligatoriointeger
Conversation ID.
Cuerpo JSON
- user_idopcionalstring | null
A user from GET /users. Omit or send null to unassign.
/conversations/:id/ai/pauseStop AI replies on a conversation.
Parámetros de ruta
- idobligatoriointeger
Conversation ID.
Cuerpo JSON
- untilopcionalstring (ISO 8601 date-time with offset) | null
Resume automatically at this time (must be in the future). Omit to pause until resumed.
- reasonopcionalstring
Up to 100 characters, passed to the conversation.ai_paused event.
/conversations/:id/ai/resumeTurn AI replies back on.
Parámetros de ruta
- idobligatoriointeger
Conversation ID.
/conversations/:id/handover/resolveMark the conversation's open handover requests as handled. Returns resolved_count.
Parámetros de ruta
- idobligatoriointeger
Conversation ID.
/conversations/:id/commentsList internal team comments on a conversation, newest first.
Parámetros de ruta
- idobligatoriointeger
Conversation ID.
/conversations/:id/commentsAdd an internal team comment. It is never sent to the customer.
Parámetros de ruta
- idobligatoriointeger
Conversation ID.
Cuerpo JSON
- bodyobligatoriostring
1–5,000 characters.
- mentionsopcionalarray of strings
Up to 20 user IDs from GET /users to notify.