cURL
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 }
Marks a call as ended, this should be called as best-effort from front end clients at the end of a call.
Bearer token authentication. Use your API key as the bearer token. Format: Authorization: Bearer
Actual duration of the call in seconds
Successful Response