API Reference
Create Dispatch
Create an outbound call
POST
Create Dispatch
Create an outbound call. This endpoint triggers an outbound call using a preconfigured agent.Important Concepts
Agent ID
You must pass anagent_id, which is a UUID that uniquely identifies an agent.
You can obtain the agent_id from the Agent Config page on the Vaani portal:
- Go to app.vaanivoice.ai
- Navigate to Agent Config
- Select your agent
- Copy the Agent ID (UUID)
Metadata
Themetadata object contains template variables that you configure while creating the agent.
- Each key in
metadatacorresponds to a variable used in the agent’s prompt or flow - These values are dynamically injected at call time
- The structure depends on how the agent was configured
Required Fields
agent_id: Agent UUID from the Agent Config pagecontact_number: Contact number with country code (e.g., +919876543210)name: Customer namevoice: Voice preference (optional, default: "")metadata: Template variables for the agent (optional, default: )
Optional Telephony Fields
outbound_number: Specific outbound caller ID to use (E.164 format)
DND Check Control
dnd_check_skipped: Set totrueto skip the Do Not Disturb (DND) check for the call
Parameters
Agent UUID obtained from the Agent Config page on the portal
Contact number with country code (e.g., +919876543210)
Customer name
Voice preference (optional)
Template variables configured while creating the agent
Set to
true to skip the Do Not Disturb (DND) check for this callOptional outbound caller ID to use (E.164 format)
Request Body
Request Example
Response
Success Response (200)
Whether the call was dispatched successfully
Status message —
"Call initiated successfully" on successCall dispatch details
Error message if the operation failed,
null on successValidation Error (422)
Array of validation error objects

