Ending a call
After a user initiates a call and wants to end it by pressing the hang-up button, clients send this request
GET/api/v1/intercom/calls/{call}/endHeaders | |||||||||
Authorization | Bearer token | ||||||||
Accept | application/json | ||||||||
X-Client | ios-cctv|android-cctv|thick-legal|web | ||||||||
X-UUID | unique device id |
Body | |||||||||
calloptional | int | Call ID to be ended (status must be «answered») |
Response | |||||||||
204 | Successful response | ||||||||
401 | Authorization token not provided or invalid, see Obtaining a token | ||||||||
404 | If the call does not belong to the user, does not exist, or is not in the «answered» status |
Example | |||||||||
JSON
|