Skip to main content
DELETE
End a call that is running over a WebSocket: a call from Start stream call or one placed by a client that dialled the agent’s media WebSocket. Use it to stop a call because of credits, a time limit or a user action. 60db sends {"event":"stop"} to the call runtime. If the client’s start message carried a stream id (a Twilio-style or telephony media platform), the client also gets that platform’s end-call command (see Agent Stream WebSocket). The runtime then reports ended and closes the socket. The response returns at once with status ending. The final state, duration and cost arrive with the call.completed event, or through Get call.

Request

Headers

string
required
Bearer token with your API key (scope agents)

Path

string
required
The call id (UUID) of a stream or media WebSocket call

Response

200 OK
The call is trimmed above; see Get call for every field.

Errors

Unlike Hang up browser call, a finished call is an error (409), not a normal answer.

Example