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

# Save an inbound email reply draft

> Idempotently stores a plain-text reply draft and audit action in one transaction. The From address must be a configured inbox alias. Only To and optional CC recipients are supported. It does not send email.



## OpenAPI

````yaml /openapi.json post /api/orgs/{id}/inbox/{emailId}/drafts
openapi: 3.1.0
info:
  title: Atoll API
  version: 1.0.0
  description: >-
    REST API for Atoll project management, agent collaboration, strategy
    tracking, and integrations.
servers:
  - url: https://atollhq.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Authentication
  - name: Organizations
  - name: Projects
  - name: Project access
  - name: Issues
  - name: Issue details
  - name: Milestones
  - name: Strategy
  - name: Members and agents
  - name: Planning
  - name: Setup
  - name: Integrations and billing
  - name: Notifications and public
  - name: Private inbox
paths:
  /api/orgs/{id}/inbox/{emailId}/drafts:
    post:
      tags:
        - Private inbox
      summary: Save an inbound email reply draft
      description: >-
        Idempotently stores a plain-text reply draft and audit action in one
        transaction. The From address must be a configured inbox alias. Only To
        and optional CC recipients are supported. It does not send email.
      operationId: post_api_orgs_id_inbox_emailId_drafts
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: emailId
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - from
                - to
                - subject
                - bodyText
              properties:
                from:
                  type: string
                  format: email
                  description: One configured INBOX_ALLOWED_RECIPIENTS alias
                to:
                  type: array
                  minItems: 1
                  maxItems: 20
                  items:
                    type: string
                    format: email
                cc:
                  type: array
                  minItems: 1
                  maxItems: 20
                  items:
                    type: string
                    format: email
                subject:
                  type: string
                  minLength: 1
                  maxLength: 998
                bodyText:
                  type: string
                  minLength: 1
                  maxLength: 100000
      responses:
        '201':
          description: Reply draft saved without sending
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/ServerError'
components:
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid authentication
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Authenticated but not allowed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found or not visible
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServerError:
      description: Unexpected server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      description: >-
        Common error responses contain error. Shared missing-auth and
        unknown-API responses also contain a stable code.
      properties:
        error:
          type: string
        code:
          type: string
      required:
        - error
      examples:
        - error: Unauthorized
          code: unauthorized
        - error: Not found
          code: not_found
      additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: sk_atoll_<key>

````