MultiMail Emails API

The Emails API from MultiMail — 3 operation(s) for emails.

GitHub OpenAPI

Operations 3

GET /v1/emails List spam emails across tenant #
POST /v1/emails/{id}/report-spam Report an email as spam #
POST /v1/emails/{id}/not-spam Mark an email as not spam #

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/multimail-dev:multimail-dev-emails-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

multimail-dev-emails-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MultiMail Emails API
  version: 2.0.0
  description: Email-as-a-Service for AI agents. Inbound email converted to markdown, outbound markdown converted to HTML. Built on Cloudflare Workers.
servers:
- url: https://api.multimail.dev
tags:
- name: Emails
paths:
  /v1/emails:
    get:
      summary: List spam emails across tenant
      description: Requires read scope. Without a status filter, returns spam_flagged and spam_quarantined emails across all tenant mailboxes.
      security:
      - bearerAuth: []
      parameters:
      - name: status
        in: query
        schema:
          type: string
          enum:
          - spam_flagged
          - spam_quarantined
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 20
      - name: cursor
        in: query
        schema:
          type: string
        description: Pagination cursor (received_at epoch from previous page)
      responses:
        '200':
          description: Spam email list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EmailListResponse'
      tags:
      - Emails
      operationId: getV1Emails
      x-operation-id-source: derived
  /v1/emails/{id}/report-spam:
    post:
      summary: Report an email as spam
      description: Requires send scope. Moves the email to spam_quarantined and records a user spam label. Sensitive changes require a request-bound operator code; API-key scope alone does not authorize them.
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: X-MultiMail-Approval-Code
        in: header
        required: false
        schema:
          type: string
        description: Operator-delivered single-use proof for the exact request. Without proof, HTTP 202 requests operator approval and does not complete the operation. Confirmation booleans and MCP UI hints cannot grant authority.
      responses:
        '200':
          description: Email marked as spam
        '202':
          description: Operator approval requested; operation not completed
        '404':
          description: Email not found
      tags:
      - Emails
      operationId: postV1EmailsByIdReportSpam
      x-operation-id-source: derived
  /v1/emails/{id}/not-spam:
    post:
      summary: Mark an email as not spam
      description: Requires send scope. Restores the email to unread and records a user not_spam label. Sensitive changes require a request-bound operator code; API-key scope alone does not authorize them.
      security:
      - bearerAuth: []
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: X-MultiMail-Approval-Code
        in: header
        required: false
        schema:
          type: string
        description: Operator-delivered single-use proof for the exact request. Without proof, HTTP 202 requests operator approval and does not complete the operation. Confirmation booleans and MCP UI hints cannot grant authority.
      responses:
        '200':
          description: Email restored to unread
        '202':
          description: Operator approval requested; operation not completed
        '404':
          description: Email not found
      tags:
      - Emails
      operationId: postV1EmailsByIdNotSpam
      x-operation-id-source: derived
components:
  schemas:
    EmailSummary:
      type: object
      properties:
        id:
          type: string
        mailbox_id:
          type: string
          description: Present on tenant-wide listings (GET /v1/emails); omitted on per-mailbox listings where the mailbox is implied by the path.
        from:
          type: string
        to:
          type: array
          items:
            type: string
        subject:
          type: string
        direction:
          type: string
          enum:
          - inbound
          - outbound
        status:
          type: string
          enum:
          - unread
          - read
          - archived
          - deleted
          - pending_send_approval
          - pending_inbound_approval
          - rejected
          - cancelled
          - sending
          - send_failed
          - scheduled
          - spam_flagged
          - spam_quarantined
        spam_score:
          type:
          - integer
          - 'null'
        spam_verdict:
          type:
          - string
          - 'null'
          enum:
          - clean
          - flagged
          - quarantined
          - null
        received_at:
          type: string
          format: date-time
        thread_id:
          type:
          - string
          - 'null'
        has_attachments:
          type: boolean
        delivered_at:
          type:
          - string
          - 'null'
          format: date-time
        bounced_at:
          type:
          - string
          - 'null'
          format: date-time
        bounce_type:
          type:
          - string
          - 'null'
    EmailListResponse:
      type: object
      properties:
        emails:
          type: array
          items:
            $ref: '#/components/schemas/EmailSummary'
        cursor:
          type:
          - string
          - 'null'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'API key (mm_live_...). Keys have scopes: read (list/read emails, mailboxes, contacts), send (send/reply/cancel emails), admin (manage mailboxes, API keys, billing, account), oversight (approve/reject pending emails).'