Voice
Voice Call
Make an autonomous voice call with automatic objective analysis
POST
Overview
The Voice Call API enables AI agents to make autonomous phone calls. The OneShot Agent analyzes your objective, generates talking points, and conducts the call on your behalf.Authentication
Requires x402 payment. First call returns a quote (402), second call with payment executes.Request Body
What the call should accomplish. Minimum 10 characters. The OneShot Agent will analyze this to generate talking points and success criteria.
Phone number(s) in E.164 format (e.g.,
+14155551234). Multiple numbers triggers conference mode analysis.Personality and style for the OneShot Agent caller (e.g., “A polite assistant making a reservation”)
Additional context about the call situation
Maximum call duration (1-30 minutes). Default: 5
Quote Response (402)
The first request returns pricing and analysis:Quote ID to include in payment request
AI-generated summary of the call objective
Key points the OneShot Agent will cover during the call
How success will be evaluated
Whether this will be a conference call
Total cost in USD
Execution Response (202)
After payment, the call is initiated:Job ID for tracking call status
processing - call is in progressThe phone number making the call
Numbers being called
Whether this is a conference call
Completed Job Result
Poll/v1/requests/{request_id} for the result:
Full call transcript
AI-generated call summary
pass or fail based on success criteriaActual call duration
Actual cost charged
Conference Calls
When multiple phone numbers are provided AND the objective suggests a multi-party call, conference mode is activated:- All parties are connected to a shared call
- The OneShot Agent moderates and facilitates the conversation
- A shared OneShot number is used (no phone registration fee)
Error Handling
Error code:
content_blocked, emergency_number_blocked, invalid_requestContent Blocked
Emergency Number Blocked
See Pricing for voice call costs. If a call fails (success_evaluation = “fail”), you’re charged at cost and credited the margin.