cURL
curl --request POST \ --url https://api.decodahealth.com/comms/chat/create \ --header 'API-KEY: <api-key>' \ --header 'Content-Type: application/json' \ --header 'TENANT: <tenant>' \ --data ' { "primaryPatientId": "<string>", "phoneNumber": "<string>", "status": "READ" } '
{ "id": "<string>", "primaryPatientId": "<string>", "status": "READ", "patients": [ { "id": "<string>", "firstName": "<string>", "lastName": "<string>", "primaryLocationId": "<string>" } ], "phoneNumber": "<string>", "createdDate": "2023-11-07T05:31:56Z", "optedOutOfSms": true, "latestMessageContent": "<string>", "latestMessageDate": "2023-11-07T05:31:56Z" }
Creates a chat for a given Patient
The tenant you are making this request on behalf of
Your api key
READ
UNREAD
Successful Response
Show child attributes