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

# Send emails in batch

> Queues up to N emails (plan-dependent) in a single request. All emails are validated
before any are queued — if any check fails the entire request is rejected.
Returns an array of `{ id, status }` per email in the same order as the input.

**Batch size limits by plan:**
| Plan | Max emails per batch |
|------|---------------------|
| Launch | 50 |
| Starter | 100 |
| Growth | 500 |
| Scale | 1,000 |




## OpenAPI

````yaml /openapi.yaml post /api/v1/emails/batch
openapi: 3.0.3
info:
  title: Torpedo API
  version: '1.0'
  description: |
    Torpedo is a transactional email API built for developers.
    Send emails from your own verified domain with a single HTTP call.
  contact:
    email: support@torpedo.co.mz
  termsOfService: https://torpedo.co.mz/terms
servers:
  - url: https://api.torpedo.co.mz
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /api/v1/emails/batch:
    post:
      tags:
        - Emails
      summary: Send emails in batch
      description: >
        Queues up to N emails (plan-dependent) in a single request. All emails
        are validated

        before any are queued — if any check fails the entire request is
        rejected.

        Returns an array of `{ id, status }` per email in the same order as the
        input.


        **Batch size limits by plan:**

        | Plan | Max emails per batch |

        |------|---------------------|

        | Launch | 50 |

        | Starter | 100 |

        | Growth | 500 |

        | Scale | 1,000 |
      operationId: sendEmailBatch
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - emails
              properties:
                emails:
                  type: array
                  minItems: 1
                  maxItems: 1000
                  items:
                    type: object
                    required:
                      - from
                      - to
                      - subject
                    description: >-
                      Provide at least one of `html` or `text`. If `html` is
                      provided without `text`, Torpedo generates a plain-text
                      version.
                    properties:
                      from:
                        type: string
                        description: Sender address. Must use a verified domain.
                        example: Acme <hello@myapp.com>
                      to:
                        type: string
                        format: email
                        example: user@example.com
                      subject:
                        type: string
                        example: Welcome to Acme
                      html:
                        type: string
                        description: HTML body of the email
                        example: <h1>Welcome!</h1>
                      text:
                        type: string
                        description: >-
                          Optional plain-text body. If omitted, Torpedo
                          generates it from `html`.
                        example: Welcome!
                      replyTo:
                        type: string
                        format: email
                        description: Optional reply-to address
            example:
              emails:
                - from: Acme <hello@myapp.com>
                  to: alice@example.com
                  subject: Welcome
                  html: <h1>Welcome!</h1>
                - from: Acme <hello@myapp.com>
                  to: bob@example.com
                  subject: Welcome
                  html: <h1>Welcome!</h1>
      responses:
        '202':
          description: All emails queued for delivery
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        status:
                          type: string
                          example: queued
        '402':
          description: Monthly or daily sending quota exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Workspace sending is blocked due to elevated bounce or complaint
            rate
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: >-
            Batch exceeds plan limit, domain not verified, or recipient
            suppressed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Error:
      type: object
      properties:
        errors:
          type: array
          items:
            type: object
            properties:
              message:
                type: string
                example: Domain not verified
              field:
                type: string
                example: from
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: |
        Prefix `tor_` followed by a base64url-encoded random key.
        Obtain one from `POST /api/v1/workspaces` or `POST /api/v1/auth/keys`.

````