List chats
List chats available to the authenticated organization and user scope.
SDK method: patient.chats.list() in TypeScript and Python. patient is the user-scoped client, client.forUser(userId) or client.for_user(user_id).
/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 In: header
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 number
1 <= value1Items per page
1 <= value <= 10020Order by field with - prefix. Allowed: createdAt, updatedAt
"-createdAt"Response Body
application/json
application/json
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 }}