Create Call
Authorizations
Basic authentication header of the form Basic <encoded-value>
, where <encoded-value>
is the base64-encoded string username:password
.
Body
Your agents UUID
"123e4567-e89b-12d3-a456-426614174000"
The interaction channel, you can send your agent to call, sms, whatsapp or webchat
call
, sms
, whatsapp
, email
, webchat
"call"
Your skill UUID
"123e4567-e89b-12d3-a456-426614174000"
Your agent override settings
{
"firstName": "John",
"lastName": "Doe",
"phoneNumber": "+1234567890",
"email": "admin@email.com",
"language": "en-US",
"customFields": [
{ "name": "Order ID", "value": "12345" },
{
"name": "Order Date",
"value": "2025-03-12"
},
{ "name": "Order Amount", "value": 150.75 },
{ "name": "Active Status", "value": true }
]
}
Your agent override settings
{
"name": "John Doe",
"phone": "+12673624524",
"imageURL": "https://example.com/image.jpg",
"language": "en-US",
"voiceStability": 0.5,
"voiceSpeed": 1.5,
"prompt": {
"initialMessage": "Hello {{firstName}}, My name is {{aiName}}. I am calling you about your order ID {{Order ID}}",
"prompt": "Your sponsibility is to notify the customer: {{firstName}} about his order ID {{Order ID}} and the total cost of {{Order Amount}} with delivery date {{Delivery Date}}. That is all",
"routingConditions": { "priority": "high" }
}
}
The customer's name to create a new customer
"John Does"
The customer's phone number to create a new customer
"+1234567890"
The customer's email to create a new customer
"customer@email.com"
Response
Interaction ID
"123e4567-e89b-12d3-a456-426614174000"
Interaction status
"in-progress"
Agent phone number
"+1234567890"
Agent Email
"+1234567890"
Customer phone number
"+1234567890"
Customer email
"+1234567890"
Agent ID
"123e4567-e89b-12d3-a456-426614174000"
Customer ID
"123e4567-e89b-12d3-a456-426614174000"
Skill ID
"123e4567-e89b-12d3-a456-426614174000"
Customer name
"John Doe"
Transcription
"Hello, how can I help you?"
Recording URL
"https://example.com/recording.wav"
conversation messages
[
{
"sid": "SM1234567890abcdef",
"timestamp": "2025-03-17T14:30:00Z",
"sender": "agent",
"content": "Hello, how can I assist you today?",
"mediaUrl": "https://example.com/image.jpg",
"status": "delivered"
}
]
Session duration in seconds
"7200"