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

# Criar Chat App

> Cria um Chat App. A resposta inclui `signingSecret` **só nesta chamada**. Escopo: **chat:apps:create**.



## OpenAPI

````yaml /es/chat-api/api-reference/openapi-chat.json post /v1/chat/apps
openapi: 3.0.3
info:
  title: Notifique API Chat
  description: >-
    Chat in-app: apps, usuarios, JWT, conversaciones y mensajes. Autentica con
    `Authorization: Bearer sk_live_...` (backend) o JWT del usuario. No envíes
    `x-workspace-id`.
  version: 1.0.0
servers:
  - url: https://api.notifique.dev
    description: Produção
security:
  - ntfChatBearerAuth: []
  - ntfChatApiKeyHeader: []
tags:
  - name: Chat Apps
    description: CRUD de Chat Apps e rotação do signing secret
  - name: Chat Users
    description: Usuários, JWT e agentes
  - name: Chat Conversations
    description: Conversas 1:1, grupos e membros
  - name: Chat Messages
    description: Envio, listagem e exclusão
  - name: Chat Blocks
    description: Bloqueo entre usuarios de la misma Chat App
paths:
  /v1/chat/apps:
    post:
      tags:
        - Chat Apps
      summary: Criar Chat App
      description: >-
        Cria um Chat App. A resposta inclui `signingSecret` **só nesta
        chamada**. Escopo: **chat:apps:create**.
      operationId: ntfChat_postV1ChatApps
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  example: Mi App
                allowedOrigins:
                  type: array
                  items:
                    type: string
                  example:
                    - https://app.tusitio.com
            example:
              name: Mi App
              allowedOrigins:
                - https://app.tusitio.com
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  data:
                    $ref: '#/components/schemas/NtfChat_ChatApp'
        '401':
          description: API Key ou JWT ausente/inválido.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfChat_ErrorResponse'
        '402':
          description: Workspace bloqueado ou créditos insuficientes.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfChat_ErrorResponse'
        '403':
          description: >-
            Sem escopo, origem não permitida ou JWT sem permissão
            (CHAT_CLIENT_CREATE_DISABLED).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NtfChat_ErrorResponse'
components:
  schemas:
    NtfChat_ChatApp:
      type: object
      properties:
        id:
          type: string
          example: clxxapp...
        name:
          type: string
          example: Mi App
        publicKey:
          type: string
          example: pk_live_...
        signingSecret:
          type: string
        status:
          type: string
          enum:
            - ACTIVE
            - DISABLED
          example: ACTIVE
        allowedOrigins:
          type: array
          items:
            type: string
        allowClientCreateDirect:
          type: boolean
        allowClientCreateGroup:
          type: boolean
        allowClientAddMembers:
          type: boolean
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        allowedMessageTypes:
          type: array
          items:
            type: string
            enum:
              - text
              - image
              - audio
              - file
        allowEdit:
          type: boolean
        allowDeleteForEveryone:
          type: boolean
        allowUserManageCapabilities:
          type: boolean
        defaultEnabledMessageTypes:
          type: array
          items:
            type: string
            enum:
              - text
              - image
              - audio
              - file
        defaultEditEnabled:
          type: boolean
        defaultDeleteForEveryoneEnabled:
          type: boolean
    NtfChat_ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          example: false
        error:
          type: string
        code:
          type: string
        message:
          type: string
  securitySchemes:
    ntfChatBearerAuth:
      type: http
      scheme: bearer
      description: API Key `sk_live_…` / `sk_test_…` ou JWT do usuário do chat (`eyJ…`).
    ntfChatApiKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````