v1

latestOpenAPI 3.1.02026-07-2414238909.1 KB

Hangup/reject an active call

put/voice/conversation/{messageId}

Path parameters

messageIdstring required

The id of the voice call

Headers

Authorizationstring required

Bearer {access_token}

Content-Typestring required

application/json

Request body

actionstring required

Defines the action to perform. Values: "hangup", "reject". Hangup only apply to calls with "InProgress" status. Reject only apply to calls with "Ringing" or "Initiated")

Response

200

messageIdstring
messagestring
createdAtstring

Example response

{
  "messageId": "86dc40be-5a3a-48f7-acf5-4b788bc02d4b",
  "message": "Call hung up",
  "createdAt": "2018-11-02T10:15:07.707Z"
}