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

PATCHhttps://api.tryvox.io/v1/voice/applications/{id}

Request body

ParameterTypeDescription
namestringNew label.
answer_urlstringNew VoxML URL.
answer_methodstringGET or POST.
fallback_urlstringNew fallback URL.
fallback_methodstringGET or POST.
hangup_urlstringNew hangup webhook URL.
hangup_methodstringGET or POST.
status_callback_urlstringNew status callback URL.
status_callback_methodstringGET or POST.
webhook_secretstringNew 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

StatusCodeReason
400VALIDATION_FAILEDBody is malformed JSON
401INVALID_CREDENTIALSAuth ID / Auth Token bad
404NOT_FOUNDNo Application with this id, it belongs to a different account, or it is already deleted
409APPLICATION_IN_USENumbers are still assigned and unassign_all=true was not passed

Delete

Endpoint

DELETEhttps://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

ParameterDescription
unassign_alltrue 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

StatusCodeReason
401INVALID_CREDENTIALSAuth ID / Auth Token bad
404NOT_FOUNDNo Application with this id, or it belongs to a different account

On this page