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

# Schedule send

> **Plans:** `Free` · `Developer` · `Enterprise`

Schedules an outbound email for a future time. Uses draft-style fields (`body`, `scheduled_send_at`) rather than send-email `html`/`text`. Free validates the 10-recipient request cap now but consumes rolling recipient quota at delivery; a rolling-limit failure restores the item to scheduled/deferred rather than sent. Returns **201**.

**API credits:** 5 (email_send).



## OpenAPI

````yaml /openapi/openapi.json post /api/v1/mailboxes/{mailboxId}/scheduled-sends
openapi: 3.1.0
info:
  title: Mermail API
  version: 1.0.0
  description: >
    Programmatic Mermail API for scripts, agents, and integrations.


    ## Authentication


    Authorize with an API key from **Settings → API Keys**:


    ```

    x-api-key: sk-proj-…

    ```


    ## Plans


    Each endpoint page shows plan badges (**Public**, **All plans**, or
    **Developer+**). Free can call the core catalog; Developer-gated paths need
    Developer or Enterprise.


    ## Try it


    Every endpoint page includes an interactive playground. Click **Try it**,
    paste your API key into the `x-api-key` field, fill path/query/body fields
    (prefilled from examples), and send a live request to
    `https://console.mermail.app`. You can also copy the generated cURL /
    JavaScript / Python snippet.


    ## Credits


    Credits are workspace API-usage units, not currency amounts.


    | Class | Cost |

    | --- | ---: |

    | read | 1 |

    | write | 2 |

    | email_send | 5 |

    | provision | 10 |

    | ai_light | 15 |

    | ai_heavy | 25 |
  contact:
    name: Mermail
    email: contact@mermail.app
    url: https://mermail.app
servers:
  - url: https://console.mermail.app
    description: Production
security:
  - apiKeyAuth: []
tags:
  - name: Public
    description: No authentication
  - name: Usage
    description: Credits and email quotas
  - name: Workspaces
    description: Workspaces, members, storage
  - name: Domains
    description: Custom email domains (Developer+)
  - name: Mailboxes
    description: Agent inboxes
  - name: Emails
    description: Send, list, search, folders
  - name: Webhooks
    description: Email event subscriptions and delivery history
  - name: AI agent
    description: Mailbox agent chat
  - name: Task triage
    description: Task triagers (all plans)
  - name: RAG
    description: Knowledge documents and recall
  - name: Integrations
    description: Composio, Telegram, push
  - name: Affiliate
    description: Affiliate program
paths:
  /api/v1/mailboxes/{mailboxId}/scheduled-sends:
    post:
      tags:
        - Emails
      summary: Schedule send
      description: >-
        **Plans:** `Free` · `Developer` · `Enterprise`


        Schedules an outbound email for a future time. Uses draft-style fields
        (`body`, `scheduled_send_at`) rather than send-email `html`/`text`. Free
        validates the 10-recipient request cap now but consumes rolling
        recipient quota at delivery; a rolling-limit failure restores the item
        to scheduled/deferred rather than sent. Returns **201**.


        **API credits:** 5 (email_send).
      parameters:
        - name: mailboxId
          in: path
          required: true
          description: Mailbox public_id (UUID), hosted alias id, or current email
          schema:
            type: string
          example: aaaaaaaa-bbbb-4ccc-8ddd-eeeeeeeeeeee
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - body
                - scheduled_send_at
              properties:
                to:
                  oneOf:
                    - type: string
                    - type: array
                      items:
                        type: string
                  example:
                    - hello@example.com
                cc:
                  oneOf:
                    - type: string
                    - type: array
                      items:
                        type: string
                bcc:
                  oneOf:
                    - type: string
                    - type: array
                      items:
                        type: string
                subject:
                  type: string
                  example: Later
                body:
                  type: string
                  example: <p>See you</p>
                in_reply_to:
                  type: string
                thread_id:
                  type: string
                draft_id:
                  type: string
                attachments:
                  type: array
                  maxItems: 20
                  description: >-
                    Base64 file bytes or an existing attachment_id from the same
                    authorized mailbox. Omit to preserve attachments from
                    source_draft_id (send) or draft_id (save/schedule); []
                    clears; an array replaces the complete set. Storage limits:
                    20 files, 10 MiB each, 25 MiB decoded total. Encoded message
                    limits include overhead: about 5 MiB for hosted addresses
                    and about 40 MB for custom-domain addresses. Local paths and
                    URLs are not accepted.
                  items:
                    oneOf:
                      - type: object
                        required:
                          - content
                          - filename
                          - type
                          - disposition
                        properties:
                          content:
                            type: string
                            contentEncoding: base64
                            description: >-
                              Base64 encoded file bytes, without a data URL
                              prefix.
                          filename:
                            type: string
                            minLength: 1
                            maxLength: 255
                          type:
                            type: string
                            description: MIME type, e.g. application/pdf.
                          disposition:
                            type: string
                            enum:
                              - attachment
                              - inline
                          contentId:
                            type: string
                            description: >-
                              Unique bare Content-ID required for inline
                              PNG/JPEG/GIF/WebP; use matching HTML
                              src=cid:contentId.
                          encryption:
                            type: string
                            enum:
                              - worker-aes-v1
                        additionalProperties: false
                      - type: object
                        required:
                          - attachment_id
                        properties:
                          attachment_id:
                            type: string
                            description: >-
                              Authorized same-mailbox attachment ID; metadata
                              and bytes are resolved server-side.
                        additionalProperties: false
                scheduled_send_at:
                  type: string
                  format: date-time
                  description: Must be in the future (ISO-8601)
                  example: '2026-07-16T15:00:00.000Z'
                from:
                  type: string
                  format: email
                  maxLength: 254
                  description: >-
                    Optional sender: current mailbox address or valid unblocked
                    hosted plus alias. Omit to retain an existing draft sender,
                    use a verified reply alias, or default to the primary
                    address for a new message. Checked again before sending.
            example:
              to:
                - hello@example.com
              subject: Later
              body: <p>See you</p>
              scheduled_send_at: '2026-07-16T15:00:00.000Z'
      responses:
        '201':
          description: Success
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              example:
                id: dft_sched01
                draft_id: dft_sched01
                status: scheduled
                subject: Later
                recipient: hello@example.com
                scheduled_send_at: '2026-07-16T15:00:00.000Z'
        '400':
          description: >-
            Validation error, including email_send_recipient_limit_exceeded when
            a Free external send has more than 10 total To+Cc+Bcc recipients
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              examples:
                recipientLimit:
                  value:
                    error: email_send_recipient_limit_exceeded
                    code: email_send_recipient_limit_exceeded
                validation:
                  value:
                    error: Invalid request
        '401':
          description: Missing, invalid, expired, or revoked API key / token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Unauthorized
        '402':
          description: API credits exhausted for this workspace period
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Invalid request
        '403':
          description: Forbidden — plan gate, wrong workspace, or missing role
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: Forbidden
        '429':
          description: >-
            Workspace RPM or external recipient window exceeded.
            email_send_rate_limit_exceeded is not safe for automatic write
            replay; Free windows are 10 recipient units/minute, 50/hour, and
            200/day.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: email_send_rate_limit_exceeded
                code: email_send_rate_limit_exceeded
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds until the rate limit window resets
        '503':
          description: >-
            email_send_rate_limit_unavailable — external delivery fails closed
            because recipient capacity cannot be verified
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                error: email_send_rate_limit_unavailable
                code: email_send_rate_limit_unavailable
      security:
        - apiKeyAuth: []
components:
  schemas:
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          example: Unauthorized
        code:
          type: string
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key (`sk-proj-…`) from Settings → API Keys. Required for sold API
        calls outside the Mermail console.

````

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