Get a chat
Fetch a single chat by id.
GET
/chats/{chatId}/Fetch a single chat by id.
The chat must have been created through this Doctronic API and belong to both the
authenticated organization and user. A chat that exists but belongs to another organization or
user is masked as 404 error.partner.chat_not_found so callers cannot probe for the
existence of chats outside their scope.
Path parameters
chatId: the chat id returned byPOST /chats/.
Auth: organization Bearer token + X-Doctronic-User-ID header (both 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
Path Parameters
chatId*string
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/chats/string/"{ "code": "success", "message": "Request successful", "data": { "id": "string", "createdAt": "2019-08-24T14:15:22Z" }}