Docs menu

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_idstringrequired

    The line (prf_…).

  • chat_idstringrequired

    The chat (cht_…).

Response

200 OKThe chat.

  • idstringrequired

    cht_…

  • object"chat"required

  • profile_idstringrequired

    prf_…

  • handlestringrequired

    The other side: a phone number (+1…), an email, or a group chat id.

  • kind"dm" | "group"required

  • titlestring or nullrequired

    The chat's own name (group chats).

  • contactChatContact or nullrequired

    What the team calls the person (contacts), or null when nobody named them.

    Fields of contact
    • namestring or nullrequired

    • tagsarray of stringrequired

  • last_message_attimestamp or nullrequired

  • assigned_to"agent" | "human" or nullrequired

    Who handles the chat; a flag your agent can read and set.

  • last_read_attimestamp or nullrequired

  • created_attimestamprequired

Errors

StatusCodeMeans
400validation_failedA field is missing or invalid.
401unauthorizedThe API key is missing, unknown or revoked.
403insufficient_scopeThe API key lacks the scope this needs.
404not_foundNo such object, or the key can't see it.

Every error is { "error": { "code", "message" } }. All error codes.

Keys come with your first line.

Request an invite and we'll set up a line for your team. API access is part of every plan.

Request an invite