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

# Send an email

> Queues a single message and returns its id immediately. The id is minted in the same transaction as the caller's own work, so a rollback never sends.



## OpenAPI

````yaml /api-reference/openapi.json post /emails
openapi: 3.1.0
info:
  title: i10 API
  version: 0.0.0
  description: >-
    Transactional email API. Generated from the same Zod schemas the server
    validates with and the SDKs are built from, so the reference cannot drift
    from the implementation.
servers:
  - url: https://api.i10.tech
    description: Production
security: []
tags:
  - name: Emails
    description: Sending and retrieving transactional mail.
  - name: Domains
    description: Managing sending domains and DNS verification.
  - name: Webhooks
    description: Managing webhook endpoints, deliveries, replays and stats.
  - name: Webhook events
    description: Event payloads i10 signs and POSTs to your webhook endpoints.
  - name: Suppressions
    description: Managing workspace-wide suppressed recipient addresses.
  - name: Trusted templates
    description: Submitting email templates for deliverability review.
paths:
  /emails:
    post:
      tags:
        - Emails
      summary: Send an email
      description: >-
        Queues a single message and returns its id immediately. The id is minted
        in the same transaction as the caller's own work, so a rollback never
        sends.
      operationId: sendEmail
      parameters:
        - schema:
            type: string
            description: >-
              Optional key to make retries safe. Replaying a request with the
              same key and body returns the original message id(s) without
              sending again; reusing it with a different body returns 409.
          required: false
          description: >-
            Optional key to make retries safe. Replaying a request with the same
            key and body returns the original message id(s) without sending
            again; reusing it with a different body returns 409.
          name: Idempotency-Key
          in: header
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SendEmail'
      responses:
        '200':
          description: The message was accepted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SendEmailResponse'
        '401':
          description: The API key is missing, malformed, or unknown.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            The key is restricted to other domains than the `from` address, the
            caller's IP is not on the key's allowlist, the `from` domain is not
            verified, or sending is paused or held.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: The `template` named does not exist, or has no such version.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: This Idempotency-Key was already used with a different request body.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: The request body failed validation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: The daily, monthly or test-mode sending quota is exhausted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '501':
          description: The send path is not configured.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    SendEmail:
      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
              minItems: 1
              maxItems: 50
        subject:
          type: string
        bcc:
          anyOf:
            - type: string
              minLength: 3
              maxLength: 320
            - type: array
              items:
                type: string
                minLength: 3
                maxLength: 320
              minItems: 1
              maxItems: 50
        cc:
          anyOf:
            - type: string
              minLength: 3
              maxLength: 320
            - type: array
              items:
                type: string
                minLength: 3
                maxLength: 320
              minItems: 1
              maxItems: 50
        reply_to:
          anyOf:
            - type: string
              minLength: 3
              maxLength: 320
            - type: array
              items:
                type: string
                minLength: 3
                maxLength: 320
              minItems: 1
              maxItems: 50
        html:
          type: string
          maxLength: 5242880
        text:
          type: string
          maxLength: 5242880
        template:
          type: object
          properties:
            id:
              type: string
              minLength: 1
              maxLength: 200
            version:
              type: integer
              exclusiveMinimum: 0
            variables:
              type: object
              additionalProperties: {}
          required:
            - id
        headers:
          type: object
          additionalProperties:
            type: string
            maxLength: 998
        attachments:
          type: array
          items:
            type: object
            properties:
              filename:
                type: string
                minLength: 1
                maxLength: 255
                pattern: ^[^\r\n"]+$
              content:
                type: string
              path:
                type: string
                format: uri
              content_type:
                type: string
                maxLength: 255
              content_id:
                type: string
                minLength: 1
                maxLength: 255
                pattern: ^[^\s<>"]+$
            required:
              - filename
          maxItems: 490
        tags:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
                pattern: ^[A-Za-z0-9_-]{1,256}$
              value:
                type: string
                pattern: ^[A-Za-z0-9_-]{1,256}$
            required:
              - name
              - value
        scheduled_at:
          type: string
          format: date-time
      required:
        - to
    SendEmailResponse:
      type: object
      properties:
        id:
          type: string
          format: uuid
      required:
        - id
    Error:
      type: object
      properties:
        statusCode:
          type: integer
        name:
          type: string
          enum:
            - validation_error
            - missing_required_field
            - invalid_access
            - not_found
            - method_not_allowed
            - rate_limit_exceeded
            - daily_quota_exceeded
            - monthly_quota_exceeded
            - test_quota_exceeded
            - invalid_from_address
            - invalid_to_address
            - domain_not_verified
            - idempotency_conflict
            - domain_already_exists
            - domain_already_claimed
            - plan_limit_exceeded
            - mail_signin_off
            - mailbox_already_exists
            - restricted_api_key
            - test_key_not_allowed
            - confirmation_required
            - sending_paused
            - sending_held
            - template_already_submitted
            - internal_server_error
        message:
          type: string
      required:
        - statusCode
        - name
        - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your i10 API key, prefixed `i10_live_` or `i10_test_`. Test keys can
        only send simulated emails (never delivered externally or counted toward
        limits), read test emails and list domains; all other endpoints refuse
        them with 403 `test_key_not_allowed`.

````

## Related topics

- [Introduction](https://docs.i10.tech/api-reference/introduction.md)
- [Send up to 100 emails](https://docs.i10.tech/api-reference/emails/send-email-batch.md)
- [Send a test event to a webhook endpoint](https://docs.i10.tech/api-reference/webhooks/send-webhook-endpoint-test-event.md)
- [Retrieve an email](https://docs.i10.tech/api-reference/emails/get-email.md)
- [Quickstart](https://docs.i10.tech/quickstart.md)


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