Voice / Call Controls
Hang up a call
End a call, or a single leg of it. Omit leg_id to hang up the entire call; supply it to drop just that leg.
post/api/v1/voice/calls/{call_id}/hangup
Request
- Base URL: https://api.frejun.ai
- URL: https://api.frejun.ai/api/v1/voice/calls/{call_id}/hangup
- Auth: API key in header x-api-key
Path parameters
call_idstring required
Request body
Example request
{
"reason": "AGENT_HANGUP"
}Response
Successful Response
Example response
{
"request_id": "req_9f8e7d6c5b4a3f2e1d0c9b8a"
}Changes
No recorded changes to this operation across all 1 revision of this API.