Voice Applications

Create Application

Create a new Voice Application that bundles webhook URLs.

Create a new Voice Application on the authenticated account.

Your app
POST https://api.tryvox.io/v1/voice/applications
request
TryVox
processing
response
Response 201
returned to your app

Endpoint

POSThttps://api.tryvox.io/v1/voice/applications

Request body

ParameterTypeRequiredDescription
namestringyesHuman-friendly label. Doesn't have to be unique.
answer_urlstringnoURL TryVox calls when an incoming call needs VoxML. Recommended.
answer_methodstringnoGET or POST. Default: POST.
fallback_urlstringnoBackup URL if answer_url fails (timeout, 5xx, invalid VoxML).
fallback_methodstringnoGET or POST. Default: POST.
hangup_urlstringnoURL called once the call ends with final disposition.
hangup_methodstringnoGET or POST. Default: POST.
status_callback_urlstringnoURL called on every status transition.
status_callback_methodstringnoGET or POST. Default: POST.
webhook_secretstringnoSecret used to sign the requests TryVox sends to this Application's URLs (see Webhooks → Signatures). Write-only — it is never returned.

Only name is required by the API. An Application without answer_url is accepted but cannot answer calls — always set answer_url.

Example request

curl -X POST https://api.tryvox.io/v1/voice/applications \
  -u $TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Main IVR",
    "answer_url": "https://your-app.com/answer",
    "answer_method": "POST",
    "fallback_url": "https://your-app.com/fallback",
    "hangup_url": "https://your-app.com/hangup"
  }'

Response

201 Created:

{
  "data": {
    "id": "8f7a4b2e-91c2-4f3d-9a1e-2c4b6d8f0a1c",
    "account_id": "3c9d2f4e-7b1a-4e8c-9d0f-1a2b3c4d5e6f",
    "name": "Main IVR",
    "answer_url": "https://your-app.com/answer",
    "answer_method": "POST",
    "fallback_url": "https://your-app.com/fallback",
    "fallback_method": "POST",
    "hangup_url": "https://your-app.com/hangup",
    "hangup_method": "POST",
    "status_callback_method": "POST",
    "status": "active",
    "created_at": "2026-04-09T10:30:00Z",
    "updated_at": "2026-04-09T10:30:00Z"
  }
}

The field is answer_url. Older versions of this page documented voice_url; that name is not accepted — a request that sends only voice_url creates an Application with no answer URL.

Errors

StatusCodeReason
400VALIDATION_FAILEDname missing
401INVALID_CREDENTIALSAuth ID / Auth Token bad
403KYC_REQUIREDThe account's KYC is not approved

Next

On this page