Send a call to an Agent.
API Key Authentication. It should be included in the header of each request.
Unique identifier for the call. Example:
"call_abc123xyz""stereo_audio_session_456"100Agent ID, required if assistant_id not provided
Example: 2421
Provider's Assistant ID, required if agent not provided Example:
"asst_abc123xyz""agent_xyz789"Audio recording file of the call.
Example: Binary data "recordings/call_123_20240315.mp3"
URL to call recording audio file
Example: "https://storage.example.com/recordings/call_123.mp3"
cekura - cekuravocera - voceravapi - vapiretell - retelldeepgram - deepgrampipecat - pipecatlivekit - livekitelevenlabs - elevenlabsnone-mono - none-monocekura, vocera, vapi, retell, deepgram, pipecat, livekit, elevenlabs, none-mono Call transcript in supported format (Vapi, Retell, Deepgram, ElevenLabs, Cekura)
Check the Transcript Format documentation for more details.
Cekura Transcript Format Example:
[
{
"role": "Testing Agent",
"content": "Hello.",
"end_time": 1.9399999,
"start_time": 1.4399999
},
{
"role": "Main Agent",
"content": "Hello. I want to book appointment today. My name is John.",
"end_time": 7.539999511718751,
"start_time": 3.1
},
{
"role": "Testing Agent",
"content": "Well, I mean, sure. What time exactly are we talking about here",
"end_time": 15.71,
"start_time": 12.01
},
{
"role": "Main Agent",
"content": "6 PM.",
"end_time": 18.269999,
"start_time": 17.609999
}
]Reason why the call ended Example:
"customer-ended-call""agent-ended-call"Customer's phone number or identifier Example:
"+1234567890""customer_abc123"Additional call metadata Example:
{
"customer_id": "123",
"order_id": "ORD-12345",
"name": "John Doe"
}When the call occurred.
Example: 2024-03-15T10:15:45Z
Dynamic variables used to replace {{variables}} in agent description. Example:
{
"subscription_id": "SUB-12345",
"product_type": "premium"
}Feedback about the call
Example: "Great call"
Optional list of sensitive fields to redact from the transcript and audio. If not provided, no redaction will occur.
Available fields include: phone_number, email_address, credit_card, ssn, dob, healthcare_number, etc.
Note: Redacting any fields incurs a cost of 0.4 credits per minute, regardless of how many fields are selected.
Example: ["phone_number", "email_address", "credit_card"]
person_name - person_nameage - agephone_number - phone_numberemail_address - email_addressdate - datetime - timelocation - locationorigin - origingender_sexuality - gender_sexualityphysical_attribute - physical_attributeoccupation - occupationusername - usernamepassword - passwordip_address - ip_addressurl - urlfilename - filenameevent - eventvehicle_id - vehicle_iddob - dobhealthcare_number - healthcare_numbermedical_professional - medical_professionalcredit_card - credit_cardaccount_number - account_numberbank_account - bank_accountmoney - moneyssn - ssnpassport_number - passport_numberdriver_license - driver_licensenumerical_pii - numerical_piiperson_name, age, phone_number, email_address, date, time, location, origin, gender_sexuality, physical_attribute, occupation, username, password, ip_address, url, filename, event, vehicle_id, dob, healthcare_number, medical_professional, credit_card, account_number, bank_account, money, ssn, passport_number, driver_license, numerical_pii Mixin for parsing restql query from request.
NOTE: We are using request.GET instead of
request.query_params because this might be
called before DRF request is created(i.e from dispatch).
This means request.query_params might not be available
when this mixin is used.
Call duration in minutes in MM:SS format.
Example: 01:10
Whether the call was successful.
Example: true or false
Whether the call has been reviewed.
Example: true or false
Status of the call or conversation.
Example: "completed" or "failed"
success - Successfailure - Failurereviewed_success - Reviewed Successreviewed_failure - Reviewed Failuresuccess, failure, reviewed_success, reviewed_failure Feedback about the call.
Example: "Great Call"
Metrics of the call
Reason why the call ended. Example:
"customer-ended-call""agent-ended-call"100Customer's phone number or identifier. Example:
"+1234567890""customer_abc123"100Agent ID
Unique identifier for the call. Example:
"call_abc123xyz""stereo_audio_session_456"100When the call occurred.
Example: 2024-03-15T10:15:45Z
Point in conversation where user disengaged.
Example: "end of conversation as no queries remaining"
1000Topic of the call. Example:
"product_inquiry""technical_support"1000When this record was created.
Example: 2024-03-15T10:30:45Z
When this record was last updated.
Example: 2024-03-15T10:35:11Z