Schemas
VoiceOtpRequest
fromCaller ID phone number in E.164 format. Must be a DID owned by the authenticated account.
toDestination phone number in E.164 format
otp^[0-9]{1,10}$ · requiredOne-time password to deliver (digits only, max 10 characters)
session_idOptional session identifier. If not provided, one will be generated.
repeatNumber of times to repeat the OTP
languageBCP-47 language code for speech synthesis
speaking_rateSpeech rate multiplier
custom_messageCustom message template (max 40 characters). Use {otp} as placeholder.
callback_urlWebhook URL for call status notifications
VoiceOtpResponse
session_idUnique identifier for the call session
statusCurrent call status
TtsRequest
fromCaller ID phone number in E.164 format. Must be a DID owned by the authenticated account.
toDestination phone numbers in E.164 format (1-25 numbers)
session_idOptional session identifier. If not provided, one will be generated. For multiple recipients, all calls share this session ID.
messageText to synthesize. Mutually exclusive with resource_id.
resource_idPre-uploaded audio resource. Mutually exclusive with message.
languageBCP-47 language code for speech synthesis
speaking_rateSpeech rate multiplier
callback_urlWebhook URL for call status notifications
TtsResponse
session_idUnique identifier for the session. For multiple recipients, this serves as the batch ID.
statusCurrent status
SessionResponse
idUnique identifier for this call record
session_idBatch session ID (for TTS with multiple recipients)
session_typeType of session
fromCaller ID (DID phone number)
toRecipient phone number
statusSession status
call_statusUnderlying call status from the telephony provider
costCost of the call in account currency
queued_atTimestamp when the session was queued
initiated_atTimestamp when the call was initiated
answered_atTimestamp when the call was answered
completed_atTimestamp when the call completed
SessionListResponse
uriCurrent request URI
pageCurrent page number
page_sizeResults per page
first_page_uriURI for the first page
next_page_uriURI for the next page
previous_page_uriURI for the previous page
ResourceResponse
resource_idUnique identifier for the resource
file_nameOriginal or provided file name
file_typeMIME type of the uploaded file
file_size_bytesFile size in bytes
created_atTimestamp of resource creation
ResourceListResponse
uriCurrent request URI
pageCurrent page number
page_sizeResults per page
first_page_uriURI for the first page
next_page_uriURI for the next page
previous_page_uriURI for the previous page
Error
errorError code. Possible values:
not_found- Resource not foundinvalid_input- Invalid input datavalidation_error- Validation failedinsufficient_balance- Account balance too lowfree_trial_exceeded- Free trial limit reachedinvalid_recipient_count- Must have 1-25 recipientsmutually_exclusive_fields- Cannot provide both message and resource_idbusiness_rule_violation- Business rule check failedexternal_service_error- Upstream service unavailable
messageHuman-readable error description