How It Works
When you create a call through our API, the system performs the following steps:- Compliance Check: Evaluates your configured ruleset to ensure the call meets compliance requirements
- Call Initiation: If compliance passes, initiates the call through our voice provider
- Webhook Notification: Sends detailed call information to your webhook endpoint. See the Create Call Webhook endpoint for more information.
Compliance-First Approach
Every call goes through automatic compliance checking before being initiated. This ensures:- Regulatory Compliance: Calls respect time zones, calling hours, and frequency limits
- Custom Rules: Organization-specific rules configured by your team
- Transparency: Clear feedback on which rules passed or failed
API Workflow
Step 1: Create a Customer
First, create a customer in our system to get a unique identifier:id will be used to create calls for this customer.
Step 2: Create a Call
Once you have acustomerId, you can create a call:
agentId(required): The UUID of the AI agent to use for the call. This will be assigned to you.customerId(required): The UUID of the customer to make the call to. This is returned in the response from the Create Customer endpoint.webhook.url(optional): Your webhook endpoint to receive call updates. See the Create Call Webhook endpoint for more information.webhook.secretId(optional): The UUID of your webhook secret for signing webhooks. When provided, webhooks includeX-Webhook-SignatureandX-Webhook-Timestampheaders for verification. See the Webhook Security guide for details.
Step 3: Receive Webhook Notifications
After the call passes compliance and is initiated, you’ll receive detailed call information via your webhook endpoint. The webhook includes:- Ended Reason: The reason the call ended
- Recording URL: A signed URL for the audio recording of the call
- Call Duration: How long the call lasted
- Output Variables: The output variables from the call
- Transcripts: Full conversation transcripts (when available)
- Metadata: Additional information about the call including compliance results
Use Cases
The Create Call API is ideal for:- On-Demand Outreach: Trigger calls based on specific customer actions
- Event-Driven Communication: Make calls in response to business events
- Custom Workflows: Build your own call orchestration logic
- A/B Testing: Create calls with different agents to test effectiveness
- Manual Campaigns: Give your team the ability to trigger calls individually
Error Handling
The API provides clear error messages for common issues:- 404 Not Found: Customer doesn’t exist or doesn’t belong to your organization
- 400 Bad Request: Invalid phone number or missing required parameters
- 422 Unprocessable Content: Call failed compliance checks
- 500 Internal Server Error: System error (contact support with the request ID)
Getting Started
To start creating calls:- Get your API credentials from the Authentication Guide
- Create a customer using the Create Customer endpoint
- Contact our team to configure your AI agents and compliance rules
- Make your first call using the endpoint above

