Skip to main content
Skip table of contents

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}/end

Headers

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
curl -k --location --request GET 'https://vms.local/api/v1/intercom/calls/{call}/end' \
--header 'Authorization:Bearer token' \
--header 'Accept:application/json' \
--header 'X-Client:ios-cctv|android-cctv|thick-legal|web' \
--header 'X-UUID:unique device id'
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.