Hangup Call
Terminate an active call.
Hangup Call
Terminate an active or ringing call immediately.
Endpoint
DELETE https://api.tryvox.io/v1/voice/accounts/{auth_id}/calls/{call_uuid}Path Parameters
auth_id- Your account authentication IDcall_uuid- The unique identifier of the call to terminate
Example Request
curl -X DELETE https://api.tryvox.io/v1/voice/accounts/your_auth_id/calls/650e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer tvx_sk_live_..."Response
A successful hangup request returns a 204 No Content response with no body.
HTTP/1.1 204 No ContentBehavior
When you hangup a call:
- The call is immediately terminated for all parties
- Any in-progress actions (recording, playing audio, etc.) are stopped
- Your
hangup_urlwebhook is called with final call details - The call status is updated to
completedwith end reasonapi-hangup
Use Cases
End a Call Programmatically
Terminate a call based on business logic, such as:
- Maximum duration reached
- Fraud detection triggered
- User requested cancellation
- Emergency shutdown
Cancel a Ringing Call
Cancel an outbound call before it's answered:
curl -X DELETE https://api.tryvox.io/v1/voice/accounts/your_auth_id/calls/650e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer tvx_sk_live_..."End Conference Participant
Remove a specific participant from a conference by hanging up their call.
Error Responses
Call Not Found
{
"error": "call_not_found",
"message": "Call with UUID 650e8400-e29b-41d4-a716-446655440000 not found"
}Call Already Ended
{
"error": "call_already_ended",
"message": "Call has already ended"
}Notes
- You can only hangup calls that are in
ringingorin-progressstatus - Hanging up a call that has already ended returns a 404 error
- The
hangup_urlwebhook will receiveend_reason: "api-hangup" - There is no way to undo a hangup operation
- Hangup is immediate and may interrupt ongoing audio playback or recording