> ## 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 Widget Config

> Unauthenticated display configuration for the embeddable `<fish-agent>`
widget.



## OpenAPI

````yaml get /v1/agent/agents/{agent_id}/widget
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}/widget:
    get:
      tags:
        - Agents
      summary: Get Widget Config
      description: |-
        Unauthenticated display configuration for the embeddable `<fish-agent>`
        widget. Only agents published as public are reachable, and the request
        `Origin` must match the agent's allowed origins — the same gate as
        anonymous session creation. Attributes set on the embed tag override
        every field returned here.
      parameters:
        - in: path
          name: agent_id
          description: ''
          required: true
          schema:
            title: Agent Id
            type: string
          deprecated: false
        - in: header
          name: origin
          description: ''
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            default: null
            title: Origin
          deprecated: false
      responses:
        '200':
          description: Request fulfilled, document follows
          headers: {}
          content:
            application/json:
              schema:
                description: >-
                  Display config for the embeddable `<fish-agent>` widget
                  (D-CI-17).


                  Served without authentication for public agents; HTML
                  attributes on the

                  embed tag override every field. Grows alongside the Builder
                  widget tab

                  (greeting, policy switches, styles) — additions only, never
                  renames.
                properties:
                  agent_name:
                    title: Agent Name
                    type: string
                required:
                  - agent_name
                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
                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

````