> ## 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 voice review

> Creates a new voice review (voicemail) for a woku with form data. Requires an audio file upload along with a star rating. The audio will be automatically converted to MP4 format and transcribed.



## OpenAPI

````yaml /openapi.json post /wokus/create-voicemail
openapi: 3.0.3
info:
  title: Woku Client API
  description: >-
    API for integrating with Woku's feedback collection platform. This API
    allows you to create wokus (feedback collection tools), submit reviews, and
    retrieve reports.


    ## Authentication


    All endpoints require authentication using a Bearer token in the
    Authorization header. You can obtain your API key from the Woku dashboard.


    ```

    Authorization: Bearer your_api_key_here

    ```


    ## Base URL


    Production: `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: Production server
security: []
tags:
  - name: Wokus
    description: Endpoints for creating and managing wokus (feedback collection tools)
  - name: Reviews
    description: Endpoints for submitting and retrieving reviews
  - name: Companies
    description: Endpoints for retrieving company data
  - name: Reports
    description: Endpoints for retrieving NPS and analytics reports
paths:
  /wokus/create-voicemail:
    post:
      tags:
        - Wokus
      summary: Create a voice review
      description: >-
        Creates a new voice review (voicemail) for a woku with form data.
        Requires an audio file upload along with a star rating. The audio will
        be automatically converted to MP4 format and transcribed.
      operationId: createVoicemail
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/CreateVoicemailRequest'
      responses:
        '201':
          description: Voicemail created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VoicemailResponse'
        '400':
          description: Validation error or missing audio file
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationError'
        '404':
          description: Woku not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/NotFoundError'
      security:
        - BearerAuth: []
components:
  schemas:
    CreateVoicemailRequest:
      type: object
      required:
        - file
        - wokuId
        - qualification
      properties:
        file:
          type: string
          format: binary
          description: >-
            Audio file for the voicemail (MP3, WAV, M4A, WebM, etc.). Will be
            automatically converted to MP4.
        wokuId:
          type: string
          format: objectid
          description: MongoDB ObjectId of the woku to add the review to
          example: 507f1f77bcf86cd799439011
        qualification:
          type: string
          enum:
            - '1'
            - '2'
            - '3'
            - '4'
            - '5'
          description: Star rating from 1 to 5 (as string for form-data)
          example: '5'
        clientEmail:
          type: string
          format: email
          description: Email address of the reviewer
          example: reviewer@example.com
        clientPhone:
          type: string
          description: Phone number of the reviewer
          example: '56912345678'
        anonymous:
          type: string
          enum:
            - 'true'
            - 'false'
          description: Whether the review should be anonymous (as string for form-data)
          example: 'false'
    VoicemailResponse:
      type: object
      properties:
        _id:
          type: string
          format: objectid
          description: Unique identifier of the voicemail
          example: 507f1f77bcf86cd799439019
        wokuId:
          type: string
          format: objectid
          description: Woku ID the voicemail belongs to
          example: 507f1f77bcf86cd799439011
        qualification:
          type: object
          properties:
            qualification:
              type: integer
              example: 4
        file:
          type: object
          properties:
            filename:
              type: string
              example: voicemail.mp4
            url:
              type: string
              format: uri
        transcription:
          type: string
          description: AI-generated transcription
        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: >-
        Company API key. Obtain this from your Woku dashboard under Settings >
        API Keys.

````