Hangup a call

Hangup call command can be used in two situation:

  • Hangup an ongoing call.

  • Reject an inbound call that is starting or ringing

Reasons hangup a call - not mandatory

type: object
title: HangupCalls
additionalProperties: false
properties:
  cause:
    type: "string"
    enum:
      - rejected
      - busy

Example 1: Hangup a call

curl -X POST "https://nest.messagebird.one/workspaces/8bc02f53-87ac-48d2-b4fd-c2cf856a305f/channels/880d8171-cbab-47bb-81b6-b1a0902da136/calls/4fc2edf7-68f5-437a-89eb-3ce0095409d6
/hangup" \
     -H 'Authorization: Bearer {Token}'

Last updated