Skip to main content
POST
/
api
/
v1
/
calls
/
{call_id}
/
end
End Call
curl --request POST \
  --url https://dev.voice.ai/api/v1/calls/{call_id}/end \
  --header 'Authorization: Bearer <token>'
{
  "call_id": "<string>",
  "status": "<string>",
  "ended_at": "2023-11-07T05:31:56Z",
  "actual_duration_seconds": 123,
  "credits_used": 123
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Use your API key as the bearer token. Format: Authorization: Bearer

Path Parameters

call_id
string
required

Query Parameters

actual_duration_seconds
number | null

Actual duration of the call in seconds

Response

Successful Response

call_id
string
required
status
string
required
ended_at
string<date-time>
required
actual_duration_seconds
number
required
credits_used
number
required