View Categories

Call Hangup

Overview

ENDPOINT/admin/api/nexbro/v1/call/hangup/{call_uuid}
Methods SupportedPOST
DescriptionThis endpoint is used to hangup an active call in the Nexbro. By providing the call_uuid

Parameters

The following parameter’s required to hangup the call.

Parameter NameParameter RequirementParameter Data TypeExampleDescription
call_uuidrequiredStringca3a834a-d4a7-48ab-a7fc-7a20fd577884The uuid of the active running call.

Response Codes

The following response codes are returned by the API.

HTTP CODESummaryDescription
404HTTP_NOT_FOUNDReturned when the specified call cannot be found or is no longer active.
422HTTP_UNPROCESSABLE_ENTITYReturned when the hangup request is valid but cannot be processed due to the current call state.
200HTTP_OKReturned when the call hangup request is processed successfully.
500INTERNAL_SERVER_ERRORReturned when an unexpected error occurs on the server while processing the request.

Example

cURL
Copy to clipboard
curl --location --request POST 'https://your-nexbro-domain.com/admin/api/nexbro/v1/call/hangup/6075d782-1fd2-40a4-bcfe-d29638f2d598' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: sk_live_tTD9RQfK2q2pdsqIEIca53y3gkGll1brp0mWLMeG6vnmrDHYZ1ThOupslBHg'
Response
Copy to clipboard
{
    "message": "Call is hanged successfully.",
    "data": []
}