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

# Crear una reseña de texto

> Crea una nueva reseña de texto (textnote) para un woku. Incluye una calificacion con estrellas (1-5) y feedback en texto. Opcionalmente puedes asociar un correo o numero de telefono de cliente.



## OpenAPI

````yaml /openapi.es.json post /wokus/create-textnote
openapi: 3.0.3
info:
  title: Woku Client API
  description: >-
    API para integrarse con la plataforma de recoleccion de feedback de Woku.
    Esta API te permite crear wokus (herramientas de recoleccion de feedback),
    enviar reseñas y obtener reportes.


    ## Autenticacion


    Todos los endpoints requieren autenticacion mediante un token Bearer en el
    header Authorization. Puedes obtener tu API key desde el dashboard de Woku.


    ```

    Authorization: Bearer your_api_key_here

    ```


    ## Base URL


    Produccion: `https://api.woku.app`
  version: 1.0.0
  contact:
    name: Woku Support
    url: https://woku.app
    email: team@woku.app
servers:
  - url: https://clientapi.woku.app
    description: Servidor de produccion
security: []
tags:
  - name: Wokus
    description: >-
      Endpoints para crear y gestionar wokus (herramientas de recoleccion de
      feedback)
  - name: Reseñas
    description: Endpoints para enviar y obtener reseñas
  - name: Empresas
    description: Endpoints para obtener datos de la empresa
  - name: Reportes
    description: Endpoints para obtener reportes de NPS y analitica
paths:
  /wokus/create-textnote:
    post:
      tags:
        - Wokus
      summary: Crear una reseña de texto
      description: >-
        Crea una nueva reseña de texto (textnote) para un woku. Incluye una
        calificacion con estrellas (1-5) y feedback en texto. Opcionalmente
        puedes asociar un correo o numero de telefono de cliente.
      operationId: createTextnote
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateTextnoteRequest'
            examples:
              basic:
                summary: Reseña de texto basica
                value:
                  wokuId: 507f1f77bcf86cd799439011
                  qualification: 5
                  description: Excelente servicio. El personal fue muy servicial y amable.
              withClient:
                summary: Reseña con informacion del cliente
                value:
                  wokuId: 507f1f77bcf86cd799439011
                  qualification: 4
                  description: Muy buena experiencia en general. La recomendaria.
                  clientEmail: reviewer@example.com
                  clientPhone: 56988887777
              anonymous:
                summary: Reseña anonima
                value:
                  wokuId: 507f1f77bcf86cd799439011
                  qualification: 3
                  description: Experiencia promedio, nada especial.
                  anonymous: true
      responses:
        '201':
          description: Textnote creado correctamente
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TextnoteResponse'
        '400':
          description: Error de validacion
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
        '404':
          description: Woku no encontrado
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundError'
      security:
        - BearerAuth: []
components:
  schemas:
    CreateTextnoteRequest:
      type: object
      required:
        - wokuId
        - qualification
        - description
      properties:
        wokuId:
          type: string
          format: objectid
          description: MongoDB ObjectId del woku al que se agrega la resena
          example: 507f1f77bcf86cd799439011
        qualification:
          type: integer
          minimum: 1
          maximum: 5
          description: Calificacion de estrellas del 1 al 5
          example: 5
        description:
          type: string
          maxLength: 3000
          description: Contenido de texto de la resena (maximo 3000 caracteres)
          example: Excellent service! The staff was very helpful and friendly.
        clientEmail:
          type: string
          format: email
          description: Direccion de correo de quien resena
          example: reviewer@example.com
        clientPhone:
          type: integer
          description: >-
            Numero de telefono de quien resena (incluyendo el codigo de pais,
            sin espacios ni simbolos)
          example: 56988887777
        anonymous:
          type: boolean
          description: Si la resena debe ser anonima
          default: false
          example: false
    TextnoteResponse:
      type: object
      properties:
        _id:
          type: string
          format: objectid
          description: Identificador unico del textnote
          example: 507f1f77bcf86cd799439018
        wokuId:
          type: string
          format: objectid
          description: ID del woku al que pertenece el textnote
          example: 507f1f77bcf86cd799439011
        qualification:
          type: object
          properties:
            qualification:
              type: integer
              example: 5
        description:
          type: string
          description: Contenido de texto de la reseña
          example: Excellent service!
        anonymous:
          type: boolean
          example: false
        clientId:
          type: string
          format: objectid
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    ValidationError:
      type: object
      properties:
        statusCode:
          type: integer
          example: 400
        message:
          type: array
          items:
            type: string
          example:
            - description must be a string
            - fileUrl must be a valid URL
        error:
          type: string
          example: Bad Request
    NotFoundError:
      type: object
      properties:
        statusCode:
          type: integer
          example: 404
        message:
          type: string
          example: Resource not found
        error:
          type: string
          example: Not Found
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Clave de API de la empresa. Obtenla desde tu dashboard de Woku en
        Settings > API Keys.

````