Skip to content

List chats (v2)

Request

Paginated chat list for the authenticated agent, selected by scope. The agent and client are resolved from your API key / session. Returns a lean ChatParticipantResponse page and replaces the deprecated Get chat participants.

Security
apikeyAuth
Query
scopestringrequired

Which list to return: my (assigned to you), team (your team's), unassigned, closed, my-missed, missed-agent, missed-after-hours, open (all open client chats), or all (open and closed).

unassigned is scoped by role: supervisors see every queued chat for the client; an agent with the unassigned-inbox permission sees chats queued for a team they belong to (plus chats with no team); an agent without that permission gets 403. Each item in this scope carries team/teamId and a lastMessagePreview.

Enum:"my""team""my-missed""unassigned""closed""missed-agent""missed-after-hours""open""all"
Example:scope=my
pageinteger

Page number (zero-based).

Default:0
Example:page=0
sizeinteger

Number of items per page.

Default:10
Example:size=10
searchstring

Optional case-insensitive substring filter on phone number and full name.

Example:search=27123456789
curl -i -X GET \
  'https://ecommunicate-api-docs.redocly.app/_mock/apis/omnichannel/pl4chat-service/api/v2/chats?scope=my&page=0&size=10&search=27123456789' \
  -H 'Authorization: YOUR_API_KEY_HERE'

Responses

Paginated list of chats for the requested scope

Bodyapplication/json
contentArray of objects(ChatParticipantResponse)
totalElementsinteger
Example:85
totalPagesinteger
Example:9
sizeinteger
Example:10
numberinteger
Example:0
firstboolean
Example:true
lastboolean
Example:false
emptyboolean
Example:false
Response
{ "content": [ … ], "totalElements": 85, "totalPages": 9, "size": 10, "number": 0, "first": true, "last": false, "empty": false }