Ends an ongoing call
/calls/endPOSTAPI KEY or JWT Token)src/api/public_apis_v1/call/end_call/end_call_controller.rs| Header | Value | Description |
|---|---|---|
Authorization | Bearer <api_key> | Your API KEY or JWT Token |
Content-Type | application/json | Request content type |
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
call_id | UUID | Yes | The unique identifier of the call to end | 550e8400-e29b-41d4-a716-446655440000 |
disconnect_reason | String | No | Custom reason for ending the call. Defaults to “Ended Via API call” | Customer requested to end call |
200 OK
200 OK (with empty body)
When an error occurs, the endpoint may return an empty response body.
ended_at timestamp is set to the current timedisconnect_reason is updated with the provided reason or defaultdisconnect_reason field is useful for tracking why calls were endeddisconnect_reason is provided, it defaults to “Ended Via API call”GET /calls/{id} - Get call details after endingGET /calls/query - Query calls with specific end reasonsPOST /calls/make-call - Initiate a new callBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Details to end the call