> ## Documentation Index
> Fetch the complete documentation index at: https://docs.masivo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Create review

> Submit a review. Answers must be keyed by field name. Creates a REVIEW event and a reviews row. Rolls back the event if the insert fails.



## OpenAPI

````yaml POST /review-forms/{id}/reviews
openapi: 3.0.1
info:
  title: Masivo's REST API
  description: Learn how to use Masivo's REST API
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://app.masivo.ai/api/storefront/v1
security:
  - bearerAuth: []
paths:
  /review-forms/{id}/reviews:
    post:
      description: >-
        Submit a review. Answers must be keyed by field name. Creates a REVIEW
        event and a reviews row. Rolls back the event if the insert fails.
      parameters:
        - in: path
          name: id
          description: The form unique identifier
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReviewInsert'
            example: {}
      responses:
        '201':
          description: Review created
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Review'
        '400':
          description: Answer validation failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  details:
                    type: string
                    example: Field score is required
        '404':
          description: Form not found or inactive
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Invalid request body
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ReviewInsert:
      type: object
      required:
        - source
        - answers
      properties:
        customer_id:
          type: string
          nullable: true
          description: Omit for anonymous responses
        source:
          type: string
          description: Origin of the submission (for example app, web, kiosk)
          example: app
        platform:
          type: string
          nullable: true
          example: ios
        brand_id:
          type: string
          nullable: true
        store_id:
          type: string
          nullable: true
        channel_id:
          type: string
          nullable: true
        answers:
          $ref: '#/components/schemas/FormAnswers'
        respondent:
          type: object
          additionalProperties: true
          example:
            name: Jane Doe
        metadata:
          type: object
          additionalProperties: true
          example:
            trip_id: trip_1
    Review:
      type: object
      properties:
        id:
          type: string
          format: uuid
        account_id:
          type: string
          format: uuid
        review_form_id:
          type: string
          format: uuid
        journey_id:
          type: string
          format: uuid
          nullable: true
        event_id:
          type: string
          format: uuid
          nullable: true
        customer_id:
          type: string
          nullable: true
        source:
          type: string
        platform:
          type: string
          nullable: true
        brand_id:
          type: string
          nullable: true
        store_id:
          type: string
          nullable: true
        channel_id:
          type: string
          nullable: true
        answers:
          $ref: '#/components/schemas/FormAnswers'
        respondent:
          type: object
          additionalProperties: true
        metadata:
          type: object
          additionalProperties: true
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Error:
      required:
        - error
        - details
      type: object
      properties:
        error:
          type: string
        details:
          type: string
    FormAnswers:
      type: object
      description: >-
        Answers keyed by field name. SCORE: number. TEXT: string. SELECT: string
        option value. MULTI_SELECT: array of option values.
      additionalProperties: true
      example:
        score: 4
        reason:
          - wait_time
        comment: Good follow-up
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````