curl -X POST https://win.oneshotagent.com/v1/tools/voice/call \ -H "Content-Type: application/json" \ -H "X-Agent-ID: 0xYourWalletAddress" \ -d '{ "objective": "Call the restaurant to make a dinner reservation for 2 people at 7pm tonight", "target_number": "+14155551234", "caller_persona": "A polite assistant making a reservation", "context": "Italian restaurant, prefer outdoor seating" }'
Make an autonomous voice call with automatic objective analysis
POST
/
v1
/
tools
/
voice
/
call
Copy
curl -X POST https://win.oneshotagent.com/v1/tools/voice/call \ -H "Content-Type: application/json" \ -H "X-Agent-ID: 0xYourWalletAddress" \ -d '{ "objective": "Call the restaurant to make a dinner reservation for 2 people at 7pm tonight", "target_number": "+14155551234", "caller_persona": "A polite assistant making a reservation", "context": "Italian restaurant, prefer outdoor seating" }'
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.
curl -X POST https://win.oneshotagent.com/v1/tools/voice/call \ -H "Content-Type: application/json" \ -H "X-Agent-ID: 0xYourWalletAddress" \ -d '{ "objective": "Call the restaurant to make a dinner reservation for 2 people at 7pm tonight", "target_number": "+14155551234", "caller_persona": "A polite assistant making a reservation", "context": "Italian restaurant, prefer outdoor seating" }'
When multiple phone numbers are provided AND the objective suggests a multi-party call, conference mode is activated:
Copy
const result = await agent.voice({ objective: "Connect the buyer and seller to negotiate the final price. Facilitate the discussion.", target_number: ["+14155551234", "+14155555678"], caller_persona: "A professional meeting facilitator",});
In conference mode:
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)