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

# Test payload mapping without creating or sending an evaluation

> Uses the saved moment. Does not verify sender signatures or change enrollments.



## OpenAPI

````yaml /openapi-v1.json post /v1/journeys/{id}/moments/{stageKey}/preview
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/journeys/{id}/moments/{stageKey}/preview:
    post:
      tags:
        - v1 - journeys
      summary: Test payload mapping without creating or sending an evaluation
      description: >-
        Uses the saved moment. Does not verify sender signatures or change
        enrollments.
      operationId: V1JourneysController_previewMoment
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
        - name: stageKey
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V1PreviewJourneyMomentDto'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V1JourneyPreviewResponseDto'
        '400':
          description: Invalid identifier or journey configuration
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponseDto'
        '403':
          description: Invalid API key, company access or entitlement
        '404':
          description: Journey, moment or evaluation not found
      security:
        - bearer: []
components:
  schemas:
    V1PreviewJourneyMomentDto:
      type: object
      properties:
        payload:
          type: object
          additionalProperties: true
          description: >-
            Sample payload. Does not verify signatures, enroll clients or send
            invitations.
      required:
        - payload
    V1JourneyPreviewResponseDto:
      type: object
      properties:
        matches:
          type: boolean
        subjectKey:
          type: string
        contact:
          $ref: '#/components/schemas/V1JourneyContactDto'
        preview:
          description: Present for matching dynamic webhook content.
          allOf:
            - $ref: '#/components/schemas/V1JourneyPreviewContentDto'
      required:
        - matches
        - subjectKey
        - contact
    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
    V1JourneyContactDto:
      type: object
      properties:
        email:
          type: string
          format: email
          example: cliente@example.com
        phone:
          type: string
          description: Phone with country code, digits only
          example: '56911111111'
    V1JourneyPreviewContentDto:
      type: object
      properties:
        title:
          type: string
        imageUrl:
          type: string
        trackers:
          type: array
          items:
            $ref: '#/components/schemas/V1JourneyTrackerDto'
        question:
          $ref: '#/components/schemas/V1JourneyLocaleDto'
        folder:
          $ref: '#/components/schemas/V1JourneyPreviewFolderDto'
        clientFields:
          type: object
          additionalProperties:
            oneOf:
              - type: string
              - type: number
              - type: boolean
          description: Resolved additional client fields.
      required:
        - title
        - clientFields
    V1JourneyTrackerDto:
      type: object
      properties:
        name:
          type: string
          example: campaign
        value:
          type: string
          example: black-friday
      required:
        - name
        - value
    V1JourneyLocaleDto:
      type: object
      properties:
        es:
          type: string
        en:
          type: string
    V1JourneyPreviewFolderDto:
      type: object
      properties:
        secondaryKey:
          type: string
        name:
          type: string
        parentSecondaryKey:
          type: string
        parentName:
          type: string
      required:
        - secondaryKey
        - name
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: Company secret API key.

````