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

# Configuração do widget

> Obtém aparência e textos do chat no site.



## OpenAPI

````yaml /ai-web-widget/api-reference/openapi-ai-web-widget.json get /public/ai-widget/{publicKey}/config
openapi: 3.0.3
info:
  title: Notifique API Chat no site (widget)
  description: >-
    API pública do **widget de chat com IA** no site do cliente. Não usa API Key
    de workspace: a segurança é feita com **chave pública do widget**,
    **domínios permitidos** e **token de sessão** assinado.


    Base: `https://api.notifique.dev/public/ai-widget`
  version: 1.0.0
servers:
  - url: https://api.notifique.dev
    description: Produção
security: []
tags:
  - name: Widget público
    description: Configuração, sessão, mensagens e OTP do embed
paths:
  /public/ai-widget/{publicKey}/config:
    get:
      tags:
        - Widget público
      summary: Configuração do widget
      description: Obtém aparência e textos do chat no site.
      operationId: ntfWidget_getConfig
      parameters:
        - name: publicKey
          in: path
          required: true
          schema:
            type: string
            minLength: 8
            maxLength: 64
          description: Chave pública do widget (`ntfw_...`).
      responses:
        '200':
          description: Configuração do widget
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WidgetConfigResponse'
        '404':
          description: Widget não encontrado
components:
  schemas:
    WidgetConfigResponse:
      type: object
      properties:
        success:
          type: boolean
        data:
          type: object
          properties:
            widgetName:
              type: string
            welcomeText:
              type: string
            suggestedQuestions:
              type: array
              items:
                type: string
            identificationMode:
              type: string
              enum:
                - ANONYMOUS
                - OPTIONAL
                - REQUIRED
            requireIdentityOtp:
              type: boolean

````