Chat: Get messages by token

GET {{url}}/{{tenantName}}/{{instanceName}}/patients/{{patientId}}/chat?pageToken=eyJ0eXBlIjoiTE9DQUxfRklORCIsInBhZ2VTaXplIjoyLCJib3JkZXJEYXRlIjoiMjAyMS0wMy0wNVQxNjowNzozMS4yOThaIiwiYmVmb3JlIjp0cnVlfQ==

Get messages for patient.

URL Structure: {{url}} / {{tenantName}} / {{instanceName}} / patient / {{patientId}} / chat

in our example it would be:

https://api.live.welkincloud.io/gh/sb-demo/patient/7272b601-bb09-4abf-87c0-ade48ddfaea0/chat?pageToken=eyJ0eXBlIjoiTE9DQUxfRklORCIsInBhZ2VTaXplIjoyLCJib3JkZXJEYXRlIjoiMjAyMS0wMy0wNVQxNjowNzozMS4yOThaIiwiYmVmb3JlIjp0cnVlfQ==

Response meta fields

FieldDescription
nextPageTokenToken for receiving next page (null if this page is last)
prevPageTokenToken for receiving previous page (null if this page is first)

Response content fields

FieldDescription
externalIdunique message ID
sender.clientTypePATIENT, USER
sender.titleNameUser firstname and lastname, joined by space. Exists only if clientType = USER

Request Params

KeyDatatypeRequiredDescription
pageTokenstringtoken for fetching specific page, mutually exclusive with pageSize
includeArchivedbooleanif true, include archived messages to the result
sizenumberpage size, mutually exclusive with pageToken