Voice Applications
Update & Delete Application
Patch a Voice Application's URLs or remove it entirely.
Two write operations: patch fields on an existing Application, or delete it.
Update
Patches are partial — only the fields you submit are changed. Pass empty strings to clear a URL field. PUT on the same path behaves identically.
Endpoint
https://api.tryvox.io/v1/voice/applications/{id}Request body
| Parameter | Type | Description |
|---|---|---|
name | string | New label. |
answer_url | string | New VoxML URL. |
answer_method | string | GET or POST. |
fallback_url | string | New fallback URL. |
fallback_method | string | GET or POST. |
hangup_url | string | New hangup webhook URL. |
hangup_method | string | GET or POST. |
status_callback_url | string | New status callback URL. |
status_callback_method | string | GET or POST. |
webhook_secret | string | New signing secret. Write-only. |
All fields are optional. The API only updates the keys present in the body — omitted keys keep their current values.
Example request
curl -X PATCH https://api.tryvox.io/v1/voice/applications/8f7a4b2e-91c2-4f3d-9a1e-2c4b6d8f0a1c \
-u $TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN \
-H "Content-Type: application/json" \
-d '{
"answer_url": "https://your-app.com/v2/answer",
"fallback_url": "https://your-app.com/v2/fallback"
}'Response
200 OK — the full updated Application:
{
"data": {
"id": "8f7a4b2e-91c2-4f3d-9a1e-2c4b6d8f0a1c",
"account_id": "3c9d2f4e-7b1a-4e8c-9d0f-1a2b3c4d5e6f",
"name": "Main IVR",
"answer_url": "https://your-app.com/v2/answer",
"answer_method": "POST",
"fallback_url": "https://your-app.com/v2/fallback",
"hangup_url": "https://your-app.com/hangup",
"status": "active",
"created_at": "2026-04-09T10:30:00Z",
"updated_at": "2026-04-09T11:14:32Z"
}
}The change applies immediately and is pushed to every number already assigned to the Application. Calls in progress that already fetched VoxML keep their old behaviour; the next inbound call uses the new URLs.
Errors
| Status | Code | Reason |
|---|---|---|
| 400 | VALIDATION_FAILED | Body is malformed JSON |
| 401 | INVALID_CREDENTIALS | Auth ID / Auth Token bad |
| 404 | NOT_FOUND | No Application with this id, it belongs to a different account, or it is already deleted |
| 409 | APPLICATION_IN_USE | Numbers are still assigned and unassign_all=true was not passed |
Delete
Endpoint
https://api.tryvox.io/v1/voice/applications/{id}Example request
curl -X DELETE \
-u $TRYVOX_AUTH_ID:$TRYVOX_AUTH_TOKEN \
"https://api.tryvox.io/v1/voice/applications/8f7a4b2e-91c2-4f3d-9a1e-2c4b6d8f0a1c?unassign_all=true"Query parameters
| Parameter | Description |
|---|---|
unassign_all | true to detach every number assigned to the Application before deleting it. Without it, deleting an Application that numbers still use is refused. |
Response
204 No Content. The Application is marked inactive and no longer appears in the list.
If numbers are still assigned and unassign_all is not true, the response is 409:
{
"error": {
"code": "APPLICATION_IN_USE",
"message": "this application is still assigned to one or more numbers"
},
"numbers": [
{ "e164": "+919876543210", "account_id": "TJab12cd34" }
]
}Detached numbers stop answering inbound calls until you assign them to another Application. Deletion cannot be undone.
Errors
| Status | Code | Reason |
|---|---|---|
| 401 | INVALID_CREDENTIALS | Auth ID / Auth Token bad |
| 404 | NOT_FOUND | No Application with this id, or it belongs to a different account |