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

# Get the chat config



## OpenAPI

````yaml /api-reference/openapi.json get /api/mcp/chat/config
openapi: 3.1.0
info:
  title: Waniwani API
  version: 1.0.0
  description: >-
    The HTTP routes the Waniwani SDK and chat widget call. Use them from any
    language. Server routes take a secret `wwk_` API key; chat routes take a
    channel's `wwp_` public key, which is meant to ship in a web page.
servers:
  - url: https://app.waniwani.ai
    description: US region
  - url: https://eu.app.waniwani.ai
    description: EU region
security: []
tags:
  - name: Server API
    description: Called from your server with a secret `wwk_` API key.
  - name: Chat API
    description: Called from a web page with a channel's `wwp_` public key.
paths:
  /api/mcp/chat/config:
    get:
      tags:
        - Chat API
      summary: Get the chat config
      operationId: listMcpChatConfig
      parameters:
        - schema:
            type: string
            format: uuid
          required: false
          name: channel
          in: query
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      channelId:
                        type:
                          - string
                          - 'null'
                        format: uuid
                      source:
                        type:
                          - string
                          - 'null'
                      welcomeMessage:
                        type:
                          - string
                          - 'null'
                      title:
                        type:
                          - string
                          - 'null'
                      placeholder:
                        type:
                          - string
                          - 'null'
                      suggestions:
                        type:
                          - array
                          - 'null'
                        items:
                          type: string
                      pageSuggestions:
                        type:
                          - array
                          - 'null'
                        items:
                          type: object
                          properties:
                            url:
                              type: string
                            prompts:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                  text:
                                    type: string
                                  tier:
                                    type: string
                                    enum:
                                      - low
                                      - medium
                                      - high
                                required:
                                  - id
                                  - text
                          required:
                            - url
                            - prompts
                      enableThreadHistory:
                        type: boolean
                      toolCallDisplay:
                        type: string
                        enum:
                          - full
                          - titles-only
                          - hidden
                      toolLabels:
                        type:
                          - object
                          - 'null'
                        additionalProperties:
                          type: string
                      linkTracking:
                        type:
                          - object
                          - 'null'
                        properties:
                          allLinks:
                            type: string
                            maxLength: 1000
                            pattern: ^\S*$
                          sameSiteLinks:
                            type: string
                            maxLength: 1000
                            pattern: ^\S*$
                        required:
                          - allLinks
                          - sameSiteLinks
                        description: >-
                          Query parameters the widget adds to a link in an
                          answer when the visitor clicks it. allLinks applies to
                          every http(s) link; sameSiteLinks replaces it when the
                          link's host equals the host of the page the widget
                          runs on, and an empty string adds nothing. A parameter
                          the link already has keeps its value. {{page_url}} is
                          replaced by the URL-encoded address of the visitor's
                          page. Null when the channel tracks no links.
                      visibility:
                        type:
                          - object
                          - 'null'
                        properties:
                          rules:
                            type: array
                            items:
                              type: object
                              properties:
                                glob:
                                  type: string
                                  minLength: 1
                                  maxLength: 500
                                action:
                                  type: string
                                  enum:
                                    - show
                                    - hide
                              required:
                                - glob
                                - action
                            maxItems: 50
                          appearRules:
                            type: array
                            items:
                              type: object
                              properties:
                                glob:
                                  type: string
                                  minLength: 1
                                  maxLength: 500
                                appearAfter:
                                  type: string
                                  minLength: 1
                                  maxLength: 500
                              required:
                                - glob
                                - appearAfter
                            maxItems: 50
                          default:
                            type: string
                            enum:
                              - show
                              - hide
                        required:
                          - rules
                          - default
                      documentUpload:
                        type: object
                        properties:
                          enabled:
                            type: boolean
                          maxBytes:
                            type: integer
                            exclusiveMinimum: 0
                          maxPdfPages:
                            type: integer
                            exclusiveMinimum: 0
                          maxFiles:
                            type: integer
                            exclusiveMinimum: 0
                          accept:
                            type: array
                            items:
                              type: string
                              enum:
                                - application/pdf
                                - image/png
                                - image/jpeg
                                - image/tiff
                                - image/bmp
                                - image/gif
                                - image/webp
                        required:
                          - enabled
                          - maxBytes
                          - maxPdfPages
                          - maxFiles
                          - accept
                      metadata:
                        type:
                          - object
                          - 'null'
                        propertyNames:
                          minLength: 1
                          maxLength: 64
                          pattern: ^[A-Za-z0-9_.-]+$
                        maxProperties: 20
                        additionalProperties:
                          type: string
                          maxLength: 500
                      sessionApi:
                        type: string
                        format: uri
                        description: >-
                          Where the widget opens a chat that talks to the agent
                          runtime directly. Absent when the org is not in that
                          cohort.
                    required:
                      - channelId
                      - source
                      - welcomeMessage
                      - title
                      - placeholder
                      - suggestions
                      - pageSuggestions
                      - enableThreadHistory
                      - toolCallDisplay
                      - toolLabels
                      - linkTracking
                      - visibility
                      - documentUpload
                      - metadata
                  error:
                    type: string
                  code:
                    type: string
                required:
                  - success
                  - message
                  - data
      security:
        - publicKeyAuth: []
components:
  securitySchemes:
    publicKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: WaniwaniPublicKey
      description: >-
        Waniwani public key passed as `Authorization: Bearer wwp_<key>`. A
        channel's public key is meant to ship in a web page.

````

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