Telnyx · Schema

Transfer Call Request

CommunicationsCPaaSVoiceSMSIoTTelecommunicationsMessagingArtificial IntelligenceMCPVoice AIPhone NumbersInference

Properties

Name Type Description
answering_machine_detection string Enables Answering Machine Detection. When a call is answered, Telnyx runs real-time detection to determine if it was picked up by a human or a machine and sends an `call.machine.detection.ended` webho
answering_machine_detection_config object Optional configuration parameters to modify 'answering_machine_detection' performance. Only `total_analysis_time_millis` and `greeting_duration_millis` parameters are applicable when `premium` is sele
audio_url string The URL of a file to be played back when the transfer destination answers before bridging the call. The URL can point to either a WAV or MP3 file. media_name and audio_url cannot be used together in o
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`.
custom_headers array Custom headers to be added to the SIP INVITE.
early_media boolean If set to false, early media will not be passed to the originating leg.
from string The `from` number to be used as the caller id presented to the destination (`to` number). The number should be in +E164 format. This attribute will default to the `to` number of the original call if o
from_display_name string The `from_display_name` string to be used as the caller id name (SIP From Display Name) presented to the destination (`to` number). The string should have a maximum of 128 characters, containing only
media_encryption string Defines whether media should be encrypted on the new call leg. For SIP URI destinations, media encryption can also be requested per endpoint with the `secure` URI parameter: `;secure=true` or `;secure
media_name string The media_name of a file to be played back when the transfer destination answers before bridging the call. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the sam
mute_dtmf string When enabled, DTMF tones are not passed to the call participant. The webhooks containing the DTMF information will be sent.
park_after_unbridge string Specifies behavior after the bridge ends (i.e. the opposite leg either hangs up or is transferred). If supplied with the value `self`, the current leg will be parked after unbridge. If not set, the de
preferred_codecs string The list of comma-separated codecs in order of preference to be used during the call. The codecs supported are `G722`, `PCMU`, `PCMA`, `G729`, `OPUS`, `VP8`, `H264`, `AMR-WB`.
privacy string Indicates the privacy level to be used for the call. When set to `id`, caller ID information (name and number) will be hidden from the called party. When set to `none` or omitted, caller ID will be sh
record string Start recording automatically after an event. Disabled by default.
record_channels string Defines which channel should be recorded ('single' or 'dual') when `record` is specified.
record_custom_file_name string The custom recording file name to be used instead of the default `call_leg_id`. Telnyx will still add a Unix timestamp suffix.
record_format string Defines the format of the recording ('wav' or 'mp3') when `record` is specified.
record_max_length integer Defines the maximum length for the recording in seconds when `record` is specified. The minimum value is 0. The maximum value is 43200. The default value is 0 (infinite).
record_timeout_secs integer The number of seconds that Telnyx will wait for the recording to be stopped if silence is detected when `record` is specified. The timer only starts when the speech is detected. Please note that call
record_track string The audio track to be recorded. Can be either `both`, `inbound` or `outbound`. If only single track is specified (`inbound`, `outbound`), `channels` configuration is ignored and it will be recorded as
record_trim string When set to `trim-silence`, silence will be removed from the beginning and end of the recording.
sip_auth_password string SIP Authentication password used for SIP challenges.
sip_auth_username string SIP Authentication username used for SIP challenges.
sip_headers array SIP headers to be added to the SIP INVITE. Currently only User-to-User header is supported.
sip_region string Defines the SIP region to be used for the call.
sip_transport_protocol string Defines SIP transport protocol to be used on the call.
sound_modifications object
target_leg_client_state string Use this field to add state to every subsequent webhook for the new leg. It must be a valid Base-64 encoded string.
time_limit_secs integer Sets the maximum duration of a Call Control Leg in seconds. If the time limit is reached, the call will hangup and a `call.hangup` webhook with a `hangup_cause` of `time_limit` will be sent. For examp
timeout_secs integer The number of seconds that Telnyx will wait for the call to be answered by the destination to which it is being transferred. If the timeout is reached before an answer is received, the call will hangu
to string The DID or SIP URI to dial out to. For SIP URI destinations, append `;secure=true` or `;secure=srtp` to enable SRTP media encryption for that endpoint, or `;secure=dtls` to enable DTLS media encryptio
webhook_retries_policies object A map of event types to retry policies. Each retry policy contains an array of `retries_ms` specifying the delays between retry attempts in milliseconds. Maximum 5 retries, total delay cannot exceed 6
webhook_url string Use this field to override the URL for which Telnyx will send subsequent webhooks to for this call.
webhook_url_method string HTTP request type used for `webhook_url`.
webhook_urls object A map of event types to webhook URLs. When an event of the specified type occurs, the webhook URL associated with that event type will be called instead of `webhook_url`. Events not mapped here will u
webhook_urls_method string HTTP request method to invoke `webhook_urls`.
View JSON Schema on GitHub

JSON Schema

telnyx-transfer-call-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/telnyx/main/json-schema/telnyx-transfer-call-request-schema.json",
  "title": "Transfer Call Request",
  "x-generated": "2026-10-08",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telnyx-call-commands-api-openapi.yml#/components/schemas/TransferCallRequest",
  "properties": {
    "answering_machine_detection": {
      "default": "disabled",
      "description": "Enables Answering Machine Detection. When a call is answered, Telnyx runs real-time detection to determine if it was picked up by a human or a machine and sends an `call.machine.detection.ended` webhook with the analysis result. If 'greeting_end' or 'detect_words' is used and a 'machine' is detected, you will receive another 'call.machine.greeting.ended' webhook when the answering machine greeting ends with a beep or silence. If `detect_beep` is used, you will only receive 'call.machine.greeting.ended' if a beep is detected.",
      "enum": [
        "premium",
        "detect",
        "detect_beep",
        "detect_words",
        "greeting_end",
        "disabled"
      ],
      "type": "string"
    },
    "answering_machine_detection_config": {
      "description": "Optional configuration parameters to modify 'answering_machine_detection' performance. Only `total_analysis_time_millis` and `greeting_duration_millis` parameters are applicable when `premium` is selected as answering_machine_detection.",
      "properties": {
        "after_greeting_silence_millis": {
          "default": 800,
          "description": "Silence duration threshold after a greeting message or voice for it be considered human.",
          "format": "int32",
          "type": "integer"
        },
        "between_words_silence_millis": {
          "default": 50,
          "description": "Maximum threshold for silence between words.",
          "format": "int32",
          "type": "integer"
        },
        "greeting_duration_millis": {
          "default": 3500,
          "description": "Maximum threshold of a human greeting. If greeting longer than this value, considered machine.",
          "format": "int32",
          "type": "integer"
        },
        "greeting_silence_duration_millis": {
          "default": 1500,
          "description": "If machine already detected, maximum threshold for silence between words. If exceeded, the greeting is considered ended.",
          "format": "int32",
          "type": "integer"
        },
        "greeting_total_analysis_time_millis": {
          "default": 5000,
          "description": "If machine already detected, maximum timeout threshold to determine the end of the machine greeting.",
          "format": "int32",
          "type": "integer"
        },
        "initial_silence_millis": {
          "default": 3500,
          "description": "If initial silence duration is greater than this value, consider it a machine.",
          "format": "int32",
          "type": "integer"
        },
        "maximum_number_of_words": {
          "default": 5,
          "description": "If number of detected words is greater than this value, consder it a machine.",
          "format": "int32",
          "type": "integer"
        },
        "maximum_word_length_millis": {
          "default": 3500,
          "description": "If a single word lasts longer than this threshold, consider it a machine.",
          "format": "int32",
          "type": "integer"
        },
        "silence_threshold": {
          "default": 256,
          "description": "Minimum noise threshold for any analysis.",
          "format": "int32",
          "type": "integer"
        },
        "total_analysis_time_millis": {
          "default": 3500,
          "description": "Maximum timeout threshold for overall detection.",
          "format": "int32",
          "type": "integer"
        }
      },
      "type": "object"
    },
    "audio_url": {
      "description": "The URL of a file to be played back when the transfer destination answers before bridging the call. The URL can point to either a WAV or MP3 file. media_name and audio_url cannot be used together in one request.",
      "type": "string"
    },
    "client_state": {
      "description": "Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.",
      "type": "string"
    },
    "command_id": {
      "description": "Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`.",
      "type": "string"
    },
    "custom_headers": {
      "description": "Custom headers to be added to the SIP INVITE.",
      "items": {
        "$ref": "#/$defs/CustomSipHeader"
      },
      "type": "array"
    },
    "early_media": {
      "default": true,
      "description": "If set to false, early media will not be passed to the originating leg.",
      "type": "boolean"
    },
    "from": {
      "description": "The `from` number to be used as the caller id presented to the destination (`to` number). The number should be in +E164 format. This attribute will default to the `to` number of the original call if omitted.",
      "type": "string"
    },
    "from_display_name": {
      "description": "The `from_display_name` string to be used as the caller id name (SIP From Display Name) presented to the destination (`to` number). The string should have a maximum of 128 characters, containing only letters, numbers, spaces, and -_~!.+ special characters. If ommited, the display name will be the same as the number in the `from` field.",
      "type": "string"
    },
    "media_encryption": {
      "default": "disabled",
      "description": "Defines whether media should be encrypted on the new call leg. For SIP URI destinations, media encryption can also be requested per endpoint with the `secure` URI parameter: `;secure=true` or `;secure=srtp` enables SRTP, and `;secure=dtls` enables DTLS. This parameter, when set to `SRTP` or `DTLS`, takes precedence over the per-endpoint `secure` value.",
      "enum": [
        "disabled",
        "SRTP",
        "DTLS"
      ],
      "type": "string"
    },
    "media_name": {
      "description": "The media_name of a file to be played back when the transfer destination answers before bridging the call. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either be a WAV or MP3 file.",
      "type": "string"
    },
    "mute_dtmf": {
      "default": "none",
      "description": "When enabled, DTMF tones are not passed to the call participant. The webhooks containing the DTMF information will be sent.",
      "enum": [
        "none",
        "both",
        "self",
        "opposite"
      ],
      "type": "string"
    },
    "park_after_unbridge": {
      "description": "Specifies behavior after the bridge ends (i.e. the opposite leg either hangs up or is transferred). If supplied with the value `self`, the current leg will be parked after unbridge. If not set, the default behavior is to hang up the leg.",
      "type": "string"
    },
    "preferred_codecs": {
      "description": "The list of comma-separated codecs in order of preference to be used during the call. The codecs supported are `G722`, `PCMU`, `PCMA`, `G729`, `OPUS`, `VP8`, `H264`, `AMR-WB`.",
      "type": "string"
    },
    "privacy": {
      "description": "Indicates the privacy level to be used for the call. When set to `id`, caller ID information (name and number) will be hidden from the called party. When set to `none` or omitted, caller ID will be shown normally.",
      "enum": [
        "id",
        "none"
      ],
      "type": "string"
    },
    "record": {
      "description": "Start recording automatically after an event. Disabled by default.",
      "enum": [
        "record-from-answer"
      ],
      "type": "string"
    },
    "record_channels": {
      "default": "dual",
      "description": "Defines which channel should be recorded ('single' or 'dual') when `record` is specified.",
      "enum": [
        "single",
        "dual"
      ],
      "type": "string"
    },
    "record_custom_file_name": {
      "description": "The custom recording file name to be used instead of the default `call_leg_id`. Telnyx will still add a Unix timestamp suffix.",
      "maxLength": 40,
      "minLength": 1,
      "type": "string"
    },
    "record_format": {
      "default": "mp3",
      "description": "Defines the format of the recording ('wav' or 'mp3') when `record` is specified.",
      "enum": [
        "wav",
        "mp3"
      ],
      "type": "string"
    },
    "record_max_length": {
      "default": 0,
      "description": "Defines the maximum length for the recording in seconds when `record` is specified. The minimum value is 0. The maximum value is 43200. The default value is 0 (infinite).",
      "format": "int32",
      "type": "integer"
    },
    "record_timeout_secs": {
      "default": 0,
      "description": "The number of seconds that Telnyx will wait for the recording to be stopped if silence is detected when `record` is specified. The timer only starts when the speech is detected. Please note that call transcription is used to detect silence and the related charge will be applied. The minimum value is 0. The default value is 0 (infinite).",
      "format": "int32",
      "type": "integer"
    },
    "record_track": {
      "default": "both",
      "description": "The audio track to be recorded. Can be either `both`, `inbound` or `outbound`. If only single track is specified (`inbound`, `outbound`), `channels` configuration is ignored and it will be recorded as mono (single channel).",
      "enum": [
        "both",
        "inbound",
        "outbound"
      ],
      "type": "string"
    },
    "record_trim": {
      "description": "When set to `trim-silence`, silence will be removed from the beginning and end of the recording.",
      "enum": [
        "trim-silence"
      ],
      "type": "string"
    },
    "sip_auth_password": {
      "description": "SIP Authentication password used for SIP challenges.",
      "type": "string"
    },
    "sip_auth_username": {
      "description": "SIP Authentication username used for SIP challenges.",
      "type": "string"
    },
    "sip_headers": {
      "description": "SIP headers to be added to the SIP INVITE. Currently only User-to-User header is supported.",
      "items": {
        "$ref": "#/$defs/SipHeader"
      },
      "type": "array"
    },
    "sip_region": {
      "default": "US",
      "description": "Defines the SIP region to be used for the call.",
      "enum": [
        "US",
        "Europe",
        "Canada",
        "Australia",
        "Middle East"
      ],
      "type": "string"
    },
    "sip_transport_protocol": {
      "default": "UDP",
      "description": "Defines SIP transport protocol to be used on the call.",
      "enum": [
        "UDP",
        "TCP",
        "TLS"
      ],
      "type": "string"
    },
    "sound_modifications": {
      "$ref": "#/$defs/SoundModifications"
    },
    "target_leg_client_state": {
      "description": "Use this field to add state to every subsequent webhook for the new leg. It must be a valid Base-64 encoded string.",
      "type": "string"
    },
    "time_limit_secs": {
      "default": 14400,
      "description": "Sets the maximum duration of a Call Control Leg in seconds. If the time limit is reached, the call will hangup and a `call.hangup` webhook with a `hangup_cause` of `time_limit` will be sent. For example, by setting a time limit of 120 seconds, a Call Leg will be automatically terminated two minutes after being answered. The default time limit is 14400 seconds or 4 hours and this is also the maximum allowed call length.",
      "format": "int32",
      "maximum": 14400,
      "minimum": 30,
      "type": "integer"
    },
    "timeout_secs": {
      "default": 30,
      "description": "The number of seconds that Telnyx will wait for the call to be answered by the destination to which it is being transferred. If the timeout is reached before an answer is received, the call will hangup and a `call.hangup` webhook with a `hangup_cause` of `timeout` will be sent. Minimum value is 5 seconds. Maximum value is 600 seconds.",
      "format": "int32",
      "type": "integer"
    },
    "to": {
      "description": "The DID or SIP URI to dial out to. For SIP URI destinations, append `;secure=true` or `;secure=srtp` to enable SRTP media encryption for that endpoint, or `;secure=dtls` to enable DTLS media encryption for that endpoint. If `media_encryption` is set to `SRTP` or `DTLS`, it takes precedence over any per-endpoint `secure` URI parameter.",
      "type": "string"
    },
    "webhook_retries_policies": {
      "additionalProperties": {
        "properties": {
          "retries_ms": {
            "description": "Array of delays in milliseconds between retry attempts. Total sum cannot exceed 60000ms.",
            "items": {
              "type": "integer"
            },
            "maxItems": 5,
            "type": "array"
          }
        },
        "type": "object"
      },
      "description": "A map of event types to retry policies. Each retry policy contains an array of `retries_ms` specifying the delays between retry attempts in milliseconds. Maximum 5 retries, total delay cannot exceed 60 seconds.",
      "type": "object"
    },
    "webhook_url": {
      "description": "Use this field to override the URL for which Telnyx will send subsequent webhooks to for this call.",
      "type": "string"
    },
    "webhook_url_method": {
      "default": "POST",
      "description": "HTTP request type used for `webhook_url`.",
      "enum": [
        "POST",
        "GET"
      ],
      "type": "string"
    },
    "webhook_urls": {
      "additionalProperties": {
        "format": "uri",
        "type": "string"
      },
      "description": "A map of event types to webhook URLs. When an event of the specified type occurs, the webhook URL associated with that event type will be called instead of `webhook_url`. Events not mapped here will use the default `webhook_url`.",
      "type": "object"
    },
    "webhook_urls_method": {
      "default": "POST",
      "description": "HTTP request method to invoke `webhook_urls`.",
      "enum": [
        "POST",
        "GET"
      ],
      "type": "string"
    }
  },
  "required": [
    "to"
  ],
  "type": "object",
  "$defs": {
    "CustomSipHeader": {
      "properties": {
        "name": {
          "description": "The name of the header to add.",
          "type": "string"
        },
        "value": {
          "description": "The value of the header.",
          "type": "string"
        }
      },
      "required": [
        "name",
        "value"
      ],
      "title": "Custom SIP Header",
      "type": "object"
    },
    "SipHeader": {
      "properties": {
        "name": {
          "description": "The name of the header to add.",
          "enum": [
            "User-to-User"
          ],
          "type": "string"
        },
        "value": {
          "description": "The value of the header.",
          "type": "string"
        }
      },
      "required": [
        "name",
        "value"
      ],
      "title": "SIP Header",
      "type": "object"
    },
    "SoundModifications": {
      "description": "Use this field to modify sound effects, for example adjust the pitch.",
      "properties": {
        "octaves": {
          "description": "Adjust the pitch in octaves, values should be between -1 and 1, default 0",
          "format": "float",
          "type": "number"
        },
        "pitch": {
          "description": "Set the pitch directly, value should be > 0, default 1 (lower = lower tone)",
          "format": "float",
          "type": "number"
        },
        "semitone": {
          "description": "Adjust the pitch in semitones, values should be between -14 and 14, default 0",
          "format": "float",
          "type": "number"
        },
        "track": {
          "default": "outbound",
          "description": "The track to which the sound modifications will be applied. Accepted values are `inbound` or `outbound`",
          "type": "string"
        }
      },
      "title": "Sound modifications",
      "type": "object"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/telnyx-transfer-call-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.