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

# Capture a CSAT score (1-5, tool-specific)



## OpenAPI

````yaml /openapi-v1.json post /v1/csat
openapi: 3.0.0
info:
  title: Woku Client API v1
  description: >-
    Public REST API for programmatic management of woku Voice-of-Customer
    programs: trackers, VoC instruments (NPS, woku, CES, CSAT), action plans,
    support tickets, multi-channel sending and response capture. Requests are
    company-scoped by the API key; never send a company id.
  version: 1.0.0
  contact:
    name: Woku
    url: https://woku.app
    email: team@woku.app
servers:
  - url: https://clientapi.woku.app
    description: Production
security: []
tags: []
paths:
  /v1/csat:
    post:
      tags:
        - v1 - csat
      summary: Capture a CSAT score (1-5, tool-specific)
      operationId: V1CsatController_createCsat
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V1CreateCsatBodyDto'
      responses:
        '201':
          description: CSAT response created
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponseDto'
        '403':
          description: Tool does not belong to caller
      security:
        - bearer: []
components:
  schemas:
    V1CreateCsatBodyDto:
      type: object
      properties:
        score:
          type: number
          description: CSAT satisfaction score 1-5
          minimum: 1
          maximum: 5
          example: 4
        csatToolId:
          type: string
          description: 'CSAT tool id (always required: CSAT tools are always custom)'
          format: ObjectId
        clientEmail:
          type: string
          description: Respondent email. Omit for an anonymous capture.
          format: email
        anonymous:
          type: boolean
          description: Whether the submission is anonymous (no client email stored).
        responseChannel:
          type: string
          description: >-
            Inbound response channel. Defaults to 'api'; a value provided here
            REPLACES 'api' (user-defined channel). Stored on the response.
          example: my-crm
          maxLength: 48
        dispatchToken:
          type: string
          description: >-
            Opaque invitation dispatch token echoed from the link (?dtoken=).
            Consumed to mark the outbound invitation responded; never persisted.
          maxLength: 64
      required:
        - score
        - csatToolId
    ValidationErrorResponseDto:
      type: object
      properties:
        statusCode:
          type: number
          description: HTTP status code
          example: 400
        message:
          description: Array of validation error messages
          example:
            - email must be a valid email
            - password must be at least 8 characters
          type: array
          items:
            type: string
        error:
          type: string
          description: Error type
          example: Bad Request
      required:
        - statusCode
        - message
        - error
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: Company secret API key.

````