curl -X POST https://api.vozagent.ai/v1/calls/outbound \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"phone_number": "+15551234567",
"assistant_name": "Voz",
"first_name": "John",
"last_name": "Smith",
"notes": "Interested in a kitchen remodel quote"
}'
{
"call_id": "call-a1b2c3d4-e5f6-a7b8",
"status": "queued",
"direction": "outbound",
"to_phone": "+15551234567",
"assistant_name": "Voz",
"contact_id": "c1a2b3c4-d5e6-f7a8",
"is_new_contact": false,
"created_at": "2024-01-15T12:00:00Z"
}
Calls
Create Outbound Call
Initiate a new outbound call to a phone number.
POST
/
v1
/
calls
/
outbound
curl -X POST https://api.vozagent.ai/v1/calls/outbound \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"phone_number": "+15551234567",
"assistant_name": "Voz",
"first_name": "John",
"last_name": "Smith",
"notes": "Interested in a kitchen remodel quote"
}'
{
"call_id": "call-a1b2c3d4-e5f6-a7b8",
"status": "queued",
"direction": "outbound",
"to_phone": "+15551234567",
"assistant_name": "Voz",
"contact_id": "c1a2b3c4-d5e6-f7a8",
"is_new_contact": false,
"created_at": "2024-01-15T12:00:00Z"
}
Retrieve your API Key from your VozAgent Dashboard.
calls:write scope.
Body parameters
The name of the assistant to make the call. Either
assistant_id or assistant_name is required.Additional notes or context for the call. Can be used to provide the assistant with background information.
Response
Returns the created call object. The call will be initiated asynchronously. Status code:201.
curl -X POST https://api.vozagent.ai/v1/calls/outbound \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{
"phone_number": "+15551234567",
"assistant_name": "Voz",
"first_name": "John",
"last_name": "Smith",
"notes": "Interested in a kitchen remodel quote"
}'
{
"call_id": "call-a1b2c3d4-e5f6-a7b8",
"status": "queued",
"direction": "outbound",
"to_phone": "+15551234567",
"assistant_name": "Voz",
"contact_id": "c1a2b3c4-d5e6-f7a8",
"is_new_contact": false,
"created_at": "2024-01-15T12:00:00Z"
}
Was this page helpful?

