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

# Create a CSAT tool definition



## OpenAPI

````yaml /openapi-v1.json post /v1/csat-tools
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-tools:
    post:
      tags:
        - v1 - csat-tools
      summary: Create a CSAT tool definition
      operationId: V1CsatToolsController_createCsatTool
      parameters:
        - name: X-Woku-Idempotency-Key
          in: header
          description: >-
            Client-generated key to make the create safe to retry. A retry with
            the same key returns the original result instead of creating again.
          required: false
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateCsatToolBodyDTO'
      responses:
        '201':
          description: CSAT tool created
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponseDto'
        '403':
          description: Invalid or missing API key
      security:
        - bearer: []
components:
  schemas:
    CreateCsatToolBodyDTO:
      type: object
      properties:
        name:
          type: string
          description: Tool name for identification.
          example: Post-Purchase CSAT
          maxLength: 140
        question:
          type: string
          description: Public CSAT question shown to respondents.
          example: How satisfied are you with your purchase?
          minLength: 3
          maxLength: 140
        subject:
          type: string
          description: Static variable filling 'how satisfied are you with [subject]?'.
          example: your purchase
          maxLength: 140
        availableLocales:
          description: Locales the tool is available in (subset of es/en).
          example:
            - es
            - en
          type: array
          items:
            type: string
        defaultLocale:
          type: string
          description: Default locale used when none is requested.
          example: es
          enum:
            - es
            - en
        localizedContent:
          type: array
          items:
            $ref: '#/components/schemas/CsatToolLocalizedContentBodyDTO'
      required:
        - name
        - question
    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
    CsatToolLocalizedContentBodyDTO:
      type: object
      properties:
        locale:
          type: string
          enum:
            - es
            - en
          example: en
        question:
          type: string
          description: Translated CSAT question for this locale.
          example: How satisfied are you with your purchase?
          minLength: 3
          maxLength: 140
        subject:
          type: string
          description: Translated subject for this locale.
          example: your purchase
          maxLength: 140
      required:
        - locale
        - question
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: Company secret API key.

````