Get a chat
GET/v1/profiles/{profile_id}/chats/{chat_id}
- Scope
messages:read
One chat, with the name your team gave the person (contact).
Parameters
Path
profile_idstringrequiredThe line (
prf_…).chat_idstringrequiredThe chat (
cht_…).
Response
200 OKThe chat.
idstringrequiredcht_…object"chat"requiredprofile_idstringrequiredprf_…handlestringrequiredThe other side: a phone number (
+1…), an email, or a group chat id.kind"dm" | "group"requiredtitlestring or nullrequiredThe chat's own name (group chats).
contactChatContact or nullrequiredWhat the team calls the person (contacts), or null when nobody named them.
Fields of
contactnamestring or nullrequiredtagsarray of stringrequired
last_message_attimestamp or nullrequiredassigned_to"agent" | "human" or nullrequiredWho handles the chat; a flag your agent can read and set.
last_read_attimestamp or nullrequiredcreated_attimestamprequired
Errors
| Status | Code | Means |
|---|---|---|
| 400 | validation_failed | A field is missing or invalid. |
| 401 | unauthorized | The API key is missing, unknown or revoked. |
| 403 | insufficient_scope | The API key lacks the scope this needs. |
| 404 | not_found | No such object, or the key can't see it. |
Every error is { "error": { "code", "message" } }. All error codes.