Create a new call
Create a new voice agent call session.
Authentication
x-api-keystring
Your API Activation Key
Request
This endpoint expects an object.
user
The user that this voice agent call is being initiated for
language
The code of the language being spoken by the user in the call
agent
Configuration for the AI voice agent to be used in the call
phoneNumber
The phone number to call for the voice agent interaction
webhookUrl
Optional webhook URL to receive call status updates and results
metadata
Additional metadata associated with the voice agent call
deleteData
Boolean flag indicating if call data should be deleted after completion. If True, the call recordings, transcripts, and results will be deleted 12 hrs after the call ends. Attempts to retrieve results after this time will receive a 404 error.
Response
Successful Response
id
The id of the newly created call
user
status
Current status of the call
createdAt
When the call was submitted to the API
agent
Configuration for the AI voice agent to be used in the call
activityLink
Optional link to call as a thymia activity, only present if a phone number was not provided