Skip to main content

Reject a call

POST 
/calls/:call_control_id/actions/reject

Reject an incoming call.

Expected Webhooks:

  • call.hangup

Request

Path Parameters

    call_control_id stringrequired

    Unique identifier and token for controlling the call

Body

required

Reject request

    client_state string

    Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.

    command_id string

    Use this field to avoid duplicate commands. Telnyx will ignore any command with the same command_id for the same call_control_id.

    cause stringrequired

    Possible values: [CALL_REJECTED, USER_BUSY]

    Cause for call rejection.

Responses

200: Successful response upon making a call control command.

default: Unexpected error

Callbacks

Loading...