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

# Send the CSAT survey by email or WhatsApp

> Dispatches the CSAT survey for the given `csatToolId` to a list of recipients. The response reports per-recipient acceptance: quarantined respondents and recipients blocked by WhatsApp credits or notification policy are listed in `rejected` instead of failing the request. WhatsApp sends consume one WhatsApp credit per recipient.



## OpenAPI

````yaml /openapi-v1.json post /v1/csat/invitations
openapi: 3.0.3
info:
  title: Woku Client API v1
  description: >-
    Public Woku Client API. Switch the version selector at the top to view the
    v0 reference.


    This spec covers:

    - **Wokus** — create wokus, fetch review data, submit text/voice reviews,
    share by email.

    - **Companies** — `GET /companies/me` returns the caller company.

    - **Reports** — company-wide and per-tool NPS reports.

    - **External Trackers** — tag your Wokus with identifiers from third-party
    systems (CRM transaction id, ERP order id, etc.) and look them up later.


    ## Authentication


    All endpoints require a Bearer token in the `Authorization` header. Obtain
    your company API key from the Woku dashboard.


    ```

    Authorization: Bearer your_api_key_here

    ```


    ## Base URL


    Production: `https://clientapi.woku.app`


    ## Model (External Trackers)


    - **Tracker definition** (`ExternalTracker`): a per-company catalog entry
    like `{ name: 'trr', system: 'crm interno', description: '...' }`. Defined
    by an admin in the Woku dashboard.

    - **Tracker value** (`WokuExternalTrackerValue`): a string value bound to a
    (Woku, Tracker) pair. Multiple Wokus may share the same value.
  version: 1.0.0
  contact:
    name: Woku Support
    url: https://woku.app
    email: team@woku.app
servers:
  - url: https://clientapi.woku.app
    description: Production server
security: []
tags:
  - name: Wokus
    description: >-
      Create wokus, fetch review data, submit text and voice reviews, share
      review links by email.
  - name: Companies
    description: Caller-company endpoint.
  - name: Reports
    description: NPS reports for the caller company and individual NPS tools.
  - name: NPS
    description: >-
      Capture NPS scores (company-level or per NPS tool) and fetch NPS tool
      definitions.
  - name: CSAT
    description: >-
      Capture CSAT (1-5 satisfaction) scores company-level or per CSAT tool,
      fetch tool definitions and responses, and submit text and voice feedback.
  - name: CES
    description: >-
      Capture CES (effort) scores company-level or per CES tool, fetch tool
      definitions and responses, and submit text and voice feedback.
  - name: External Trackers
    description: >-
      Tag Wokus with identifiers from external systems and look them up by name
      + value.
  - name: Quarantines
    description: >-
      Check whether a respondent is currently quarantined before prompting for
      feedback.
  - name: Invitations
    description: >-
      Survey distribution: send NPS surveys, forms and woku review invitations
      by email or WhatsApp.
  - name: Forms
    description: Fetch form definitions and submit responses from your own UI.
  - name: Flows
    description: Render flow journeys (ordered wokus with an optional NPS) in your own app.
  - name: Captures
    description: Mobile SDK capture ingestion
paths:
  /v1/csat/invitations:
    post:
      tags:
        - Invitations
      summary: Send the CSAT survey by email or WhatsApp
      description: >-
        Dispatches the CSAT survey for the given `csatToolId` to a list of
        recipients. The response reports per-recipient acceptance: quarantined
        respondents and recipients blocked by WhatsApp credits or notification
        policy are listed in `rejected` instead of failing the request. WhatsApp
        sends consume one WhatsApp credit per recipient.
      operationId: v1SendCsatInvitations
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V1CsatInvitationsRequest'
      responses:
        '202':
          description: Per-recipient dispatch summary. Sends are asynchronous.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1InvitationsResult'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
        '403':
          description: >-
            Invalid or missing API key, or the CSAT tool does not belong to the
            caller company
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenError'
      security:
        - BearerAuth: []
components:
  schemas:
    V1CsatInvitationsRequest:
      allOf:
        - $ref: '#/components/schemas/V1InvitationsRequest'
        - type: object
          required:
            - csatToolId
          properties:
            csatToolId:
              type: string
              description: >-
                CSAT tool to survey for (always required: CSAT is always
                custom).
    V1InvitationsResult:
      type: object
      properties:
        channel:
          type: string
          enum:
            - email
            - whatsapp
        accepted:
          type: array
          items:
            type: string
          description: >-
            Recipients whose invitation was dispatched (or queued). Normalized:
            emails lowercased, phones digits only.
        rejected:
          type: array
          items:
            type: object
            properties:
              recipient:
                type: string
              reason:
                type: string
                enum:
                  - invalid_recipient
                  - quarantined
                  - insufficient_credits_or_blocked
                  - send_failed
          description: Recipients whose invitation was not dispatched, with the reason.
    ValidationError:
      type: object
      properties:
        statusCode:
          type: integer
          example: 400
        message:
          oneOf:
            - type: string
            - type: array
              items:
                type: string
        error:
          type: string
          example: Bad Request
    ForbiddenError:
      type: object
      properties:
        statusCode:
          type: integer
          example: 403
        message:
          type: string
          example: Authentication required
        error:
          type: string
          example: Forbidden
    V1InvitationsRequest:
      type: object
      required:
        - channel
        - recipients
      properties:
        channel:
          type: string
          enum:
            - email
            - whatsapp
          description: Delivery channel for the invitations.
        recipients:
          type: array
          minItems: 1
          maxItems: 100
          items:
            type: string
          description: >-
            Email addresses (email channel) or phone numbers with country code,
            digits only, e.g. 56912345678 (whatsapp channel).
        language:
          type: string
          enum:
            - es
            - en
          description: Language of the invitation template. Defaults to es.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Company API key. Obtain this from your Woku dashboard under Settings >
        API Keys. The same key used for the v0 endpoints.

````