Skip to main content
DELETE
Hang Up a Call
Terminate an active call by hanging up one or both call legs. You can hang up the caller (A leg), the callee (B leg), or both legs simultaneously. The call is terminated immediately and a final CDR is generated.
Authentication required:
  • X-Auth-ID - Your account Auth ID
  • X-Auth-Token - Your account Auth Token
  • Content-Type: application/json
This permanently terminates the call. This action cannot be undone.
Hanging up a call triggers the hangup_url callback if one was configured when the call was initiated, allowing you to perform cleanup or logging.
string
required
Your Vobiz account ID, for example MA_XXXXXXXX.

Path parameters

string
required
Your Vobiz account ID. Use the same value in X-Auth-ID.
string
required
Unique identifier of the call to hang up.

Request Parameters

No Request Body Required: This endpoint does not require any request body parameters. Simply send a DELETE request to the endpoint URL.

Response

Returns a confirmation that the hangup request was processed.
Response - 204 No Content
After Hangup: The call’s final CDR will show hangup_source as β€œAPI” and the hangup_cause_code will indicate a programmatic termination (typically code 16: NORMAL_CLEARING).

Example Request

cURL

Use Cases

  • Terminate abandoned or idle calls to prevent billing
  • Implement time-based call limits for compliance
  • End calls based on external triggers (e.g., fraud detection)
  • Implement emergency call termination features
  • Clean up stale call sessions during maintenance
To retrieve the final call details after hanging up, use the Retrieve a Call endpoint with the call UUID. The CDR will include final duration and billing information.