Developers

List chats

List chats available to the authenticated organization and user scope.

GET/chats/

List chats available to the authenticated organization and user scope.

Use page, size, and orderBy to paginate and sort the results. The response includes the current page of items, the unpaginated total, the computed page count, and next-page and previous-page indicators. Both authentication credentials are required.

Authorization

HTTPBearer XDoctronicUserID
AuthorizationBearer <token>

In: header

X-Doctronic-User-ID<token>

Doctronic user ID returned as data.id by POST /users/. This value identifies the user in your organization scope; it is not an API token.

In: header

Query Parameters

page?integer

Page number

Range1 <= value
Default1
size?integer

Items per page

Range1 <= value <= 100
Default20
orderBy?|

Order by field with - prefix. Allowed: createdAt, updatedAt

Default"-createdAt"

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/chats/"
{  "code": "success",  "message": "Request successful",  "data": {    "items": [      {        "id": "string",        "createdAt": "2019-08-24T14:15:22Z"      }    ],    "total": 0,    "page": 0,    "size": 0,    "pages": 0,    "hasNext": true,    "hasPrev": true  }}