List conversations

SDK platic.conversations.list()

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

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.

ParameterTypeDescription
fieldsstringFields to return, comma-separated. Replaces the default fields; id is always returned. See Fields
includestringRelations to resolve once per page in included: agents, channels, assignees. See Related records
limitintegerConversations per page, from 1 to 200. Default: 50
pageTokenstringThe nextPageToken of the previous page. See Pagination
sortBystringlastActivityAt (default) or createdAt
sortDirectionstringdesc (default) or asc
contactIdstringOnly conversations of this contact (clients in the API)
channelIdstringOnly conversations on this channel
agentIdstringOnly conversations whose main agent is this one
platformstringOnly conversations on this platform: whatsapp, instagram, facebook, email, webchat, platica… Lowercase letters, numbers and _, up to 40 characters
statusstringOnly these visible states: initiated, active, finished, archived, spam. See Status and operation
operationstringOnly these operations: automatic, supervised, assistance
tagsstringTag names, up to 10. A conversation matches when it has any of them
workspacestringThe 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.

FieldTypeDescription
idstringID of the conversation. Always present. Use it in every other /v2/conversations call
contactIdstring | nullID of the contact (/v1/clients/{id}). null when the conversation has none
contactNamestring | nullName of the contact on the conversation
channelIdstring | nullID of the channel the conversation runs on
platformstring | nullPlatform of the channel: whatsapp, instagram, facebook, email, webchat, platica…
agentIdstring | nullMain agent. A subagent taking a turn does not change it
statusstring | nullVisible state: initiated, active, finished, archived or spam
operationstring | nullWho answers: automatic (the agent), supervised (a person) or assistance (the agent asked for help)
topicstring | nullTopic of the conversation
assigneeIdsstring[]IDs of the assigned team members. Kept even when a member no longer exists; included.assignees says which
assignedToTeambooleanWhether the conversation is assigned to the whole team
tagsstring[]Tag names
lastActivityAtstring | nullLast activity, ISO 8601. The list sorts by it. It also moves when the conversation is assigned or tagged
createdAtstring | nullWhen the conversation started, ISO 8601
casesobjectSummary of its support cases. See the cases summary
activeAgentIdstring | nullAgent or subagent conducting the current turn, when it is not the main one
titlestring | nullTitle of a team chat (platform: platica), when it has one
summarystring | nullSummary of the conversation, where one exists
emailobjectOnly on email conversations: subject, mailbox, provider and contactEmail. See the email block
legacyConversationKeystring | nullThe 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 [].
  • email is 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.

include adds an included block with each related record once per page, so you do not repeat a lookup per row:

RelationResolvesAdds to fields
agentsagentId, and activeAgentId when you select itagentId
channelschannelIdchannelId
assigneesassigneeIds (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"
  }
}
FieldDescription
dataThe conversations of this page, with the selected fields
includedRelated records, only when you sent include
nextPageTokenToken of the next page; null on the last one
pagination.limitThe limit applied
pagination.returnedCountConversations in data
pagination.hasMoreAlways the same as nextPageToken !== null
meta.fieldsFields applied, including those a relation needs
meta.includeRelations applied
meta.requestIdID of the request, for support
meta.warningsOnly when there is something to report, for example UNKNOWN_STATUS with the id of a conversation whose status came back null

Pagination

  • Send nextPageToken as pageToken to get the next page. Stop when it is null.
  • A page can be shorter than limit, or even empty, and still have a token. Keep going until the token is null.
  • A token works only with the same workspace, filters and sort order. Otherwise the API answers 400 INVALID_CURSOR. You can change limit, fields and include between pages.
  • The list is live: a conversation whose lastActivityAt changes 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

Statusdetails.codeWhen it happens
400INVALID_REQUESTA parameter is invalid, for example limit out of range or an unknown status. details.issues says which
400INVALID_REQUESTThe workspace in ?workspace= is not covered by the credential. details.available lists the ones it covers
400INVALID_FIELDA name in fields does not exist. details.allowed lists the accepted ones
400INVALID_INCLUDEA name in include does not exist. details.allowed lists the accepted ones
400INVALID_CURSORThe pageToken belongs to another workspace, filters or sort order. Start again without it
401UNAUTHENTICATEDThe credential is missing or invalid
403FORBIDDENThe credential has no access to conversations in this workspace

The general error format is in Errors.