Hang Up Call
Ends a call that is in progress or waiting in the inbound queue, as the Hangup button of the platform does. Requires the pearls:moderate scope.
- A phone call is hung up.
- A stream call nobody has connected to yet is cancelled, and its agent is freed. Connecting with its token is then refused with
410. - A connected stream call ends: its WebSocket receives
endedwith the reasonoperator_hangup, then closes.
The call then gets its final status, like any other call. A call that has already ended, or a text conversation, is refused with a 400 that says why.
Authorizations
Specify the authorization token.
For more information, check out the Authorization Guide.
Path Parameters
The id of the call to hang up: the callId returned by Create Stream Token, or the id from Get Calls and the webhooks.
Response
true: the hang-up was sent, and the call ends within moments.
The response is of type boolean.

