Voicelink
Voicelink
DashboardQuickstartAuthenticationCallsInvitationsErrors and limits
Cancel scheduled call DELETECreate invitation POSTDelete invitation DELETEEdit invitation PATCHExtend invitation POSTGet call GETGet completed call recording GETGet invitation GETList calls GETList invitations GETReschedule call PATCHRevoke invitation POSTStart outbound call POSTTerminate call POST
Reference

Terminate call

Stop a pending or active call. Returns the updated call. A call that has already ended returns 409.

POST
/calls/{id}/terminate

Stop a pending or active call. Returns the updated call. A call that has already ended returns 409.

Authorization

headerapikey<token>

Path Parameters

id*string

Response Body

application/json
  1. response
  1. response
  2. …
status*string
Value in"error""ok"
message*string
data*
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        }      ]    }  }}

Start outbound call POST

Previous Page