Reference
Terminate call
Stop a pending or active call. Returns the updated call. A call that has already ended returns 409.
POST
Stop a pending or active call. Returns the updated call. A call that has already ended returns 409.
header
apikey<token>id*stringapplication/json- response
status*stringValue in
"error""ok"message*stringdata*Example Request
curl -X POST 'https://api.usevoicelink.co/v0/calls/string/terminate'Example Response
{ "status": "error", "message": "string", "data": { "call": { "id": "string", "agentId": "string", "callType": "string", "channel": "chat", "direction": "inbound", "status": "string", "endReason": "agent_ended", "callerName": "string", "callerEmail": "string", "callerPhone": "string", "durationInSeconds": 0, "scheduledAt": "string", "startedAt": "string", "endedAt": "string", "createdAt": "string", "updatedAt": "string", "summary": "string", "nextSteps": "string", "transcript": [ { "role": "agent", "text": "string", "timestamp": 0 } ] } }}