List chats

SDK platic.chat.list()

Read workspace chats with source: "api_chat", regardless of who created them. Each includes the summary from List conversations (V1), without messages.

Chats come in a single list, newest first by lastUpdate, in pages: to get the next one, send the response's nextPageToken as pageToken.

Example

await platic.chat.list({ clientId: "client_123" });

The next page, with the same filters:

curl "https://api.platic.ai/v1/chat?clientId=$CLIENT_ID&limit=20&pageToken=$NEXT_PAGE_TOKEN" \
  -H "Authorization: Bearer $PLATIC_API_KEY"

Query parameters

ParameterTypeDescriptionRequired
clientIdstringFilters the chats attributed to a specific contact—
agentIdstringFilters by the chat's main agent—
limitintegerChats per page. Maximum: 200. Default: 50—
pageTokenstringThe previous page's nextPageToken. It stops working if you change clientId, agentId, limit or workspace—
workspacestringOnly if the credential covers several workspaces: the workspace you read. Required in that case—

Response

{
  "status": "success",
  "data": [
    {
      "id": "conversation_doc_01JCHAT",
      "conversationId": "chat_01JCHAT23456789",
      "clientId": "client_123",
      "agentId": "agent_01JABCDEF23456789",
      "canSendDirectMessage": true,
      "workspaceId": "ws_001",
      "channelId": "workspace-ws_001-agent-agent_01JABCDEF23456789",
      "contactName": "Ana López",
      "phoneNumber": "5215512345678",
      "topic": "Plan selection",
      "platform": "platica",
      "source": "api_chat",
      "status": "active",
      "operation": "automatic",
      "messageCount": 4,
      "owners": ["sales@acme.com"],
      "tags": ["prospect"],
      "creationDate": "2026-07-20T18:00:00.000Z",
      "lastUpdate": "2026-07-20T18:30:00.000Z"
    }
  ],
  "nextPageToken": "eyJ2IjoxLCJxIjoiYTFi..."
}

data has the chats of this page and nextPageToken the token for the next one (null on the last page).

FieldDescription
idUnique, canonical ID of the document. Use it in GET /v1/chat/{id} and in the Conversations endpoints
conversationIdThread ID (chat_*). Every new Chat API request generates a different one; use it to continue with POST /v1/chat. It is not a contact ID
clientIdContact the chat is attributed to
agentIdMain agent of the chat; it does not change when it temporarily delegates to a subagent
canSendDirectMessageAlways true in Platica internal chats
workspaceIdID of the workspace the chat belongs to
channelIdID of the internal channel
contactNameName of the contact
phoneNumberThe contact's phone number, when there is one
topicTopic or subject of the chat
platformPlatform; for these chats it is platica
sourceAlways api_chat
statusChat state: active, finished or expired
operationOperation mode of the chat
messageCountMessages stored in the chat; the list does not include messages. It can be higher than the count in Get a chat, which does not count empty messages
ownersList of emails of the responsible users
tagsAssociated tags
creationDateCreation date, ISO 8601
lastUpdateLast update date, ISO 8601

Errors

Statusdetails.codeWhen
400INVALID_REQUESTA parameter is not valid, the pageToken is not from this query, or the credential covers several workspaces and workspace is missing or is not one of them (details.available lists the valid ones)
401UNAUTHENTICATEDThe credential is missing or not valid

See Errors for the full shape of an error.