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

# Escribe una afirmación curada

> Una afirmación es una declaración breve aprobada por el negocio, escrita a mano en ambos idiomas para que nunca se traduzca de forma automática. Guardarla la vuelve a indexar.



## OpenAPI

````yaml /openapi.es.json post /v1/knowledge/claims
openapi: 3.0.0
info:
  title: API para desarrolladores de wondeya
  description: >-
    La API REST pública para construir sobre wondeya: agentes, proyectos,
    páginas, conocimiento, recursos, marca, tema, uso, recuperación y chat,
    autenticada mediante una clave de API del espacio de trabajo
    (`Authorization: Bearer wdy_live_…`).
  version: 0.1.0
  contact:
    name: wondeya
    url: https://wondeya.com
    email: team@wondeya.com
  license:
    name: Proprietary
    url: https://wondeya.com/terms
servers:
  - url: https://api.wondeya.com
    description: Producción
  - url: http://localhost:8080
    description: Desarrollo
security: []
tags:
  - name: Identity
  - name: Agents
  - name: Projects
  - name: Pages
  - name: Knowledge
  - name: Assets
  - name: Brand
  - name: Usage
  - name: Chat
paths:
  /v1/knowledge/claims:
    post:
      tags:
        - Knowledge
      summary: Escribe una afirmación curada
      description: >-
        Una afirmación es una declaración breve aprobada por el negocio, escrita
        a mano en ambos idiomas para que nunca se traduzca de forma automática.
        Guardarla la vuelve a indexar.
      operationId: PublicKnowledgeController_createClaim_v1
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpsertKnowledgeClaimDto'
      responses:
        '201':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicKnowledgeSourceDto'
        '402':
          description: '`wondeya.billing.limit_reached`: se alcanzó el tope de documentos'
      security:
        - api-key: []
components:
  schemas:
    UpsertKnowledgeClaimDto:
      type: object
      properties:
        title:
          type: string
          minLength: 1
          maxLength: 120
        claim:
          $ref: '#/components/schemas/ClaimTextDto'
        topics:
          maxItems: 12
          description: >-
            Etiquetas de tema en minúsculas. Una lista vacía hace universal a la
            fuente.
          type: array
          items:
            type: array
        agentId:
          type: object
          nullable: true
          description: >-
            Al crear: el agente, o null/ausente para el pool del espacio de
            trabajo. Al editar: ausente lo deja donde está; null lo mueve al
            pool; un id lo mueve allí.
      required:
        - title
        - claim
    PublicKnowledgeSourceDto:
      type: object
      properties:
        id:
          type: string
        agentId:
          type: object
          nullable: true
          description: null = el pool del espacio de trabajo.
        kind:
          type: string
          description: '`upload`, `url` o `claim`.'
        title:
          type: string
        status:
          type: string
          description: '`pending`, `ready`, `failed`, …'
        error:
          type: string
          description: Un código de error legible por máquina.
        lang:
          type: string
          description: El idioma canónico del corpus de los fragmentos.
        sourceLang:
          type: string
        translated:
          type: boolean
        topics:
          type: array
          items:
            type: string
        fileName:
          type: string
        contentType:
          type: string
        byteSize:
          type: number
        url:
          type: string
        resolvedUrl:
          type: string
        lastFetchedAt:
          type: string
          format: date-time
        syncTtlMinutes:
          type: number
        nextSyncAt:
          type: string
          format: date-time
        claim:
          $ref: '#/components/schemas/PublicKnowledgeClaimDto'
        chunkCount:
          type: number
        tokenCount:
          type: number
        summary:
          type: string
          description: >-
            La ficha de índice: una línea en inglés que nombra lo que esto
            cubre.
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      required:
        - id
        - agentId
        - kind
        - title
        - status
        - lang
        - translated
        - topics
        - chunkCount
        - tokenCount
        - summary
        - createdAt
        - updatedAt
    ClaimTextDto:
      type: object
      properties:
        es:
          type: string
          maxLength: 2000
        en:
          type: string
          maxLength: 2000
      required:
        - es
        - en
    PublicKnowledgeClaimDto:
      type: object
      properties:
        es:
          type: string
        en:
          type: string
      required:
        - es
        - en
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: opaque
      type: http
      description: >-
        Una clave de API del espacio de trabajo: wdy_live_… / wdy_test_…. Se
        crea en POST /workspaces/{tenantId}/keys y se muestra exactamente una
        vez.

````

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