> ## 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.

# Get Agent Version

> One published version with its full frozen configuration snapshot —
including the current live version.



## OpenAPI

````yaml get /v1/agent/agents/{agent_id}/versions/{version_number}
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/{agent_id}/versions/{version_number}:
    get:
      tags:
        - Agents
      summary: Get Agent Version
      description: |-
        One published version with its full frozen configuration snapshot —
        including the current live version. Secrets inside the snapshot are
        redacted the same way as the draft config.
      parameters:
        - in: path
          name: agent_id
          description: ''
          required: true
          schema:
            title: Agent Id
            type: string
          deprecated: false
        - in: path
          name: version_number
          description: ''
          required: true
          schema:
            title: Version Number
            type: integer
          deprecated: false
      responses:
        '200':
          description: Request fulfilled, document follows
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  version_number:
                    title: Version Number
                    type: integer
                  version_title:
                    anyOf:
                      - type: string
                      - type: 'null'
                    default: null
                    title: Version Title
                  version_description:
                    anyOf:
                      - type: string
                      - type: 'null'
                    default: null
                    title: Version Description
                  config_hash:
                    title: Config Hash
                    type: string
                  published_at:
                    format: date-time
                    title: Published At
                    type: string
                  config:
                    $ref: '#/components/schemas/PublicAgentConfigEntity'
                    description: >-
                      The immutable configuration snapshot this version pinned
                      at publish time.
                required:
                  - version_number
                  - config_hash
                  - published_at
                  - config
                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
                required:
                  - status
                  - message
                type: object
        '404':
          description: Nothing matches the given URI
          headers: {}
          content:
            application/json:
              schema:
                properties:
                  status:
                    title: Status
                    type: integer
                  message:
                    title: Message
                    type: string
                required:
                  - status
                  - message
                type: object
      security:
        - BearerAuth: []
components:
  schemas:
    PublicAgentConfigEntity:
      properties:
        agent_id:
          title: Agent Id
          type: string
        config_hash:
          description: >-
            Content hash of the draft; equal to a version's config_hash when the
            draft has no unpublished changes.
          title: Config Hash
          type: string
        prompt:
          $ref: '#/components/schemas/AgentPromptConfig'
        voice:
          $ref: '#/components/schemas/AgentVoiceConfig'
        conversation:
          $ref: '#/components/schemas/AgentConversationConfig'
        tools:
          $ref: '#/components/schemas/PublicAgentToolsConfig'
        webhooks:
          $ref: '#/components/schemas/PublicAgentWebhooksConfig'
        knowledge_base:
          $ref: '#/components/schemas/PublicAgentKnowledgeBaseConfig'
        analysis:
          $ref: '#/components/schemas/AgentAnalysisConfig'
        updated_at:
          format: date-time
          title: Updated At
          type: string
      required:
        - agent_id
        - config_hash
        - prompt
        - voice
        - conversation
        - tools
        - webhooks
        - knowledge_base
        - analysis
        - updated_at
      title: PublicAgentConfigEntity
      type: object
    AgentPromptConfig:
      properties:
        system_prompt:
          default: ''
          title: System Prompt
          type: string
        first_message_mode:
          default: prompt
          enum:
            - 'off'
            - fixed
            - prompt
          title: First Message Mode
          type: string
        first_message:
          default: Hi! Thanks for calling — how can I help you today?
          title: First Message
          type: string
        first_message_prompt:
          default: Greet the caller and ask what you can help with.
          title: First Message Prompt
          type: string
      title: AgentPromptConfig
      type: object
    AgentVoiceConfig:
      properties:
        voice_id:
          default: 4501d82f5de3467ebf4d7ef095a2deee
          title: Voice Id
          type: string
        speaking_language:
          default: en
          enum:
            - en
            - ja
            - zh
            - ko
            - es
            - fr
            - de
          title: Speaking Language
          type: string
      title: AgentVoiceConfig
      type: object
    AgentConversationConfig:
      properties:
        max_duration_seconds:
          default: 1800
          title: Max Duration Seconds
          type: integer
        eagerness:
          default: balanced
          enum:
            - relaxed
            - balanced
            - eager
          title: Eagerness
          type: string
        interruptible:
          default: true
          title: Interruptible
          type: boolean
        interruption_sensitivity:
          default: balanced
          enum:
            - low
            - balanced
            - high
          title: Interruption Sensitivity
          type: string
        reengage_enabled:
          default: false
          title: Reengage Enabled
          type: boolean
        record_audio:
          default: true
          title: Record Audio
          type: boolean
        timezone:
          default: ''
          title: Timezone
          type: string
        transfer_destinations:
          default: []
          items:
            $ref: '#/components/schemas/AgentTransferDestination'
          title: Transfer Destinations
          type: array
      title: AgentConversationConfig
      type: object
    PublicAgentToolsConfig:
      properties:
        enabled:
          default: true
          title: Enabled
          type: boolean
        tool_ids:
          items:
            type: string
          title: Tool Ids
          type: array
        system_tools:
          $ref: '#/components/schemas/AgentSystemToolsConfig'
      title: PublicAgentToolsConfig
      type: object
    PublicAgentWebhooksConfig:
      properties:
        post_call:
          items:
            $ref: '#/components/schemas/PublicPostCallWebhook'
          title: Post Call
          type: array
      title: PublicAgentWebhooksConfig
      type: object
    PublicAgentKnowledgeBaseConfig:
      properties:
        enabled:
          default: false
          title: Enabled
          type: boolean
        knowledge_source_ids:
          items:
            type: string
          title: Knowledge Source Ids
          type: array
      title: PublicAgentKnowledgeBaseConfig
      type: object
    AgentAnalysisConfig:
      properties:
        summary:
          $ref: '#/components/schemas/AgentAnalysisSummaryConfig'
        data_fields:
          items:
            $ref: '#/components/schemas/AgentAnalysisDataField'
          maxItems: 20
          title: Data Fields
          type: array
        criteria:
          items:
            $ref: '#/components/schemas/AgentAnalysisCriterion'
          maxItems: 10
          title: Criteria
          type: array
      title: AgentAnalysisConfig
      type: object
    AgentTransferDestination:
      properties:
        type:
          const: phone
          default: phone
          title: Type
          type: string
        label:
          default: ''
          title: Label
          type: string
        phone_number:
          title: Phone Number
          type: string
        mode:
          default: cold
          enum:
            - cold
            - warm
          title: Mode
          type: string
        warm_connect:
          default: confirm
          enum:
            - confirm
            - direct
          title: Warm Connect
          type: string
      required:
        - phone_number
      title: AgentTransferDestination
      type: object
    AgentSystemToolsConfig:
      properties:
        language_detection:
          default: false
          title: Language Detection
          type: boolean
        hang_up_call:
          default: false
          title: Hang Up Call
          type: boolean
      title: AgentSystemToolsConfig
      type: object
    PublicPostCallWebhook:
      properties:
        url:
          title: Url
          type: string
        has_secret:
          default: false
          description: >-
            Whether a signing secret is configured; the value itself is never
            returned.
          title: Has Secret
          type: boolean
      required:
        - url
      title: PublicPostCallWebhook
      type: object
    AgentAnalysisSummaryConfig:
      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
            - zh
            - ja
            - ko
            - es
            - fr
            - de
            - pt
            - ru
            - ar
          title: Language
          type: string
      title: AgentAnalysisSummaryConfig
      type: object
    AgentAnalysisDataField:
      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: AgentAnalysisDataField
      type: object
    AgentAnalysisCriterion:
      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: AgentAnalysisCriterion
      type: object
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````