Lumail Email API

Transactional email.

GitHub OpenAPI

Operations 7

POST /api/v1/emails Queue a transactional email #
POST /api/v1/emails/verify Verify an email address #
POST /api/v2/emails Send a transactional email #
GET /api/v2/emails List transactional emails #
POST /api/v2/emails/batch Send a batch of transactional emails #
GET /api/v2/emails/{id} Retrieve a transactional email #
POST /api/v2/emails/verify Verify an email address #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/lumail-io:lumail-io-email-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

lumail-io-email-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Lumail REST Email API
  version: 1.0.0
  summary: Organization-scoped email operations for applications and agents.
  description: Create and manage subscribers, tags, events, campaigns, and transactional email in Lumail. Every operation uses an organization API token as a Bearer credential.
  contact:
    name: Lumail support
    email: contact@lumail.io
    url: https://lumail.io/support
  license:
    name: Proprietary
    url: https://lumail.io/legal/terms
servers:
- url: https://lumail.io
  description: Lumail production API
tags:
- name: Email
  description: Transactional email.
paths:
  /api/v1/emails:
    post:
      operationId: sendTransactionalEmail
      summary: Queue a transactional email
      description: Queues one transactional email with Markdown, HTML, or Tiptap content through the priority delivery lane.
      tags:
      - Email
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TransactionalEmailInput'
      responses:
        '200':
          description: The operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueuedEmailResponse'
        '400':
          description: The request could not be validated or completed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: The bearer token is missing, invalid, or expired.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: The requested organization resource was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: The organization API rate limit was exceeded.
          headers:
            Retry-After:
              description: Seconds until another request should be attempted.
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /api/v1/emails/verify:
    post:
      operationId: verifyEmailAddress
      summary: Verify an email address
      description: Checks the syntax and deliverability signals available for one email address.
      tags:
      - Email
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmailVerificationInput'
      responses:
        '200':
          description: The operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailVerificationResponse'
        '400':
          description: The request could not be validated or completed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: The bearer token is missing, invalid, or expired.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: The requested organization resource was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: The organization API rate limit was exceeded.
          headers:
            Retry-After:
              description: Seconds until another request should be attempted.
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /api/v2/emails:
    post:
      operationId: sendTransactionalEmailV2
      summary: Send a transactional email
      description: Queues one transactional email. Provide exactly one of html, tiptap, or markdown. Markdown is rendered to HTML.
      tags:
      - Email
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V2TransactionalEmailInput'
      responses:
        '200':
          description: The operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2QueuedEmailResponse'
        '400':
          description: The request could not be validated or completed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: The bearer token is missing, invalid, or expired.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: The requested organization resource was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: The organization API rate limit was exceeded.
          headers:
            Retry-After:
              description: Seconds until another request should be attempted.
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
    get:
      operationId: listTransactionalEmailsV2
      summary: List transactional emails
      description: Lists transactional API emails newest first. Paginate with after or before email ids.
      tags:
      - Email
      security:
      - bearerAuth: []
      responses:
        '200':
          description: The operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2EmailListResponse'
        '400':
          description: The request could not be validated or completed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: The bearer token is missing, invalid, or expired.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: The requested organization resource was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: The organization API rate limit was exceeded.
          headers:
            Retry-After:
              description: Seconds until another request should be attempted.
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /api/v2/emails/batch:
    post:
      operationId: sendBatchTransactionalEmailsV2
      summary: Send a batch of transactional emails
      description: Queues up to 100 transactional emails. Each item uses the same body as POST /api/v2/emails.
      tags:
      - Email
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V2TransactionalEmailBatchInput'
      responses:
        '200':
          description: The operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2EmailBatchResponse'
        '400':
          description: The request could not be validated or completed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: The bearer token is missing, invalid, or expired.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: The requested organization resource was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: The organization API rate limit was exceeded.
          headers:
            Retry-After:
              description: Seconds until another request should be attempted.
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /api/v2/emails/{id}:
    get:
      operationId: getTransactionalEmailV2
      summary: Retrieve a transactional email
      description: Returns one queued or sent transactional email, including last_event from delivery status and tracking.
      tags:
      - Email
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        description: Email id such as eml_...
        schema:
          type: string
          minLength: 1
      responses:
        '200':
          description: The operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2EmailObject'
        '400':
          description: The request could not be validated or completed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: The bearer token is missing, invalid, or expired.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: The requested organization resource was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: The organization API rate limit was exceeded.
          headers:
            Retry-After:
              description: Seconds until another request should be attempted.
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
  /api/v2/emails/verify:
    post:
      operationId: verifyEmailAddressV2
      summary: Verify an email address
      description: Deprecated. Use POST /api/v2/verify. Returns { valid, error, code } for existing SDK clients. HTTP 200 even when valid is false.
      tags:
      - Email
      security:
      - bearerAuth: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EmailVerificationInput'
      responses:
        '200':
          description: The operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/V2EmailVerificationResponse'
        '400':
          description: The request could not be validated or completed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: The bearer token is missing, invalid, or expired.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: The requested organization resource was not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: The organization API rate limit was exceeded.
          headers:
            Retry-After:
              description: Seconds until another request should be attempted.
              schema:
                type: integer
                minimum: 1
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    V2EmailObject:
      type: object
      required:
      - id
      - from
      - to
      - subject
      - created_at
      - last_event
      properties:
        object:
          type: string
        id:
          type: string
        message_id:
          type:
          - string
          - 'null'
        to:
          type: array
          items:
            type: string
        from:
          type: string
        created_at:
          type: string
          format: date-time
        subject:
          type: string
        html:
          type:
          - string
          - 'null'
        text:
          type:
          - string
          - 'null'
        last_event:
          type: string
      additionalProperties: true
    V2TransactionalEmailBatchInput:
      type: array
      minItems: 1
      maxItems: 100
      items:
        $ref: '#/components/schemas/V2TransactionalEmailInput'
    V2QueuedEmailResponse:
      type: object
      required:
      - id
      properties:
        id:
          type: string
    EmailVerificationInput:
      type: object
      required:
      - email
      properties:
        email:
          type: string
          format: email
      additionalProperties: false
    QueuedEmailResponse:
      type: object
      required:
      - success
      - message
      - id
      properties:
        success:
          type: boolean
          const: true
        message:
          type: string
        id:
          type: string
    ErrorResponse:
      type: object
      required:
      - name
      - message
      - statusCode
      properties:
        name:
          type: string
        message:
          type: string
        statusCode:
          type: integer
        details:
          type: object
          additionalProperties: true
    EmailVerificationResponse:
      type: object
      required:
      - success
      properties:
        success:
          type: boolean
        email:
          type: string
          format: email
        reason:
          type: string
      additionalProperties: true
    TransactionalEmailInput:
      type: object
      required:
      - to
      - from
      - subject
      - content
      properties:
        to:
          type: string
          format: email
        from:
          type: string
          format: email
        subject:
          type: string
          minLength: 1
        content: {}
        contentType:
          type: string
          enum:
          - MARKDOWN
          - HTML
          - TIPTAP
          default: MARKDOWN
        preview:
          type: string
        replyTo:
          type: string
          format: email
        tracking:
          type: object
          properties:
            links:
              type: boolean
              default: true
            open:
              type: boolean
              default: true
          additionalProperties: false
      additionalProperties: false
    V2EmailListResponse:
      type: object
      required:
      - object
      - has_more
      - data
      properties:
        object:
          type: string
          const: list
        has_more:
          type: boolean
        data:
          type: array
          items:
            $ref: '#/components/schemas/V2EmailObject'
    V2TransactionalEmailInput:
      type: object
      required:
      - from
      - to
      - subject
      properties:
        from:
          type: string
        to:
          oneOf:
          - type: string
          - type: array
            items:
              type: string
            maxItems: 1
        subject:
          type: string
          minLength: 1
        html:
          type: string
        tiptap: {}
        markdown:
          type: string
        text:
          type: string
        reply_to:
          oneOf:
          - type: string
          - type: array
            items:
              type: string
        cc:
          oneOf:
          - type: string
          - type: array
            items:
              type: string
        bcc:
          oneOf:
          - type: string
          - type: array
            items:
              type: string
        headers:
          type: object
          additionalProperties:
            type: string
        tags:
          type: array
          items:
            type: object
            required:
            - name
            - value
            properties:
              name:
                type: string
              value:
                type: string
        preview:
          type: string
      additionalProperties: false
    V2EmailVerificationResponse:
      type: object
      required:
      - valid
      additionalProperties: true
      properties:
        valid:
          type: boolean
        error:
          type: string
        code:
          type: string
        suggestion:
          type: string
        warnings:
          type: array
          items:
            type: string
    V2EmailBatchResponse:
      type: object
      required:
      - data
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/V2QueuedEmailResponse'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Lumail organization API token
      description: 'Create an organization API token in Lumail and send it as Authorization: Bearer lum_....'
externalDocs:
  description: Lumail API and agent documentation
  url: https://lumail.io/docs/api-reference