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

# Send email

> Queues an email for background delivery. Requires a team access token with `sending_access` or `full_access`.



## OpenAPI

````yaml /openapi.json post /emails
openapi: 3.1.0
info:
  title: Runnage API
  description: Developer-first email and SMS API for African startups and teams.
  license:
    name: MIT
    identifier: MIT
  version: 0.1.0
servers:
  - url: https://api.runnage.dev
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Emails
    description: Queue, list, and retrieve email messages.
  - name: SMS
    description: Queue, list, and retrieve SMS messages.
  - name: Domains
    description: Manage sending domains and DNS verification records.
  - name: Sender IDs
    description: Manage SMS sender IDs for country-specific sending.
paths:
  /emails:
    post:
      tags:
        - Emails
      summary: Send email
      description: >-
        Queues an email for background delivery. Requires a team access token
        with `sending_access` or `full_access`.
      operationId: postEmails
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            type: string
            maxLength: 255
        - name: X-Request-ID
          in: header
          required: false
          schema:
            type: string
            maxLength: 255
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendEmailRequest'
      responses:
        '202':
          description: Queued
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IDResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    SendEmailRequest:
      type: object
      required:
        - from
        - to
        - subject
      properties:
        from:
          type: string
          example: Acme <onboarding@example.com>
        to:
          type: array
          minItems: 1
          items:
            type: string
            format: email
        cc:
          type: array
          items:
            type: string
            format: email
        bcc:
          type: array
          items:
            type: string
            format: email
        reply_to:
          type: array
          items:
            type: string
            format: email
        subject:
          type: string
        text:
          type: string
        html:
          type: string
        tags:
          type: object
          additionalProperties:
            type: string
      anyOf:
        - required:
            - text
        - required:
            - html
    IDResponse:
      type: object
      required:
        - id
      properties:
        id:
          type: string
          format: uuid
    Error:
      type: object
      properties:
        error:
          type: string
        details:
          type: string
        message:
          type: string
      additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Runnage team access token

````