cURL
curl --request POST \ --url https://api.decodahealth.com/comms/call/ai \ --header 'API-KEY: <api-key>' \ --header 'Content-Type: application/json' \ --header 'TENANT: <tenant>' \ --data ' { "assistantType": "BILLER", "reasonForCall": "<string>", "patientId": "<string>", "eventId": "<string>", "provider": "livekit" } '
{ "id": "<string>", "chatId": "<string>", "direction": "INBOUND", "status": "CREATED", "sender": { "id": "<string>", "type": "PROVIDER", "firstName": "<string>", "lastName": "<string>", "phoneNumber": "<string>", "email": "<string>", "locationId": "<string>" }, "receiver": { "id": "<string>", "type": "PROVIDER", "firstName": "<string>", "lastName": "<string>", "phoneNumber": "<string>", "email": "<string>", "locationId": "<string>" }, "completedDate": "2023-11-07T05:31:56Z", "retellCallId": "<string>", "disconnectionReason": "<string>", "pathToAudio": "<string>", "summary": "<string>", "context": {}, "createdDate": "2023-11-07T05:31:56Z", "toolCalls": [], "tags": [], "invoiceId": "<string>", "type": "MANUAL", "locationId": "<string>" }
Initiate an AI Collections call.
The tenant you are making this request on behalf of
Your api key
BILLER
CALL_REMINDER
CALL_FOLLOW_UP
CALL_LAB_TECHNICIAN
retell
livekit
Successful Response
INBOUND
OUTBOUND
CREATED
ONGOING
TRANSFERRED
DISCONNECTED
FAILED
FINISHED
VOICEMAIL
Show child attributes
MANUAL
AI