post https://api.servetel.in/v1/call/hangup
Hangup Call
Currently, active/live call can be hung up by using the below method.
curl --request POST \
--url https://api.servetel.in/v1/call/hangup \
--header 'accept: application/json' \
--header 'authorization: Bearer yourtokenhere' \
--header 'content-type: application/json' \
--data '{}'
Request variables
Variable Name | Description | Data Type |
---|---|---|
call_id | Unique ID of call | String |
Sample request
curl --request POST \
--url https://api.servetel.in/v1/call/hangup \
--header 'accept: application/json' \
--header 'authorization: Authorization' \
--header 'content-type: application/json' \
--data '{"call_id":"123456789.123"}'
Response variables
Variable Name | Description | Data Type |
---|---|---|
success | Request success status | Boolean |
message | Message corresponding success status | String |