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

# Review a Kai-written email

> Approve (optionally with an edited subject and body) or reject one Kai-written email that
waits for review. An approved email is sent at its send time through the email's look.



## OpenAPI

````yaml https://api.gleap.io/api-docs.json post /engagement/emails/{engagementEmailId}/kai/review/{actionId}
openapi: 3.0.0
info:
  title: gleap-server
  version: 14.0.0
  contact: {}
servers:
  - url: https://api.gleap.io/v3
security: []
paths:
  /engagement/emails/{engagementEmailId}/kai/review/{actionId}:
    post:
      tags:
        - Engagement Email
      summary: Review a Kai-written email
      description: >-
        Approve (optionally with an edited subject and body) or reject one
        Kai-written email that

        waits for review. An approved email is sent at its send time through the
        email's look.
      operationId: ReviewKaiEmail
      parameters:
        - in: path
          name: engagementEmailId
          required: true
          schema:
            type: string
        - in: path
          name: actionId
          required: true
          schema:
            type: string
        - in: header
          name: project
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KaiReviewDecisionBody'
      responses:
        '200':
          description: Ok
          content:
            application/json:
              schema: {}
      security:
        - jwt: []
components:
  schemas:
    KaiReviewDecisionBody:
      properties:
        decision:
          type: string
          enum:
            - approve
            - reject
        subject:
          type: string
          description: Edited subject (approve only).
        content:
          description: >-
            Edited TipTap JSON document (approve only). Kept as a style example
            for later emails.
      required:
        - decision
      type: object
      additionalProperties: false
  securitySchemes:
    jwt:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.