List conversations
Get one page of conversations, most recent activity first, without their messages. Choose the fields you need with fields and resolve agents, channels or assignees once per page with include. To read the messages of a conversation, use List messages with its id.
Comment threads on Instagram and Facebook posts are not conversations and never appear here. Read them in Posts.
Example
curl "https://api.platic.ai/v2/conversations?status=active&operation=supervised&fields=contactName,agentId,lastActivityAt&include=agents&limit=20" \
-H "Authorization: Bearer $PLATIC_API_KEY" const page = await platic.conversations.list({
status: ["active"],
operation: ["supervised"],
fields: ["contactName", "agentId", "lastActivityAt"],
include: ["agents"],
limit: 20,
});
for (const conversation of page.data) console.log(conversation.id, conversation.contactName);
console.log(page.included?.agents, page.nextPageToken);
// Every page, one conversation at a time
for await (const conversation of platic.conversations.iterate({ status: ["active"] })) {
console.log(conversation.id);
} page has data, nextPageToken, pagination, meta and, when you ask for relations, included. iterate follows nextPageToken until it is null; use list when you need each page's included.
Query parameters
All parameters are optional. List parameters (fields, include, status, operation, tags) take comma-separated values or the parameter repeated.
| Parameter | Type | Description |
|---|---|---|
fields | string | Fields to return, comma-separated. Replaces the default fields; id is always returned. See Fields |
include | string | Relations to resolve once per page in included: agents, channels, assignees. See Related records |
limit | integer | Conversations per page, from 1 to 200. Default: 50 |
pageToken | string | The nextPageToken of the previous page. See Pagination |
sortBy | string | lastActivityAt (default) or createdAt |
sortDirection | string | desc (default) or asc |
contactId | string | Only conversations of this contact (clients in the API) |
channelId | string | Only conversations on this channel |
agentId | string | Only conversations whose main agent is this one |
platform | string | Only conversations on this platform: whatsapp, instagram, facebook, email, webchat, platica… Lowercase letters, numbers and _, up to 40 characters |
status | string | Only these visible states: initiated, active, finished, archived, spam. See Status and operation |
operation | string | Only these operations: automatic, supervised, assistance |
tags | string | Tag names, up to 10. A conversation matches when it has any of them |
workspace | string | The workspace to read, for an API key that covers several. Other credentials always read their own workspace |
Filters combine with AND: ?status=active&operation=supervised returns active conversations a person is handling. Values inside one filter combine with OR.
Fields
Without fields, each conversation has these fields:
id, contactId, contactName, channelId, platform, agentId, status, operation,
topic, assigneeIds, assignedToTeam, tags, lastActivityAt Send fields to choose them. It replaces the defaults, it does not add to them: ?fields=topic returns id and topic. An unknown field answers 400 INVALID_FIELD with the accepted names in details.allowed.
| Field | Type | Description |
|---|---|---|
id | string | ID of the conversation. Always present. Use it in every other /v2/conversations call |
contactId | string | null | ID of the contact (/v1/clients/{id}). null when the conversation has none |
contactName | string | null | Name of the contact on the conversation |
channelId | string | null | ID of the channel the conversation runs on |
platform | string | null | Platform of the channel: whatsapp, instagram, facebook, email, webchat, platica… |
agentId | string | null | Main agent. A subagent taking a turn does not change it |
status | string | null | Visible state: initiated, active, finished, archived or spam |
operation | string | null | Who answers: automatic (the agent), supervised (a person) or assistance (the agent asked for help) |
topic | string | null | Topic of the conversation |
assigneeIds | string[] | IDs of the assigned team members. Kept even when a member no longer exists; included.assignees says which |
assignedToTeam | boolean | Whether the conversation is assigned to the whole team |
tags | string[] | Tag names |
lastActivityAt | string | null | Last activity, ISO 8601. The list sorts by it. It also moves when the conversation is assigned or tagged |
createdAt | string | null | When the conversation started, ISO 8601 |
cases | object | Summary of its support cases. See the cases summary |
activeAgentId | string | null | Agent or subagent conducting the current turn, when it is not the main one |
title | string | null | Title of a team chat (platform: platica), when it has one |
summary | string | null | Summary of the conversation, where one exists |
email | object | Only on email conversations: subject, mailbox, provider and contactEmail. See the email block |
legacyConversationKey | string | null | The old V1 conversationId key (a phone number or thread key on some channels). For diagnosis only: V2 never accepts it as an ID |
How a selected field shows up:
- A field that applies but has no value is
null. - An empty list is
[]. emailis left out on conversations that are not email threads.- A field you did not select is left out.
meta.fields lists the fields that were applied, including the ones a relation added.
Related records
include adds an included block with each related record once per page, so you do not repeat a lookup per row:
| Relation | Resolves | Adds to fields |
|---|---|---|
agents | agentId, and activeAgentId when you select it | agentId |
channels | channelId | channelId |
assignees | assigneeIds (the team, assignedToTeam, is not a record) | assigneeIds |
{
"included": {
"agents": [{ "id": "ag_sales", "name": "Sales", "resolved": true }],
"channels": [{ "id": "wb-123", "name": "Acme WhatsApp", "platform": "whatsapp", "resolved": true }],
"assignees": [{ "id": "usr_ana", "name": "Ana López", "email": "ana@acme.com", "resolved": true }]
}
} A record that cannot be found keeps its ID with "resolved": false and name: null; it is never dropped. An unknown relation answers 400 INVALID_INCLUDE with the accepted values in details.allowed.
Response
{
"status": "success",
"data": [
{
"id": "8Yc2kQ1mZ0rTq4Lp7WvX",
"contactName": "Ana López",
"agentId": "ag_sales",
"lastActivityAt": "2026-11-30T18:00:00.000Z"
}
],
"included": {
"agents": [{ "id": "ag_sales", "name": "Sales", "resolved": true }]
},
"nextPageToken": "eyJ2IjoyLCJyIjoiY29udmVyc2F0aW9ucyJ9...",
"pagination": { "limit": 20, "returnedCount": 1, "hasMore": true },
"meta": {
"fields": ["id", "contactName", "agentId", "lastActivityAt"],
"include": ["agents"],
"requestId": "req_7f3a"
}
} | Field | Description |
|---|---|
data | The conversations of this page, with the selected fields |
included | Related records, only when you sent include |
nextPageToken | Token of the next page; null on the last one |
pagination.limit | The limit applied |
pagination.returnedCount | Conversations in data |
pagination.hasMore | Always the same as nextPageToken !== null |
meta.fields | Fields applied, including those a relation needs |
meta.include | Relations applied |
meta.requestId | ID of the request, for support |
meta.warnings | Only when there is something to report, for example UNKNOWN_STATUS with the id of a conversation whose status came back null |
Pagination
- Send
nextPageTokenaspageTokento get the next page. Stop when it isnull. - A page can be shorter than
limit, or even empty, and still have a token. Keep going until the token isnull. - A token works only with the same workspace, filters and sort order. Otherwise the API answers
400 INVALID_CURSOR. You can changelimit,fieldsandincludebetween pages. - The list is live: a conversation whose
lastActivityAtchanges while you page can move to another position.
The general rules are in Pagination.
Who sees what
Each call reads one workspace and returns only the conversations the credential may read:
- An API key reads every conversation in its workspace.
- An OAuth connection acts as the person who authorized it, with their current permissions. If their role only reaches assigned conversations, the list has only those assigned to them or to
team.
Errors
| Status | details.code | When it happens |
|---|---|---|
400 | INVALID_REQUEST | A parameter is invalid, for example limit out of range or an unknown status. details.issues says which |
400 | INVALID_REQUEST | The workspace in ?workspace= is not covered by the credential. details.available lists the ones it covers |
400 | INVALID_FIELD | A name in fields does not exist. details.allowed lists the accepted ones |
400 | INVALID_INCLUDE | A name in include does not exist. details.allowed lists the accepted ones |
400 | INVALID_CURSOR | The pageToken belongs to another workspace, filters or sort order. Start again without it |
401 | UNAUTHENTICATED | The credential is missing or invalid |
403 | FORBIDDEN | The credential has no access to conversations in this workspace |
The general error format is in Errors.