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

# Send batch

> Send up to 100 emails without attachments. Reuse the same idempotency key and payload for retries. Partial failures need investigation before any new send.

Required permission: `emails:send`.



## OpenAPI

````yaml /openapi.json post /emails/batch
openapi: 3.1.0
info:
  title: Moonemail API
  version: 0.1.0
  description: >-
    Generated request, response and authorization contract. Covers authenticated
    product endpoints, not public discovery, dashboard assets or Stripe inbound
    webhooks. Go handlers enforce state-dependent and cross-field business
    validation.
servers:
  - url: https://api.moonemail.co
security: []
paths:
  /emails/batch:
    post:
      tags:
        - Emails
      summary: Send batch
      description: >-
        Send up to 100 emails without attachments. Reuse the same idempotency
        key and payload for retries. Partial failures need investigation before
        any new send.


        Required permission: `emails:send`.
      operationId: send_batch
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          description: >-
            Optional in REST; mandatory for the MCP sending tool. Reuse the same
            key and payload for retries.
          schema:
            type: string
            minLength: 1
            maxLength: 256
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: array
              items:
                type: object
                properties:
                  from:
                    type: string
                    minLength: 3
                    maxLength: 320
                  to:
                    anyOf:
                      - type: string
                        minLength: 3
                        maxLength: 320
                      - type: array
                        items:
                          type: string
                          minLength: 3
                          maxLength: 320
                  subject:
                    type: string
                    minLength: 1
                    maxLength: 998
                  bcc:
                    anyOf:
                      - type: string
                        minLength: 3
                        maxLength: 320
                      - type: array
                        items:
                          type: string
                          minLength: 3
                          maxLength: 320
                  cc:
                    anyOf:
                      - type: string
                        minLength: 3
                        maxLength: 320
                      - type: array
                        items:
                          type: string
                          minLength: 3
                          maxLength: 320
                  reply_to:
                    anyOf:
                      - type: string
                        minLength: 3
                        maxLength: 320
                      - type: array
                        items:
                          type: string
                          minLength: 3
                          maxLength: 320
                  html:
                    type: string
                    maxLength: 10485760
                  text:
                    type: string
                    maxLength: 10485760
                  headers:
                    type: object
                    additionalProperties:
                      type: string
                      maxLength: 998
                  attachments:
                    type: array
                    items:
                      type: object
                      properties:
                        filename:
                          type: string
                          maxLength: 255
                        content:
                          type: string
                        path:
                          type: string
                          format: uri
                          pattern: ^https:\/\/
                        content_type:
                          type: string
                          maxLength: 255
                        content_id:
                          type: string
                          maxLength: 255
                      additionalProperties: false
                    maxItems: 50
                  tags:
                    type: array
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                          minLength: 1
                          maxLength: 256
                          pattern: ^[A-Za-z0-9_-]+$
                        value:
                          type: string
                          minLength: 1
                          maxLength: 256
                          pattern: ^[A-Za-z0-9_-]+$
                      required:
                        - name
                        - value
                      additionalProperties: false
                    maxItems: 50
                  scheduled_at:
                    type: string
                    maxLength: 64
                required:
                  - from
                  - to
                  - subject
                additionalProperties: false
              minItems: 1
              maxItems: 100
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                      required:
                        - id
                      additionalProperties: true
                required:
                  - data
                additionalProperties: true
        default:
          description: API error
          content:
            application/json:
              schema:
                type: object
                required:
                  - statusCode
                  - name
                  - message
                properties:
                  statusCode:
                    type: integer
                  name:
                    type: string
                  message:
                    type: string
      security:
        - bearerKey: []
components:
  securitySchemes:
    bearerKey:
      type: http
      scheme: bearer
      description: Moonemail API key; x-required-scope applies.

````

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