> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fish.audio/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Voice Agent

> Create an agent, optionally with its full initial configuration inline —
one call provisions a ready-to-publish agent.



## OpenAPI

````yaml post /v1/agent/agents
openapi: 3.1.0
info:
  title: FishAudio OpenAPI
  version: '1'
servers:
  - description: Fish Audio API
    url: https://api.fish.audio
security: []
tags: []
paths:
  /v1/agent/agents:
    post:
      tags:
        - Agents
      summary: Create Agent
      description: >-
        Create an agent, optionally with its full initial configuration inline —

        one call provisions a ready-to-publish agent. The agent starts as a
        draft:

        publish it before creating sessions with it.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PublicAgentCreatePayload'
      responses:
        '201':
          description: Document created, URL follows
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  agent_id:
                    title: Agent Id
                    type: string
                  workspace_id:
                    title: Workspace Id
                    type: string
                  name:
                    title: Name
                    type: string
                  description:
                    default: ''
                    title: Description
                    type: string
                  status:
                    enum:
                      - active
                      - archived
                    title: Status
                    type: string
                  publication_state:
                    description: >-
                      `live` once at least one version is published; `draft`
                      agents cannot take sessions yet.
                    enum:
                      - live
                      - draft
                    title: Publication State
                    type: string
                  public_enabled:
                    default: false
                    title: Public Enabled
                    type: boolean
                  allowed_origins:
                    items:
                      type: string
                    title: Allowed Origins
                    type: array
                  restrict_origins:
                    default: false
                    description: >-
                      Whether public access is limited to `allowed_origins`.
                      When false, any origin can start a public session.
                    title: Restrict Origins
                    type: boolean
                  overrides_allowed:
                    items:
                      enum:
                        - first_message
                        - system_prompt
                        - voice_id
                        - language
                        - asr.model
                        - llm.fallback
                      type: string
                    title: Overrides Allowed
                    type: array
                  created_at:
                    format: date-time
                    title: Created At
                    type: string
                  updated_at:
                    format: date-time
                    title: Updated At
                    type: string
                required:
                  - agent_id
                  - workspace_id
                  - name
                  - status
                  - publication_state
                  - created_at
                  - updated_at
                type: object
        '401':
          description: No permission -- see authorization schemes
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                  reason:
                    anyOf:
                      - type: string
                      - type: 'null'
                    default: null
                    title: Reason
                required:
                  - status
                  - message
                type: object
        '403':
          description: Request forbidden -- authorization will not help
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                  reason:
                    anyOf:
                      - type: string
                      - type: 'null'
                    default: null
                    title: Reason
                required:
                  - status
                  - message
                type: object
        '422':
          description: ''
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                  reason:
                    anyOf:
                      - type: string
                      - type: 'null'
                    default: null
                    title: Reason
                required:
                  - status
                  - message
                type: object
        '503':
          description: The server cannot process the request due to a high load
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                  reason:
                    anyOf:
                      - type: string
                      - type: 'null'
                    default: null
                    title: Reason
                required:
                  - status
                  - message
                type: object
      security:
        - BearerAuth: []
      x-codeSamples:
        - lang: bash
          label: Create Agent
          source: |-
            curl --request POST \
              --url https://api.fish.audio/v1/agent/agents \
              --header 'Authorization: Bearer <token>' \
              --header 'Content-Type: application/json' \
              --data '{
                "name": "Receptionist",
                "description": "Handles inbound calls.",
                "config": {
                  "prompt": {
                    "system_prompt": "You are the receptionist for Fish Dental."
                  },
                  "voice": {
                    "voice_id": "<voice-model-id>",
                    "speaking_language": "en"
                  }
                }
              }'
components:
  schemas:
    PublicAgentCreatePayload:
      additionalProperties: false
      properties:
        name:
          maxLength: 120
          minLength: 1
          title: Name
          type: string
        description:
          default: ''
          maxLength: 2000
          title: Description
          type: string
        config:
          anyOf:
            - $ref: '#/components/schemas/PublicAgentConfigPatchPayload'
            - type: 'null'
          default: null
          description: >-
            Optional initial draft configuration, applied atop the platform
            defaults; one call provisions a fully configured agent.
      required:
        - name
      title: PublicAgentCreatePayload
      type: object
    PublicAgentConfigPatchPayload:
      additionalProperties: false
      properties:
        prompt:
          anyOf:
            - $ref: '#/components/schemas/PublicAgentPromptPatch'
            - type: 'null'
          default: null
        voice:
          anyOf:
            - $ref: '#/components/schemas/PublicAgentVoicePatch'
            - type: 'null'
          default: null
        asr:
          anyOf:
            - $ref: '#/components/schemas/PublicAgentAsrPatch'
            - type: 'null'
          default: null
        conversation:
          anyOf:
            - $ref: '#/components/schemas/PublicAgentConversationPatch'
            - type: 'null'
          default: null
        tools:
          anyOf:
            - $ref: '#/components/schemas/PublicAgentToolsPatch'
            - type: 'null'
          default: null
        webhooks:
          anyOf:
            - $ref: '#/components/schemas/PublicAgentWebhooksPatch'
            - type: 'null'
          default: null
        knowledge_base:
          anyOf:
            - $ref: '#/components/schemas/PublicAgentKnowledgeBasePatch'
            - type: 'null'
          default: null
        analysis:
          anyOf:
            - $ref: '#/components/schemas/PublicAgentAnalysisPatch'
            - type: 'null'
          default: null
        guardrails:
          anyOf:
            - $ref: '#/components/schemas/PublicAgentGuardrailsPatch'
            - type: 'null'
          default: null
        context:
          anyOf:
            - $ref: '#/components/schemas/PublicAgentContextPatch'
            - type: 'null'
          default: null
        llm:
          anyOf:
            - $ref: '#/components/schemas/PublicAgentLLMPatch'
            - type: 'null'
          default: null
        variables:
          anyOf:
            - $ref: '#/components/schemas/PublicAgentVariablesPatch'
            - type: 'null'
          default: null
          description: >-
            Default values for the {{placeholders}} in the configured text, used
            when the session supplies none (the map replaces as a whole), and
            on_missing for a placeholder with neither: keep leaves it as written
            (default), empty renders it as empty text, reject refuses the
            session.
      title: PublicAgentConfigPatchPayload
      type: object
    PublicAgentPromptPatch:
      additionalProperties: false
      properties:
        system_prompt:
          anyOf:
            - maxLength: 500000
              type: string
            - type: 'null'
          default: null
          description: >-
            Limited to 64000 tokens (o200k_base), 32000 when `llm.model` is
            `google/gemma-4-26b-a4b-it`; keeping it under 2000 tokens is
            recommended for latency and cost.
          title: System Prompt
        first_message_mode:
          anyOf:
            - enum:
                - 'off'
                - fixed
                - prompt
              type: string
            - type: 'null'
          default: null
          title: First Message Mode
        first_message:
          anyOf:
            - maxLength: 10000
              type: string
            - type: 'null'
          default: null
          title: First Message
        first_message_prompt:
          anyOf:
            - maxLength: 10000
              type: string
            - type: 'null'
          default: null
          title: First Message Prompt
        first_message_start:
          anyOf:
            - enum:
                - agent_first
                - wait_for_caller
              type: string
            - type: 'null'
          default: null
          description: >-
            When the opener plays. `agent_first` (default): the agent speaks as
            soon as the call connects. `wait_for_caller`: the agent waits for
            the caller to speak first and plays the opener anyway once
            `first_message_max_wait_ms` has passed. `wait_for_caller` needs a
            `fixed` or `prompt` opener: with `first_message_mode` `off` the
            write is rejected with 422, and the stored values stay as they were.
            With a `fixed` opener the agent speaks after the caller does, or
            when the wait runs out; with a `prompt` opener it answers what the
            caller said first.
          title: First Message Start
        first_message_max_wait_ms:
          anyOf:
            - maximum: 5000
              minimum: 1000
              type: integer
            - type: 'null'
          default: null
          description: >-
            Milliseconds (1000-5000, default 3000) a `wait_for_caller` agent
            waits before it speaks anyway. Stored but has no effect while
            `first_message_start` is `agent_first`.
          title: First Message Max Wait Ms
        first_message_interruptible:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          description: >-
            Whether the caller can cut the opener off. `true`: interruptible.
            `false`: protected, the opener always plays to the end and what the
            caller says meanwhile is dropped, not answered afterwards. `null` or
            omitted (default): interruptible, the same as `true`. It does not
            follow `conversation.interruptible`. Reads always return `true` or
            `false`.
          title: First Message Interruptible
      title: PublicAgentPromptPatch
      type: object
    PublicAgentVoicePatch:
      additionalProperties: false
      properties:
        voice_id:
          anyOf:
            - maxLength: 256
              type: string
            - type: 'null'
          default: null
          description: >-
            The agent's voice: a Voice Library voice or one of your clones by
            id, or with engine live3 one of the speech model's own voices by its
            lowercase name (clara, nora, owen, marco, milo, jonah, harper,
            patricia, and for the DT situation maddie, ethan, tyler, brianna). A
            name is rejected while the engine is fish_tts. When a session of an
            agent on one of the names runs on Fish TTS (another language, or the
            speech model unavailable), it speaks a Voice Library counterpart of
            that voice.
          title: Voice Id
        speaking_language:
          anyOf:
            - enum:
                - en
                - ja
                - zh
                - ko
                - es
                - fr
                - de
                - pt
                - it
                - nl
                - ar
                - hi
                - id
                - tr
                - ru
                - bg
                - sr
                - hr
                - cs
                - sk
                - pl
                - uk
                - ro
                - hu
                - el
                - sv
                - da
                - 'no'
                - fi
                - et
                - lv
                - lt
                - ca
                - he
                - fa
                - ur
                - kk
                - ka
                - hy
                - bn
                - ta
                - te
                - kn
                - mr
                - gu
                - pa
                - ne
                - th
                - vi
                - ms
                - tl
                - af
              type: string
            - type: 'null'
          default: null
          title: Speaking Language
        expressive:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          title: Expressive
        speed:
          anyOf:
            - maximum: 2
              minimum: 0.5
              type: number
            - type: 'null'
          default: null
          title: Speed
        tts_model:
          anyOf:
            - enum:
                - s2.1-pro
                - drama-3
              type: string
            - type: 'null'
          default: null
          title: Tts Model
        engine:
          anyOf:
            - enum:
                - fish_tts
                - live3
              type: string
            - type: 'null'
          default: null
          description: >-
            Speech engine. live3 (the default for new agents) puts the Fish
            full-duplex speech model on the call: it listens while it speaks and
            takes turns on its own. English only: sessions in another language
            run on fish_tts. fish_tts speaks the model's text through Fish TTS
            in the agent's voice, and is what agents from before the engine
            existed run. While the engine is live3, speech recognition is
            managed automatically by the platform, and switching to live3 turns
            asr.multilingual on unless the same patch sets it. An agent still on
            the default voice also starts on the speech model's voice Clara at
            the switch, unless it had one of the speech model's voices before or
            the same patch picks a voice. An agent with a voice of its own keeps
            speaking it.
          title: Engine
        live3_prompt:
          anyOf:
            - maxLength: 64
              type: string
            - type: 'null'
          default: null
          description: >-
            live3 only. The situation the speech model speaks in: P2 (phone
            support), DT (drive-thru) or AIR (airline). Empty: the default.
            Ignored on fish_tts.
          title: Live3 Prompt
        effect:
          anyOf:
            - enum:
                - none
                - phone
                - intercom
              type: string
            - type: 'null'
          default: null
          description: >-
            How the agent's voice sounds on web calls (the console test call,
            the widget, the SDK). none (default): the clean voice. phone: a
            handset line, the 300 to 3400 Hz band with the codec's grain.
            intercom: a small overdriven speaker, as at a drive-thru order post
            or a door intercom. Phone and WhatsApp calls already sound like a
            line and ignore it.
          title: Effect
        pronunciation_dictionary_ids:
          anyOf:
            - items:
                type: string
              maxItems: 3
              type: array
            - type: 'null'
          default: null
          title: Pronunciation Dictionary Ids
        background_sound:
          anyOf:
            - $ref: '#/components/schemas/AgentBackgroundSoundPayload'
            - type: 'null'
          default: null
          description: >-
            A looping ambience the worker mixes under the agent's voice. volume
            is the ambience's gain relative to the agent's voice, 0–1 (default
            0.15). custom_asset_id names an uploaded clip (POST
            /agent/background-sounds) and is required with preset "custom",
            refused otherwise. Replaces the whole object; null resets to off.
      title: PublicAgentVoicePatch
      type: object
    PublicAgentAsrPatch:
      additionalProperties: false
      properties:
        model:
          anyOf:
            - enum:
                - deepgram:nova-3
                - elevenlabs:scribe_v2_realtime
                - elevenlabs:scribe_v2_medical
                - fish_audio:transcribe-stream-1
                - fish_audio:transcribe-stream-2
                - fish_audio:transcribe-stream-1-dev
              type: string
            - type: 'null'
          default: null
          title: Model
        multilingual:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          title: Multilingual
        strict_language:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          description: >-
            Enforces voice.speaking_language whatever multilingual says: speech
            recognized as another language reaches the agent as [unintelligible
            speech]. Language is detected per utterance, so a short or heavily
            accented phrase in the speaking language can occasionally be
            detected as another language and replaced too. With deepgram:nova-3,
            speech in another language is usually not transcribed at all. Only
            enable it when you explicitly need to stop the agent from
            understanding other languages.
          title: Strict Language
        keyterms:
          anyOf:
            - items:
                type: string
              maxItems: 50
              type: array
            - type: 'null'
          default: null
          title: Keyterms
      title: PublicAgentAsrPatch
      type: object
    PublicAgentConversationPatch:
      additionalProperties: false
      properties:
        max_duration_seconds:
          anyOf:
            - maximum: 3600
              minimum: 60
              type: integer
            - type: 'null'
          default: null
          title: Max Duration Seconds
        response_wait_ms:
          anyOf:
            - maximum: 2000
              minimum: 300
              type: integer
            - type: 'null'
          default: null
          title: Response Wait Ms
        eagerness:
          anyOf:
            - enum:
                - relaxed
                - balanced
                - eager
              type: string
            - type: 'null'
          default: null
          title: Eagerness
        response_max_wait_ms:
          anyOf:
            - maximum: 4000
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Response Max Wait Ms
        interruptible:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          title: Interruptible
        interruption_sensitivity:
          anyOf:
            - enum:
                - low
                - balanced
                - high
                - immediate
              type: string
            - type: 'null'
          default: null
          description: >-
            How much caller speech counts as an interruption while the agent
            speaks. With `low` the agent stops only for a firm, worded
            interjection and talks through background noise and short
            acknowledgements. `balanced` (default) interrupts on normal speech.
            With `high` the agent stops on the caller's first word. With
            `immediate` the agent stops at the caller's first sound, so
            backchannels such as "okay" and "yeah" stop it too, and it picks up
            where it stopped when the caller was only backchanneling or did not
            take the turn. `immediate` is only available to teams it has been
            enabled for, other teams get a 403 when they set it.
          title: Interruption Sensitivity
        interruption_ignore_phrases:
          anyOf:
            - items:
                type: string
              maxItems: 50
              type: array
            - type: 'null'
          default: null
          title: Interruption Ignore Phrases
        backchannel:
          anyOf:
            - $ref: '#/components/schemas/AgentBackchannelPatch'
            - type: 'null'
          default: null
          description: >-
            The agent's backchannels: a short "mm-hmm" or "okay" when the caller
            pauses. Applies to speech engines that backchannel, which is live3
            today, and is ignored on the others. Fields you leave out keep their
            value.
        speculative_response:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          title: Speculative Response
        reengage:
          anyOf:
            - $ref: '#/components/schemas/AgentReengagePatch'
            - type: 'null'
          default: null
          description: >-
            Silence follow-ups: whether the agent speaks up while the caller
            stays silent, when, what it says, and what happens after the last
            follow-up. Fields you send replace the stored value, fields you
            leave out are kept.
        hangup_after_seconds:
          anyOf:
            - maximum: 3600
              minimum: 10
              type: integer
            - type: 'null'
          default: null
          title: Hangup After Seconds
        hangup_farewell_mode:
          anyOf:
            - enum:
                - generated
                - fixed
                - 'off'
              type: string
            - type: 'null'
          default: null
          description: >-
            What the agent says before a silence hangup. `off` (default) hangs
            up without a word, `generated` says a short goodbye, `fixed` says
            hangup_farewell_message. A `fixed` mode with an empty message falls
            back to `generated`. If the caller speaks during the goodbye, the
            call goes on.
          title: Hangup Farewell Mode
        hangup_farewell_message:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            The goodbye said verbatim in the `fixed` hangup_farewell_mode, at
            most 500 characters. `{{variable}}` placeholders are filled in for
            each session. "" clears it.
          title: Hangup Farewell Message
        record_audio:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          title: Record Audio
        timezone:
          anyOf:
            - maxLength: 64
              type: string
            - type: 'null'
          default: null
          title: Timezone
        transfer_destinations:
          anyOf:
            - items:
                $ref: '#/components/schemas/AgentTransferDestinationPatch'
              type: array
            - type: 'null'
          default: null
          title: Transfer Destinations
        transfer_refuse_questions:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          title: Transfer Refuse Questions
        outbound:
          anyOf:
            - $ref: '#/components/schemas/AgentOutboundPatch'
            - type: 'null'
          default: null
        keypad_menu:
          anyOf:
            - $ref: '#/components/schemas/AgentKeypadMenuPatch'
            - type: 'null'
          default: null
        keypad_input:
          anyOf:
            - $ref: '#/components/schemas/AgentKeypadInputPatch'
            - type: 'null'
          default: null
        echo_guard:
          anyOf:
            - $ref: '#/components/schemas/AgentEchoGuardPatch'
            - type: 'null'
          default: null
          description: >-
            Echo guard. For the first 3 seconds after the agent first starts
            talking in a call, the caller cannot interrupt it and anything the
            caller says while the agent is talking is not heard. This stops the
            agent's own voice, echoing back from a speakerphone or laptop, from
            cutting it off. Per channel: true on, false off, null uses the
            default (on for web_voice and phone_inbound, off for
            phone_outbound). Channels you send replace the stored value, null on
            a channel resets it to the default, channels you leave out are kept.
            null resets every channel.
        turn_detector:
          anyOf:
            - $ref: '#/components/schemas/AgentTurnDetectorPatch'
            - type: 'null'
          default: null
          description: >-
            Turn detector: how the agent decides the caller has finished
            speaking, so it can answer. Applies to agents whose `voice.engine`
            is `fish_tts`. It has no effect when `asr.model` is a Fish realtime
            model (`fish_audio:transcribe-stream-1` or
            `fish_audio:transcribe-stream-2`), which detects the end of the turn
            itself. Fields you send replace the stored values, fields you leave
            out are kept. null on a field, or for the whole object, goes back to
            the default, which the response reports.
      title: PublicAgentConversationPatch
      type: object
    PublicAgentToolsPatch:
      additionalProperties: false
      properties:
        enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          title: Enabled
        tool_ids:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          default: null
          description: >-
            Replaces the attached tool set wholesale. Every id must be an
            existing tool in the agent's workspace, else 422.
          title: Tool Ids
        system_tools:
          anyOf:
            - $ref: '#/components/schemas/PublicSystemToolsPatch'
            - type: 'null'
          default: null
      title: PublicAgentToolsPatch
      type: object
    PublicAgentWebhooksPatch:
      additionalProperties: false
      properties:
        conversation_init:
          anyOf:
            - $ref: '#/components/schemas/PublicConversationInitWebhookPayload'
            - type: 'null'
          default: null
          description: >-
            Pre-call webhook for inbound phone calls: called while the call is
            being set up; the response's dynamic_variables render into the
            published prompt before the agent speaks. An explicit null removes
            it. Takes effect after the next publish.
        post_call:
          anyOf:
            - items:
                $ref: '#/components/schemas/PublicPostCallWebhookPayload'
              maxItems: 5
              type: array
            - type: 'null'
          default: null
          description: >-
            Up to 5 endpoints, each receiving every post-call event. Replaces
            the configured list wholesale; a single object is still accepted and
            is stored as a one-element list, and null (or an empty list) clears
            every endpoint. URLs must be unique.
          title: Post Call
      title: PublicAgentWebhooksPatch
      type: object
    PublicAgentKnowledgeBasePatch:
      additionalProperties: false
      properties:
        enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          description: >-
            Whether the agent retrieves from its attached sources. Defaults to
            true when omitted alongside a non-empty knowledge_source_ids; send
            false explicitly to attach sources without using them yet.
          title: Enabled
        knowledge_source_ids:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          default: null
          description: >-
            Replaces the attached knowledge sources wholesale. Every id must be
            an existing knowledge source visible to the agent, else 422.
          title: Knowledge Source Ids
      title: PublicAgentKnowledgeBasePatch
      type: object
    PublicAgentAnalysisPatch:
      additionalProperties: false
      properties:
        summary:
          anyOf:
            - $ref: '#/components/schemas/PublicAgentAnalysisSummaryPatch'
            - type: 'null'
          default: null
        data_fields:
          anyOf:
            - items:
                $ref: '#/components/schemas/PublicAgentAnalysisDataField'
              maxItems: 20
              type: array
            - type: 'null'
          default: null
          title: Data Fields
        criteria:
          anyOf:
            - items:
                $ref: '#/components/schemas/PublicAgentAnalysisCriterion'
              maxItems: 10
              type: array
            - type: 'null'
          default: null
          title: Criteria
      title: PublicAgentAnalysisPatch
      type: object
    PublicAgentGuardrailsPatch:
      additionalProperties: false
      properties:
        focus:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          title: Focus
        manipulation:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          title: Manipulation
        pre_tool_speech:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          title: Pre Tool Speech
      title: PublicAgentGuardrailsPatch
      type: object
    PublicAgentContextPatch:
      additionalProperties: false
      properties:
        current_time:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          title: Current Time
      title: PublicAgentContextPatch
      type: object
    PublicAgentLLMPatch:
      additionalProperties: false
      properties:
        model:
          anyOf:
            - enum:
                - google/gemini-3.5-flash-lite
                - google/gemini-3.6-flash
                - google/gemini-3.8-flash
                - google/gemini-3.6-flash-priority
                - google/gemini-3.8-flash-priority
                - google/gemini-3.5-flash-lite-priority
                - google/gemini-4-hydrogen
                - google/gemini-4-neon
                - google/gemini-4-hydrogen-priority
                - google/gemini-4-neon-priority
                - google/gemini-2.5-flash
                - google/gemma-4-26b-a4b-it
                - anthropic/claude-haiku-4.5
                - anthropic/claude-sonnet-4.6
                - anthropic/claude-sonnet-5.5
                - anthropic/claude-opus-5.5
                - anthropic/claude-fable-5.1
                - anthropic/claude-fable-5.2
                - openai/gpt-5.6-luna
                - openai/gpt-6-luna
                - openai/gpt-5
                - openai/gpt-6.1-sol
                - openai/gpt-6.1-terra
                - openai/gpt-6-astra
                - openai/gpt-6.2-sol
                - openai/gpt-4o
                - openai/gpt-4.1
                - openai/gpt-5.6-luna-fast
                - openai/gpt-6-luna-fast
                - openai/gpt-6.1-terra-fast
                - openai/gpt-6.1-sol-fast
                - openai/gpt-6-astra-fast
                - openai/gpt-6.2-sol-fast
                - openai/gpt-4o-fast
                - openai/gpt-4.1-fast
              type: string
            - type: 'null'
          default: null
          title: Model
        custom:
          anyOf:
            - $ref: '#/components/schemas/PublicAgentLLMCustomConfig'
            - type: 'null'
          default: null
          description: >-
            Your own OpenAI-compatible endpoint; mutually exclusive with
            `model`, explicit null reverts to the platform model.
        fallback:
          anyOf:
            - $ref: '#/components/schemas/PublicAgentLLMFallback'
            - type: 'null'
          default: null
          description: >-
            What the agent tries after its model fails. `platform` (default):
            the platform's built-in fallback for platform models, none for
            `custom`. `manual`: `models` in order. `off`: no other model.
            Replaces the whole fallback; null means `platform`.
      title: PublicAgentLLMPatch
      type: object
    PublicAgentVariablesPatch:
      additionalProperties: false
      properties:
        defaults:
          anyOf:
            - additionalProperties:
                anyOf:
                  - type: string
                  - type: integer
                  - type: number
                  - type: boolean
              type: object
            - type: 'null'
          default: null
          title: Defaults
        on_missing:
          anyOf:
            - enum:
                - keep
                - empty
                - reject
              type: string
            - type: 'null'
          default: null
          title: On Missing
      title: PublicAgentVariablesPatch
      type: object
    AgentBackgroundSoundPayload:
      additionalProperties: false
      description: >-
        Write shape: replaces voice.background_sound as a whole (AgentVoicePatch

        null resets to the default). Strict, unlike the read model: a bad
        pairing

        422s instead of silently falling back.
      properties:
        preset:
          default: 'off'
          enum:
            - 'off'
            - office
            - call_center
            - restaurant
            - cafe
            - city_street
            - phone_line
            - phone_line_digital
            - custom
          title: Preset
          type: string
        volume:
          default: 0.15
          maximum: 1
          minimum: 0
          title: Volume
          type: number
        custom_asset_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Custom Asset Id
      title: AgentBackgroundSoundPayload
      type: object
    AgentBackchannelPatch:
      additionalProperties: false
      properties:
        enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          description: >-
            Whether the agent backchannels. Default true. false turns them off:
            the agent may still add one now and then, and the first sound after
            the caller stops can come a little later.
          title: Enabled
        strength:
          anyOf:
            - maximum: 10
              minimum: 1
              type: integer
            - type: 'null'
          default: null
          description: >-
            How readily the agent backchannels, a whole number from 1 (rarely)
            to 10 (at nearly every pause). null (default): the speech engine's
            own setting, 6 on live3. Send null to go back to it. Not used while
            enabled is false.
          title: Strength
      title: AgentBackchannelPatch
      type: object
    AgentReengagePatch:
      additionalProperties: false
      properties:
        enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          description: >-
            Whether the agent follows up when the caller stays silent (default
            false). `steps` sets when and what it says. Turning this off keeps
            the steps.
          title: Enabled
        steps:
          anyOf:
            - items:
                $ref: '#/components/schemas/AgentReengageStepPatch'
              maxItems: 10
              minItems: 1
              type: array
            - type: 'null'
          default: null
          description: >-
            The follow-ups the agent makes while the caller stays silent, in
            order, 1 to 10 steps. Used only while `enabled` is true. A new agent
            starts with two steps, after 8 and 10 seconds. When the caller
            speaks, the sequence starts over from the first step. Agents created
            before these settings existed keep their earlier behavior until
            changed: follow-ups after 5 and 10 seconds, then a hangup 10 seconds
            later. Replaces the whole list. Cannot be sent together with
            `schedule`.
          title: Steps
        exhausted_action:
          anyOf:
            - enum:
                - wait
                - hangup
              type: string
            - type: 'null'
          default: null
          description: >-
            What happens when the last follow-up goes unanswered. `wait` (what a
            new agent starts with): the agent stays quiet until
            hangup_after_seconds ends the call. `hangup`: the agent hangs up
            after `exhausted_after_seconds` more seconds of silence.
            hangup_farewell_mode applies to either hangup. Agents created before
            this setting existed are on `hangup` until changed.
          title: Exhausted Action
        exhausted_after_seconds:
          anyOf:
            - maximum: 600
              minimum: 3
              type: integer
            - type: 'null'
          default: null
          description: >-
            Seconds of silence after the last follow-up before the agent hangs
            up, 3 to 600 seconds (default 10). Used only when `exhausted_action`
            is `hangup`.
          title: Exhausted After Seconds
        schedule:
          anyOf:
            - $ref: '#/components/schemas/AgentReengageSchedulePatch'
            - type: 'null'
          default: null
          description: >-
            Shorthand for evenly spaced follow-ups, accepted on writes only and
            never returned. It replaces `steps` with `count` steps (the first
            after `first_seconds`, each later one after `interval_seconds`) and
            sets `exhausted_after_seconds` to `interval_seconds` unless the same
            request sets it. `exhausted_action` stays as it is. Cannot be sent
            together with `steps`.
      title: AgentReengagePatch
      type: object
    AgentTransferDestinationPatch:
      additionalProperties: false
      properties:
        type:
          default: phone
          enum:
            - phone
            - sip
          title: Type
          type: string
        label:
          default: ''
          title: Label
          type: string
        phone_number:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Destination in E.164, for type `phone`. Calls through a number
            bought on the platform can only be transferred to the supported
            countries. A number in another country is dialed by your own
            carrier, so it needs an imported SIP number: any imported number for
            a cold transfer, one with termination configured for a warm
            transfer. Without such a number in the team the write is rejected.
            On a call through any other number the destination is left out, and
            the agent cannot transfer to it.
          title: Phone Number
        sip_uri:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Destination for type `sip`: the SIP address to transfer the call to,
            written `sip:user@host[:port][;transport=udp|tcp|tls]`, for example
            `sip:support@pbx.example.com`. The host must be a public domain name
            or IP address, and a `sips:` URI uses TLS. The URI holds only the
            address, in at most 512 characters: a password, headers or any other
            parameter is rejected, so use `auth_username` and `auth_password`
            for credentials and `headers` for SIP headers. Dynamic variables are
            not supported in the URI.
          title: Sip Uri
        headers:
          additionalProperties:
            type: string
          description: >-
            SIP destinations only: custom SIP headers sent with the transferred
            call, as an object of header names and values, up to 20. A name
            starts with `X-` followed by letters, digits and hyphens, at most 64
            characters in all, or is `User-to-User`. Names are not
            case-sensitive and `X-Fish-` names are reserved for headers the
            platform adds itself. A value is 1 to 1024 printable ASCII
            characters (128 for `User-to-User`) and can contain dynamic
            variables such as `{{customer_id}}`, filled in when the session
            starts. When a value cannot be filled in for a call, for example
            because a variable has no value and no default, the destination is
            left out of that call. A warm transfer sends the headers on the call
            the agent places to the destination. A cold transfer hands them to
            the caller's carrier, which decides whether to pass them on.
          title: Headers
          type: object
        description:
          default: ''
          title: Description
          type: string
        mode:
          default: cold
          enum:
            - cold
            - warm
          title: Mode
          type: string
        warm_connect:
          default: confirm
          enum:
            - confirm
            - briefing
            - direct
          title: Warm Connect
          type: string
        warm_briefing_instructions:
          default: ''
          title: Warm Briefing Instructions
          type: string
        warm_briefing_speed:
          anyOf:
            - maximum: 2
              minimum: 0.5
              type: number
            - type: 'null'
          default: null
          title: Warm Briefing Speed
        warm_ring_timeout_seconds:
          default: 30
          title: Warm Ring Timeout Seconds
          type: integer
        warm_confirm_timeout_seconds:
          default: 60
          title: Warm Confirm Timeout Seconds
          type: integer
        warm_human_detection:
          default: false
          description: >-
            Applies to warm transfers whose warm_connect is `confirm` or
            `briefing`, and is ignored for cold transfers and `direct`. When
            true, once the destination answers, the agent stays silent until the
            other side speaks, then classifies the pickup. A person is briefed
            as usual. Voicemail or an IVR (phone menu) ends the transfer as
            failed. A hold queue or silence keeps the agent waiting until
            `warm_confirm_timeout_seconds` ends the attempt as unreachable. A
            failed transfer follows `on_failure`. Leave it off for destinations
            whose people are only reachable through a phone menu, because the
            menu stops the transfer.
          title: Warm Human Detection
          type: boolean
        warm_press_keys:
          $ref: '#/components/schemas/AgentTransferPressKeysPatch'
          description: >-
            Beta. Key presses on the call in which the agent reaches this
            destination, for a number that an automated phone menu answers
            before a person does. Applies to warm transfers whose warm_connect
            is `confirm` or `briefing`, and is ignored for cold transfers and
            `direct`. It has no effect while warm_human_detection is true,
            because that setting ends the transfer when a phone menu answers.
            The time spent in the menu counts toward
            `warm_confirm_timeout_seconds`, so such a destination usually needs
            a longer one. Absent means off. The list of destinations is replaced
            as a whole, so a destination sent without the field has it off.
        warm_consult_uses_agent_settings:
          default: true
          description: >-
            Compatibility option for warm transfers whose warm_connect is
            `confirm` or `briefing`, ignored for cold transfers and `direct`.
            Absent or true (recommended): on the call in which the agent briefs
            the destination, the agent uses the same turn-taking (response
            timing: `eagerness`, `response_wait_ms` and `response_max_wait_ms`),
            interruption (`interruption_sensitivity` and
            `interruption_ignore_phrases`) and language
            (`voice.speaking_language`) settings as on the call with the caller.
            False: that call keeps the older fixed behavior. Destinations that
            existed before this setting were set to false so their behavior did
            not change. Either way the destination can always interrupt the
            agent on that call, whatever `interruptible` is set to. A
            destination sent without the field keeps the value of the existing
            destination it replaces (same label, else a renamed one with the
            same phone number or SIP URI) and is true when it is new. Send true
            to switch a destination to the agent's settings.
          title: Warm Consult Uses Agent Settings
          type: boolean
        on_failure:
          $ref: '#/components/schemas/AgentTransferOnFailurePatch'
        announcement_mode:
          default: generated
          enum:
            - generated
            - fixed
            - 'off'
          title: Announcement Mode
          type: string
        announcement_message:
          default: ''
          title: Announcement Message
          type: string
        auth_username:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            SIP destinations in `warm` mode only: the digest username the
            destination's SIP server asks for. The agent places the call to a
            warm destination itself and answers the server's 401 or 407
            challenge with this username and the stored password. A response
            that carries it means a password is stored. A `cold` destination
            sent with it is rejected: a cold transfer hands the call to the
            caller's carrier, which dials the destination and never has the
            credentials. Send null or an empty string to remove the credentials.
            A destination sent without the field keeps the credentials of the
            existing destination it replaces (same label, else a renamed one
            with the same SIP URI) while it stays a warm SIP destination on the
            same host and port, and loses them otherwise.
          title: Auth Username
        auth_password:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          description: >-
            Write-only digest password that goes with `auth_username`. It is
            stored encrypted and no response ever returns it. Omit it, or send
            an empty string, to keep the password already stored for a
            destination with the same SIP host and port and the same
            `auth_username`. It is required when the destination is new or its
            host, port or username changed. Sending the password that is already
            stored changes nothing. A new password takes effect on calls once
            the agent is published.
          title: Auth Password
      title: AgentTransferDestinationPatch
      type: object
    AgentOutboundPatch:
      additionalProperties: false
      properties:
        amd_enabled:
          default: true
          title: Amd Enabled
          type: boolean
        voicemail:
          anyOf:
            - $ref: '#/components/schemas/AgentOutboundVoicemailPatch'
            - type: 'null'
          default: null
      title: AgentOutboundPatch
      type: object
    AgentKeypadMenuPatch:
      additionalProperties: false
      properties:
        enabled:
          default: false
          title: Enabled
          type: boolean
        prompt:
          default: ''
          title: Prompt
          type: string
        options:
          default: []
          items:
            $ref: '#/components/schemas/AgentKeypadMenuOptionPatch'
          maxItems: 12
          title: Options
          type: array
        accept_speech:
          default: true
          title: Accept Speech
          type: boolean
        variable:
          default: menu_choice
          title: Variable
          type: string
        no_input_timeout_seconds:
          default: 5
          maximum: 15
          minimum: 2
          title: No Input Timeout Seconds
          type: integer
        max_attempts:
          default: 2
          maximum: 3
          minimum: 1
          title: Max Attempts
          type: integer
        retry_message:
          default: ''
          title: Retry Message
          type: string
        fallback_value:
          default: ''
          title: Fallback Value
          type: string
      title: AgentKeypadMenuPatch
      type: object
    AgentKeypadInputPatch:
      additionalProperties: false
      properties:
        enabled:
          default: false
          title: Enabled
          type: boolean
        terminator:
          default: '#'
          enum:
            - '#'
            - '*'
            - none
          title: Terminator
          type: string
        inter_digit_timeout_seconds:
          default: 2
          maximum: 10
          minimum: 1
          title: Inter Digit Timeout Seconds
          type: integer
      title: AgentKeypadInputPatch
      type: object
    AgentEchoGuardPatch:
      additionalProperties: false
      properties:
        web_voice:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          description: >-
            Voice calls in a browser or app (web widget, SDK, test calls). Null
            uses the default (on).
          title: Web Voice
        phone_inbound:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          description: Inbound phone calls. Null uses the default (on).
          title: Phone Inbound
        phone_outbound:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          description: Outbound phone calls. Null uses the default (off).
          title: Phone Outbound
      title: AgentEchoGuardPatch
      type: object
    AgentTurnDetectorPatch:
      additionalProperties: false
      properties:
        model:
          anyOf:
            - enum:
                - fish
                - legacy
              type: string
            - type: 'null'
          default: null
          description: >-
            The model that judges the end of the caller's turn. `fish` is Fish
            Audio's turn detection model. It waits for the end of the caller's
            thought, so a caller who pauses between two sentences or between
            groups of digits is less often answered in the middle. `legacy` is
            the earlier model. It answers sooner after a sentence that sounds
            complete. The default is `fish`. An account whose agents ran the
            earlier model before this setting existed has `legacy` as its
            default, so they behave as they did. An agent that never set the
            model reads the default, and a new agent is created with it.
          title: Model
      title: AgentTurnDetectorPatch
      type: object
    PublicSystemToolsPatch:
      additionalProperties: false
      properties:
        hang_up_call:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          title: Hang Up Call
        hang_up_call_farewell_mode:
          anyOf:
            - enum:
                - generated
                - fixed
                - 'off'
              type: string
            - type: 'null'
          default: null
          title: Hang Up Call Farewell Mode
        hang_up_call_farewell_message:
          anyOf:
            - maxLength: 1000
              type: string
            - type: 'null'
          default: null
          title: Hang Up Call Farewell Message
        hang_up_call_refuse_questions:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          title: Hang Up Call Refuse Questions
        press_keys:
          anyOf:
            - $ref: '#/components/schemas/PublicPressKeysPatch'
            - type: 'null'
          default: null
          description: >-
            Beta. Key presses on outbound phone calls, for calls that reach an
            automated phone menu before a person. The fields sent are written,
            the others stay as they are.
      title: PublicSystemToolsPatch
      type: object
    PublicConversationInitWebhookPayload:
      additionalProperties: false
      properties:
        url:
          maxLength: 4000
          minLength: 1
          title: Url
          type: string
        secret:
          anyOf:
            - maxLength: 256
              type: string
            - type: 'null'
          default: null
          description: >-
            Optional HMAC-SHA256 signing secret (X-Fish-Webhook-Signature).
            Write-only: reads report `has_secret` instead of the value. Omit it
            (or send null) to keep the secret already stored for the same url;
            send an empty string to remove it.
          title: Secret
        keep_previous_secret_for_seconds:
          anyOf:
            - maximum: 604800
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          description: >-
            Secret rotation. When `secret` replaces the stored secret, the
            replaced one keeps signing as a second `v1` for this many seconds
            (at most 7 days), so your endpoint can switch without dropping a
            delivery. Omit it to switch at once. With the secret kept, 0 ends an
            open rotation window and any other value is ignored. Takes effect
            after the next publish.
          title: Keep Previous Secret For Seconds
        timeout_seconds:
          default: 5
          description: >-
            How long the platform waits for the endpoint before connecting the
            call without variables.
          maximum: 8
          minimum: 1
          title: Timeout Seconds
          type: number
      required:
        - url
      title: PublicConversationInitWebhookPayload
      type: object
    PublicPostCallWebhookPayload:
      additionalProperties: false
      properties:
        url:
          maxLength: 4000
          minLength: 1
          title: Url
          type: string
        secret:
          anyOf:
            - maxLength: 256
              type: string
            - type: 'null'
          default: null
          description: >-
            Optional HMAC-SHA256 signing secret (X-Fish-Webhook-Signature).
            Write-only: reads report `has_secret` instead of the value. Omit it
            (or send null) to keep the secret already stored for the same url;
            send an empty string to remove it.
          title: Secret
        keep_previous_secret_for_seconds:
          anyOf:
            - maximum: 604800
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          description: >-
            Secret rotation. When `secret` replaces the stored secret, the
            replaced one keeps signing as a second `v1` for this many seconds
            (at most 7 days), so your endpoint can switch without dropping a
            delivery. Omit it to switch at once. With the secret kept, 0 ends an
            open rotation window and any other value is ignored. Takes effect
            after the next publish.
          title: Keep Previous Secret For Seconds
      required:
        - url
      title: PublicPostCallWebhookPayload
      type: object
    PublicAgentAnalysisSummaryPatch:
      additionalProperties: false
      properties:
        enabled:
          default: true
          title: Enabled
          type: boolean
        prompt:
          anyOf:
            - maxLength: 1000
              type: string
            - type: 'null'
          default: null
          title: Prompt
        language:
          default: en
          enum:
            - en
            - ja
            - zh
            - ko
            - es
            - fr
            - de
            - pt
            - it
            - nl
            - ar
            - hi
            - id
            - tr
            - ru
            - bg
            - sr
            - hr
            - cs
            - sk
            - pl
            - uk
            - ro
            - hu
            - el
            - sv
            - da
            - 'no'
            - fi
            - et
            - lv
            - lt
            - ca
            - he
            - fa
            - ur
            - kk
            - ka
            - hy
            - bn
            - ta
            - te
            - kn
            - mr
            - gu
            - pa
            - ne
            - th
            - vi
            - ms
            - tl
            - af
          title: Language
          type: string
      title: PublicAgentAnalysisSummaryPatch
      type: object
    PublicAgentAnalysisDataField:
      additionalProperties: false
      properties:
        name:
          pattern: ^[a-z][a-z0-9_]{0,63}$
          title: Name
          type: string
        type:
          default: text
          enum:
            - boolean
            - text
            - number
            - enum
          title: Type
          type: string
        description:
          default: ''
          maxLength: 500
          title: Description
          type: string
        enum_options:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          default: null
          title: Enum Options
      required:
        - name
      title: PublicAgentAnalysisDataField
      type: object
    PublicAgentAnalysisCriterion:
      additionalProperties: false
      properties:
        name:
          pattern: ^[a-z][a-z0-9_]{0,63}$
          title: Name
          type: string
        description:
          default: ''
          maxLength: 500
          title: Description
          type: string
      required:
        - name
      title: PublicAgentAnalysisCriterion
      type: object
    PublicAgentLLMCustomConfig:
      additionalProperties: false
      properties:
        base_url:
          maxLength: 2000
          minLength: 1
          title: Base Url
          type: string
        model:
          maxLength: 256
          minLength: 1
          title: Model
          type: string
        api_key:
          anyOf:
            - maxLength: 4096
              minLength: 1
              type: string
            - type: 'null'
          default: null
          description: >-
            Sent to your endpoint as the Authorization bearer token; write-only,
            reads return null. Required when introducing `custom`; omit to keep
            the stored key when updating.
          title: Api Key
        headers:
          anyOf:
            - additionalProperties:
                type: string
              type: object
            - type: 'null'
          default: null
          description: >-
            Extra headers sent on every request to your endpoint, such as
            `x-vercel-protection-bypass`. Reads return the stored map. Omit to
            keep the stored headers, `{}` clears them.
          title: Headers
      required:
        - base_url
        - model
      title: PublicAgentLLMCustomConfig
      type: object
    PublicAgentLLMFallback:
      additionalProperties: false
      properties:
        mode:
          enum:
            - platform
            - manual
            - 'off'
          title: Mode
          type: string
        models:
          anyOf:
            - items:
                $ref: '#/components/schemas/PublicAgentLLMFallbackModel'
              type: array
            - type: 'null'
          default: null
          description: Fallback models in order, 1 to 3. Only with mode `manual`.
          title: Models
        primary:
          anyOf:
            - $ref: '#/components/schemas/AgentLLMTimeoutsPayload'
            - type: 'null'
          default: null
          description: The agent's own model's timeouts. Only with mode `manual`.
      required:
        - mode
      title: PublicAgentLLMFallback
      type: object
    AgentReengageStepPatch:
      additionalProperties: false
      properties:
        after_seconds:
          description: >-
            Seconds of silence, counted from the end of what the agent last
            said, before this follow-up, 3 to 600 seconds.
          maximum: 600
          minimum: 3
          title: After Seconds
          type: integer
        message:
          default: ''
          description: >-
            Text the agent says word for word as this follow-up, at most 500
            characters. `{{variable}}` placeholders are filled in for each
            session. "" (default) lets the agent word the follow-up itself.
          title: Message
          type: string
      required:
        - after_seconds
      title: AgentReengageStepPatch
      type: object
    AgentReengageSchedulePatch:
      additionalProperties: false
      description: Evenly spaced follow-ups, expanded into reengage.steps on write.
      properties:
        first_seconds:
          description: >-
            Seconds of silence, counted from the end of what the agent last
            said, before the first follow-up, 3 to 600 seconds.
          maximum: 600
          minimum: 3
          title: First Seconds
          type: integer
        interval_seconds:
          description: >-
            Seconds of silence after one follow-up before the next, 3 to 600
            seconds.
          maximum: 600
          minimum: 3
          title: Interval Seconds
          type: integer
        count:
          description: How many follow-ups, 1 to 10.
          maximum: 10
          minimum: 1
          title: Count
          type: integer
        messages:
          anyOf:
            - items:
                type: string
              maxItems: 10
              type: array
            - type: 'null'
          default: null
          description: >-
            Texts the agent says word for word, one per follow-up in order, at
            most `count` items, each with the limits of a step's message. With
            fewer items than `count` the last one repeats. Omit it and the agent
            words every follow-up itself.
          title: Messages
      required:
        - first_seconds
        - interval_seconds
        - count
      title: AgentReengageSchedulePatch
      type: object
    AgentTransferPressKeysPatch:
      additionalProperties: false
      properties:
        enabled:
          default: false
          description: >-
            When true, on the call to this destination the agent can press phone
            keys to get through the menu (`_press_keys`), and stay silent while
            the menu or a hold message plays (`_skip_turn`), before it briefs
            the person who answers. It works the same whether the caller's own
            call is inbound or outbound, and does not depend on
            `tools.system_tools.press_keys`.
          title: Enabled
          type: boolean
        instructions:
          default: ''
          description: >-
            How to get through this number's phone menu, written for the agent,
            such as `Press 2 for billing, then enter extension 204.` Optional,
            at most 500 characters. `{{variable}}` placeholders are filled in
            for each session. Without it the agent picks keys from the
            destination's label and description and from what the caller asked
            for. Used only while enabled is true, and kept when it is false.
          title: Instructions
          type: string
      title: AgentTransferPressKeysPatch
      type: object
    AgentTransferOnFailurePatch:
      additionalProperties: false
      properties:
        action:
          default: return_to_agent
          enum:
            - return_to_agent
            - end_call
          title: Action
          type: string
        message:
          default: ''
          title: Message
          type: string
      title: AgentTransferOnFailurePatch
      type: object
    AgentOutboundVoicemailPatch:
      additionalProperties: false
      properties:
        action:
          default: hangup
          enum:
            - hangup
            - leave_message
            - leave_prompt_message
          title: Action
          type: string
        message:
          default: ''
          maxLength: 10000
          title: Message
          type: string
      title: AgentOutboundVoicemailPatch
      type: object
    AgentKeypadMenuOptionPatch:
      additionalProperties: false
      properties:
        key:
          title: Key
          type: string
        value:
          title: Value
          type: string
      required:
        - key
        - value
      title: AgentKeypadMenuOptionPatch
      type: object
    PublicPressKeysPatch:
      additionalProperties: false
      properties:
        enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          description: >-
            When true, the agent gets two tools on outbound phone calls.
            `_press_keys` presses phone keys to get through an automated phone
            menu, and `_skip_turn` stays silent for a turn while a menu or a
            hold message plays. An agent test on the `phone_outbound` channel
            has them as well. Inbound calls and web and API sessions ignore it.
          title: Enabled
      title: PublicPressKeysPatch
      type: object
    PublicAgentLLMFallbackModel:
      additionalProperties: false
      properties:
        model:
          anyOf:
            - enum:
                - google/gemini-3.5-flash-lite
                - google/gemini-3.6-flash
                - google/gemini-3.8-flash
                - google/gemini-3.6-flash-priority
                - google/gemini-3.8-flash-priority
                - google/gemini-3.5-flash-lite-priority
                - google/gemini-4-hydrogen
                - google/gemini-4-neon
                - google/gemini-4-hydrogen-priority
                - google/gemini-4-neon-priority
                - google/gemini-2.5-flash
                - google/gemma-4-26b-a4b-it
                - anthropic/claude-haiku-4.5
                - anthropic/claude-sonnet-4.6
                - anthropic/claude-sonnet-5.5
                - anthropic/claude-opus-5.5
                - anthropic/claude-fable-5.1
                - anthropic/claude-fable-5.2
                - openai/gpt-5.6-luna
                - openai/gpt-6-luna
                - openai/gpt-5
                - openai/gpt-6.1-sol
                - openai/gpt-6.1-terra
                - openai/gpt-6-astra
                - openai/gpt-6.2-sol
                - openai/gpt-4o
                - openai/gpt-4.1
                - openai/gpt-5.6-luna-fast
                - openai/gpt-6-luna-fast
                - openai/gpt-6.1-terra-fast
                - openai/gpt-6.1-sol-fast
                - openai/gpt-6-astra-fast
                - openai/gpt-6.2-sol-fast
                - openai/gpt-4o-fast
                - openai/gpt-4.1-fast
              type: string
            - type: 'null'
          default: null
          title: Model
        custom:
          anyOf:
            - $ref: '#/components/schemas/PublicAgentLLMCustomConfig'
            - type: 'null'
          default: null
          description: >-
            A customer endpoint, with the same rules as `llm.custom`. Omit
            `api_key` to keep the stored key of the fallback with the same
            `base_url` and `model`.
        ttft_timeout_ms:
          anyOf:
            - maximum: 30000
              minimum: 500
              type: integer
            - type: 'null'
          default: null
          description: >-
            Milliseconds the model gets to start its reply (first text or tool
            call). Past it, the reply moves to the next fallback model. Not set:
            defaults to 5000 ms (5 seconds).
          title: Ttft Timeout Ms
        total_timeout_ms:
          anyOf:
            - maximum: 120000
              minimum: 1000
              type: integer
            - type: 'null'
          default: null
          description: >-
            Milliseconds the model gets to finish its reply. Past it, a reply
            nothing of which was spoken yet moves to the next fallback model;
            one already being spoken fails like any failed reply. At least
            `ttft_timeout_ms` when both are set. Not set: no limit.
          title: Total Timeout Ms
        parallel:
          anyOf:
            - $ref: '#/components/schemas/AgentLLMParallelPayload'
            - type: 'null'
          default: null
          description: >-
            First entry only: request this model together with the agent's own
            model. Both requests bill their tokens.
      title: PublicAgentLLMFallbackModel
      type: object
    AgentLLMTimeoutsPayload:
      additionalProperties: false
      description: >-
        The agent's own model's timeouts, write model. Unset ttft_timeout_ms =

        5000 ms (5 seconds); unset total_timeout_ms = no limit. The two are
        compared

        only when both are set.
      properties:
        ttft_timeout_ms:
          anyOf:
            - maximum: 30000
              minimum: 500
              type: integer
            - type: 'null'
          default: null
          description: >-
            Milliseconds the model gets to start its reply (first text or tool
            call). Past it, the reply moves to the next fallback model. Not set:
            defaults to 5000 ms (5 seconds).
          title: Ttft Timeout Ms
        total_timeout_ms:
          anyOf:
            - maximum: 120000
              minimum: 1000
              type: integer
            - type: 'null'
          default: null
          description: >-
            Milliseconds the model gets to finish its reply. Past it, a reply
            nothing of which was spoken yet moves to the next fallback model;
            one already being spoken fails like any failed reply. At least
            `ttft_timeout_ms` when both are set. Not set: no limit.
          title: Total Timeout Ms
      title: AgentLLMTimeoutsPayload
      type: object
    AgentLLMParallelPayload:
      additionalProperties: false
      properties:
        kick_in_ms:
          default: 1500
          description: >-
            The agent's own model keeps the reply if its first token comes
            within this many milliseconds; past it, this fallback's reply is
            used. The other request is cancelled.
          maximum: 10000
          minimum: 300
          title: Kick In Ms
          type: integer
      title: AgentLLMParallelPayload
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.