Telnyx · Capability

Telnyx API — Call Commands

Telnyx API — Call Commands. 39 operations. Lead operation: Dial. Self-contained Naftiko capability covering one Telnyx business surface.

Run with Naftiko TelnyxCall Commands

What You Can Do

POST
Dialcall — Dial
/v1/calls
POST
Calladdmessagestoaiassistant — Add messages to AI Assistant
/v1/calls/{call-control-id}/actions/ai-assistant-add-messages
POST
Calljoinaiassistant — Join AI Assistant Conversation
/v1/calls/{call-control-id}/actions/ai-assistant-join
POST
Callstartaiassistant — Start AI Assistant
/v1/calls/{call-control-id}/actions/ai-assistant-start
POST
Callstopaiassistant — Stop AI Assistant
/v1/calls/{call-control-id}/actions/ai-assistant-stop
POST
Answercall — Answer call
/v1/calls/{call-control-id}/actions/answer
POST
Bridgecall — Bridge calls
/v1/calls/{call-control-id}/actions/bridge
PUT
Updateclientstate — Update client state
/v1/calls/{call-control-id}/actions/client-state-update
POST
Enqueuecall — Enqueue call
/v1/calls/{call-control-id}/actions/enqueue
POST
Startcallfork — Forking start
/v1/calls/{call-control-id}/actions/fork-start
POST
Stopcallfork — Forking stop
/v1/calls/{call-control-id}/actions/fork-stop
POST
Gathercall — Gather
/v1/calls/{call-control-id}/actions/gather
POST
Stopcallgather — Gather stop
/v1/calls/{call-control-id}/actions/gather-stop
POST
Callgatherusingai — Gather using AI
/v1/calls/{call-control-id}/actions/gather-using-ai
POST
Gatherusingaudio — Gather using audio
/v1/calls/{call-control-id}/actions/gather-using-audio
POST
Gatherusingspeak — Gather using speak
/v1/calls/{call-control-id}/actions/gather-using-speak
POST
Hangupcall — Hangup call
/v1/calls/{call-control-id}/actions/hangup
POST
Leavequeue — Remove call from a queue
/v1/calls/{call-control-id}/actions/leave-queue
POST
Startcallplayback — Play audio URL
/v1/calls/{call-control-id}/actions/playback-start
POST
Stopcallplayback — Stop audio playback
/v1/calls/{call-control-id}/actions/playback-stop
POST
Pausecallrecording — Record pause
/v1/calls/{call-control-id}/actions/record-pause
POST
Resumecallrecording — Record resume
/v1/calls/{call-control-id}/actions/record-resume
POST
Startcallrecord — Recording start
/v1/calls/{call-control-id}/actions/record-start
POST
Stopcallrecording — Recording stop
/v1/calls/{call-control-id}/actions/record-stop
POST
Refercall — SIP Refer a call
/v1/calls/{call-control-id}/actions/refer
POST
Rejectcall — Reject a call
/v1/calls/{call-control-id}/actions/reject
POST
Senddtmf — Send DTMF
/v1/calls/{call-control-id}/actions/send-dtmf
POST
Sendsipinfo — Send SIP info
/v1/calls/{call-control-id}/actions/send-sip-info
POST
Startsiprecsession — SIPREC start
/v1/calls/{call-control-id}/actions/siprec-start
POST
Stopsiprecsession — SIPREC stop
/v1/calls/{call-control-id}/actions/siprec-stop
POST
Speakcall — Speak text
/v1/calls/{call-control-id}/actions/speak
POST
Startcallstreaming — Streaming start
/v1/calls/{call-control-id}/actions/streaming-start
POST
Stopcallstreaming — Streaming stop
/v1/calls/{call-control-id}/actions/streaming-stop
POST
Noisesuppressionstart — Noise Suppression Start (BETA)
/v1/calls/{call-control-id}/actions/suppression-start
POST
Noisesuppressionstop — Noise Suppression Stop (BETA)
/v1/calls/{call-control-id}/actions/suppression-stop
POST
Switchsupervisorrole — Switch supervisor role
/v1/calls/{call-control-id}/actions/switch-supervisor-role
POST
Startcalltranscription — Transcription start
/v1/calls/{call-control-id}/actions/transcription-start
POST
Stopcalltranscription — Transcription stop
/v1/calls/{call-control-id}/actions/transcription-stop
POST
Transfercall — Transfer call
/v1/calls/{call-control-id}/actions/transfer

MCP Tools

dial

Dial

add-messages-ai-assistant

Add messages to AI Assistant

join-ai-assistant-conversation

Join AI Assistant Conversation

start-ai-assistant

Start AI Assistant

stop-ai-assistant

Stop AI Assistant

answer-call

Answer call

bridge-calls

Bridge calls

update-client-state

Update client state

idempotent
enqueue-call

Enqueue call

forking-start

Forking start

forking-stop

Forking stop

gather

Gather

gather-stop

Gather stop

gather-using-ai

Gather using AI

gather-using-audio

Gather using audio

gather-using-speak

Gather using speak

hangup-call

Hangup call

remove-call-queue

Remove call from a queue

play-audio-url

Play audio URL

stop-audio-playback

Stop audio playback

record-pause

Record pause

record-resume

Record resume

recording-start

Recording start

recording-stop

Recording stop

sip-refer-call

SIP Refer a call

reject-call

Reject a call

send-dtmf

Send DTMF

send-sip-info

Send SIP info

siprec-start

SIPREC start

siprec-stop

SIPREC stop

speak-text

Speak text

streaming-start

Streaming start

streaming-stop

Streaming stop

noise-suppression-start-beta

Noise Suppression Start (BETA)

noise-suppression-stop-beta

Noise Suppression Stop (BETA)

switch-supervisor-role

Switch supervisor role

transcription-start

Transcription start

transcription-stop

Transcription stop

transfer-call

Transfer call

Capability Spec

telnyx-call-commands.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Telnyx API — Call Commands
  description: 'Telnyx API — Call Commands. 39 operations. Lead operation: Dial. Self-contained Naftiko capability covering
    one Telnyx business surface.'
  tags:
  - Telnyx
  - Call Commands
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TELNYX_API_KEY: TELNYX_API_KEY
capability:
  consumes:
  - type: http
    namespace: telnyx-call-commands
    baseUri: https://api.telnyx.com/v2
    description: Telnyx API — Call Commands business capability. Self-contained, no shared references.
    resources:
    - name: calls
      path: /calls
      operations:
      - name: dialcall
        method: POST
        description: Dial
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-ai_assistant_add_messages
      path: /calls/{call_control_id}/actions/ai_assistant_add_messages
      operations:
      - name: calladdmessagestoaiassistant
        method: POST
        description: Add messages to AI Assistant
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-ai_assistant_join
      path: /calls/{call_control_id}/actions/ai_assistant_join
      operations:
      - name: calljoinaiassistant
        method: POST
        description: Join AI Assistant Conversation
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-ai_assistant_start
      path: /calls/{call_control_id}/actions/ai_assistant_start
      operations:
      - name: callstartaiassistant
        method: POST
        description: Start AI Assistant
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-ai_assistant_stop
      path: /calls/{call_control_id}/actions/ai_assistant_stop
      operations:
      - name: callstopaiassistant
        method: POST
        description: Stop AI Assistant
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-answer
      path: /calls/{call_control_id}/actions/answer
      operations:
      - name: answercall
        method: POST
        description: Answer call
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-bridge
      path: /calls/{call_control_id}/actions/bridge
      operations:
      - name: bridgecall
        method: POST
        description: Bridge calls
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-client_state_update
      path: /calls/{call_control_id}/actions/client_state_update
      operations:
      - name: updateclientstate
        method: PUT
        description: Update client state
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-enqueue
      path: /calls/{call_control_id}/actions/enqueue
      operations:
      - name: enqueuecall
        method: POST
        description: Enqueue call
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-fork_start
      path: /calls/{call_control_id}/actions/fork_start
      operations:
      - name: startcallfork
        method: POST
        description: Forking start
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-fork_stop
      path: /calls/{call_control_id}/actions/fork_stop
      operations:
      - name: stopcallfork
        method: POST
        description: Forking stop
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-gather
      path: /calls/{call_control_id}/actions/gather
      operations:
      - name: gathercall
        method: POST
        description: Gather
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-gather_stop
      path: /calls/{call_control_id}/actions/gather_stop
      operations:
      - name: stopcallgather
        method: POST
        description: Gather stop
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-gather_using_ai
      path: /calls/{call_control_id}/actions/gather_using_ai
      operations:
      - name: callgatherusingai
        method: POST
        description: Gather using AI
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-gather_using_audio
      path: /calls/{call_control_id}/actions/gather_using_audio
      operations:
      - name: gatherusingaudio
        method: POST
        description: Gather using audio
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-gather_using_speak
      path: /calls/{call_control_id}/actions/gather_using_speak
      operations:
      - name: gatherusingspeak
        method: POST
        description: Gather using speak
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-hangup
      path: /calls/{call_control_id}/actions/hangup
      operations:
      - name: hangupcall
        method: POST
        description: Hangup call
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-leave_queue
      path: /calls/{call_control_id}/actions/leave_queue
      operations:
      - name: leavequeue
        method: POST
        description: Remove call from a queue
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-playback_start
      path: /calls/{call_control_id}/actions/playback_start
      operations:
      - name: startcallplayback
        method: POST
        description: Play audio URL
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-playback_stop
      path: /calls/{call_control_id}/actions/playback_stop
      operations:
      - name: stopcallplayback
        method: POST
        description: Stop audio playback
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-record_pause
      path: /calls/{call_control_id}/actions/record_pause
      operations:
      - name: pausecallrecording
        method: POST
        description: Record pause
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-record_resume
      path: /calls/{call_control_id}/actions/record_resume
      operations:
      - name: resumecallrecording
        method: POST
        description: Record resume
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-record_start
      path: /calls/{call_control_id}/actions/record_start
      operations:
      - name: startcallrecord
        method: POST
        description: Recording start
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-record_stop
      path: /calls/{call_control_id}/actions/record_stop
      operations:
      - name: stopcallrecording
        method: POST
        description: Recording stop
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-refer
      path: /calls/{call_control_id}/actions/refer
      operations:
      - name: refercall
        method: POST
        description: SIP Refer a call
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-reject
      path: /calls/{call_control_id}/actions/reject
      operations:
      - name: rejectcall
        method: POST
        description: Reject a call
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-send_dtmf
      path: /calls/{call_control_id}/actions/send_dtmf
      operations:
      - name: senddtmf
        method: POST
        description: Send DTMF
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-send_sip_info
      path: /calls/{call_control_id}/actions/send_sip_info
      operations:
      - name: sendsipinfo
        method: POST
        description: Send SIP info
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-siprec_start
      path: /calls/{call_control_id}/actions/siprec_start
      operations:
      - name: startsiprecsession
        method: POST
        description: SIPREC start
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-siprec_stop
      path: /calls/{call_control_id}/actions/siprec_stop
      operations:
      - name: stopsiprecsession
        method: POST
        description: SIPREC stop
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-speak
      path: /calls/{call_control_id}/actions/speak
      operations:
      - name: speakcall
        method: POST
        description: Speak text
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-streaming_start
      path: /calls/{call_control_id}/actions/streaming_start
      operations:
      - name: startcallstreaming
        method: POST
        description: Streaming start
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-streaming_stop
      path: /calls/{call_control_id}/actions/streaming_stop
      operations:
      - name: stopcallstreaming
        method: POST
        description: Streaming stop
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-suppression_start
      path: /calls/{call_control_id}/actions/suppression_start
      operations:
      - name: noisesuppressionstart
        method: POST
        description: Noise Suppression Start (BETA)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-suppression_stop
      path: /calls/{call_control_id}/actions/suppression_stop
      operations:
      - name: noisesuppressionstop
        method: POST
        description: Noise Suppression Stop (BETA)
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-switch_supervisor_role
      path: /calls/{call_control_id}/actions/switch_supervisor_role
      operations:
      - name: switchsupervisorrole
        method: POST
        description: Switch supervisor role
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-transcription_start
      path: /calls/{call_control_id}/actions/transcription_start
      operations:
      - name: startcalltranscription
        method: POST
        description: Transcription start
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-transcription_stop
      path: /calls/{call_control_id}/actions/transcription_stop
      operations:
      - name: stopcalltranscription
        method: POST
        description: Transcription stop
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: calls-call_control_id-actions-transfer
      path: /calls/{call_control_id}/actions/transfer
      operations:
      - name: transfercall
        method: POST
        description: Transfer call
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.TELNYX_API_KEY}}'
  exposes:
  - type: rest
    namespace: telnyx-call-commands-rest
    port: 8080
    description: REST adapter for Telnyx API — Call Commands. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/calls
      name: calls
      description: REST surface for calls.
      operations:
      - method: POST
        name: dialcall
        description: Dial
        call: telnyx-call-commands.dialcall
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/ai-assistant-add-messages
      name: calls-call-control-id-actions-ai-assistant-add-messages
      description: REST surface for calls-call_control_id-actions-ai_assistant_add_messages.
      operations:
      - method: POST
        name: calladdmessagestoaiassistant
        description: Add messages to AI Assistant
        call: telnyx-call-commands.calladdmessagestoaiassistant
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/ai-assistant-join
      name: calls-call-control-id-actions-ai-assistant-join
      description: REST surface for calls-call_control_id-actions-ai_assistant_join.
      operations:
      - method: POST
        name: calljoinaiassistant
        description: Join AI Assistant Conversation
        call: telnyx-call-commands.calljoinaiassistant
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/ai-assistant-start
      name: calls-call-control-id-actions-ai-assistant-start
      description: REST surface for calls-call_control_id-actions-ai_assistant_start.
      operations:
      - method: POST
        name: callstartaiassistant
        description: Start AI Assistant
        call: telnyx-call-commands.callstartaiassistant
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/ai-assistant-stop
      name: calls-call-control-id-actions-ai-assistant-stop
      description: REST surface for calls-call_control_id-actions-ai_assistant_stop.
      operations:
      - method: POST
        name: callstopaiassistant
        description: Stop AI Assistant
        call: telnyx-call-commands.callstopaiassistant
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/answer
      name: calls-call-control-id-actions-answer
      description: REST surface for calls-call_control_id-actions-answer.
      operations:
      - method: POST
        name: answercall
        description: Answer call
        call: telnyx-call-commands.answercall
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/bridge
      name: calls-call-control-id-actions-bridge
      description: REST surface for calls-call_control_id-actions-bridge.
      operations:
      - method: POST
        name: bridgecall
        description: Bridge calls
        call: telnyx-call-commands.bridgecall
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/client-state-update
      name: calls-call-control-id-actions-client-state-update
      description: REST surface for calls-call_control_id-actions-client_state_update.
      operations:
      - method: PUT
        name: updateclientstate
        description: Update client state
        call: telnyx-call-commands.updateclientstate
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/enqueue
      name: calls-call-control-id-actions-enqueue
      description: REST surface for calls-call_control_id-actions-enqueue.
      operations:
      - method: POST
        name: enqueuecall
        description: Enqueue call
        call: telnyx-call-commands.enqueuecall
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/fork-start
      name: calls-call-control-id-actions-fork-start
      description: REST surface for calls-call_control_id-actions-fork_start.
      operations:
      - method: POST
        name: startcallfork
        description: Forking start
        call: telnyx-call-commands.startcallfork
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/fork-stop
      name: calls-call-control-id-actions-fork-stop
      description: REST surface for calls-call_control_id-actions-fork_stop.
      operations:
      - method: POST
        name: stopcallfork
        description: Forking stop
        call: telnyx-call-commands.stopcallfork
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/gather
      name: calls-call-control-id-actions-gather
      description: REST surface for calls-call_control_id-actions-gather.
      operations:
      - method: POST
        name: gathercall
        description: Gather
        call: telnyx-call-commands.gathercall
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/gather-stop
      name: calls-call-control-id-actions-gather-stop
      description: REST surface for calls-call_control_id-actions-gather_stop.
      operations:
      - method: POST
        name: stopcallgather
        description: Gather stop
        call: telnyx-call-commands.stopcallgather
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/gather-using-ai
      name: calls-call-control-id-actions-gather-using-ai
      description: REST surface for calls-call_control_id-actions-gather_using_ai.
      operations:
      - method: POST
        name: callgatherusingai
        description: Gather using AI
        call: telnyx-call-commands.callgatherusingai
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/gather-using-audio
      name: calls-call-control-id-actions-gather-using-audio
      description: REST surface for calls-call_control_id-actions-gather_using_audio.
      operations:
      - method: POST
        name: gatherusingaudio
        description: Gather using audio
        call: telnyx-call-commands.gatherusingaudio
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/gather-using-speak
      name: calls-call-control-id-actions-gather-using-speak
      description: REST surface for calls-call_control_id-actions-gather_using_speak.
      operations:
      - method: POST
        name: gatherusingspeak
        description: Gather using speak
        call: telnyx-call-commands.gatherusingspeak
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/hangup
      name: calls-call-control-id-actions-hangup
      description: REST surface for calls-call_control_id-actions-hangup.
      operations:
      - method: POST
        name: hangupcall
        description: Hangup call
        call: telnyx-call-commands.hangupcall
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/leave-queue
      name: calls-call-control-id-actions-leave-queue
      description: REST surface for calls-call_control_id-actions-leave_queue.
      operations:
      - method: POST
        name: leavequeue
        description: Remove call from a queue
        call: telnyx-call-commands.leavequeue
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/playback-start
      name: calls-call-control-id-actions-playback-start
      description: REST surface for calls-call_control_id-actions-playback_start.
      operations:
      - method: POST
        name: startcallplayback
        description: Play audio URL
        call: telnyx-call-commands.startcallplayback
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/playback-stop
      name: calls-call-control-id-actions-playback-stop
      description: REST surface for calls-call_control_id-actions-playback_stop.
      operations:
      - method: POST
        name: stopcallplayback
        description: Stop audio playback
        call: telnyx-call-commands.stopcallplayback
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/record-pause
      name: calls-call-control-id-actions-record-pause
      description: REST surface for calls-call_control_id-actions-record_pause.
      operations:
      - method: POST
        name: pausecallrecording
        description: Record pause
        call: telnyx-call-commands.pausecallrecording
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/record-resume
      name: calls-call-control-id-actions-record-resume
      description: REST surface for calls-call_control_id-actions-record_resume.
      operations:
      - method: POST
        name: resumecallrecording
        description: Record resume
        call: telnyx-call-commands.resumecallrecording
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/record-start
      name: calls-call-control-id-actions-record-start
      description: REST surface for calls-call_control_id-actions-record_start.
      operations:
      - method: POST
        name: startcallrecord
        description: Recording start
        call: telnyx-call-commands.startcallrecord
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/record-stop
      name: calls-call-control-id-actions-record-stop
      description: REST surface for calls-call_control_id-actions-record_stop.
      operations:
      - method: POST
        name: stopcallrecording
        description: Recording stop
        call: telnyx-call-commands.stopcallrecording
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/refer
      name: calls-call-control-id-actions-refer
      description: REST surface for calls-call_control_id-actions-refer.
      operations:
      - method: POST
        name: refercall
        description: SIP Refer a call
        call: telnyx-call-commands.refercall
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/reject
      name: calls-call-control-id-actions-reject
      description: REST surface for calls-call_control_id-actions-reject.
      operations:
      - method: POST
        name: rejectcall
        description: Reject a call
        call: telnyx-call-commands.rejectcall
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/calls/{call-control-id}/actions/send-dtmf
      name: calls-call-control-id-actions-send-dtmf
      description: REST surface for calls-call_control_id-actions-send_dtmf.
      operations:
      - method: POST
        name: senddtmf
        description: Send DTMF
        call: telnyx-call-commands.senddtmf
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /

# --- truncated at 32 KB (49 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/telnyx/refs/heads/main/capabilities/telnyx-call-commands.yaml