Temp Mail API

Temp Mail API as documented publicly. Contract generated from the documentation by API Evangelist (2026-11-26); not the provider's own document.

GitHub OpenAPI

Operations 10

GET /v1/attachments/{id} Download attachment #
GET /v1/domains GET /v1/domains #
POST /v1/emails POST /v1/emails #
DELETE /v1/emails/{email} Delete email with all messages #
DELETE /v1/messages/{id} Delete specific message #
GET /v1/messages/{id} Get specific message #
GET /v1/messages/{id}/source_code Get message source code #
GET /v1/messages/a48b927e-3a24-42ff-a748-d516e5474f85/attachments/b59c038f-4b2d-4e0a-9f8b-e3f6d7c8a9b0 GET /v1/messages/a48b927e-3a24-42ff-a748-d516e5474f85/attachments/b59c038f-4b2d-4e0a-9f8b-e3f6d7c8a9b0 #
GET /v1/messages/a48b927e-3a24-42ff-a748-d516e5474f85/source GET /v1/messages/a48b927e-3a24-42ff-a748-d516e5474f85/source #
GET /v1/rate_limit Get rate limit status. #

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/temp-mail-io:temp-mail-io-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

temp-mail-io-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: Temp Mail API
  version: '2026-11-26'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-26: 10 operation(s) read from 11 public documentation page(s) (each
    operation names its page in x-source). This is not the provider''s published contract; Temp Mail has published no machine-readable contract
    that the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 9
    documentation: 1
    pages-with-code: 2
    pages-read: 11
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-26'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.temp-mail.io/docs/getting-started
  - https://docs.temp-mail.io/docs/create-email-v-1
  - https://docs.temp-mail.io/docs/get-email-messages-v-1
  - https://docs.temp-mail.io/docs/delete-email-v-1
  - https://docs.temp-mail.io/docs/get-message-v-1
  - https://docs.temp-mail.io/docs/delete-message-v-1
  - https://docs.temp-mail.io/docs/get-message-source-code-v-1
  - https://docs.temp-mail.io/docs/download-attachment-v-1
  - https://docs.temp-mail.io/docs/list-domains-v-1
  - https://docs.temp-mail.io/docs/get-rate-limit-v-1
  - https://dev.temp-mail.io/help/account/how-to-use-api
servers:
- url: https://api.temp-mail.io
paths:
  /v1/attachments/{id}:
    get:
      operationId: get_v1_attachments_id
      tags:
      - Attachments
      summary: Download attachment
      x-source: https://docs.temp-mail.io/docs/download-attachment-v-1
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/domains:
    get:
      operationId: get_v1_domains
      tags:
      - Domains
      summary: GET /v1/domains
      x-source: https://docs.temp-mail.io/docs/getting-started
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1DomainsResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -H \"X-API-Key: YOUR_API_KEY\" https://api.temp-mail.io/v1/domains \n You need active premium account to use the API. To\
          \ obtain key visit this page . \n Rate Limiting ​ \n The API implements rate limiting to ensure fair usage. Rate limit information is\
          \ included in the response headers: \n X-Ratelimit-Limit : Maximum number of requests per period \n X-Ratelimit-Remaining : Remaining\
          \ requests in the c"
  /v1/emails:
    post:
      operationId: post_v1_emails
      tags:
      - Emails
      summary: POST /v1/emails
      x-source: https://docs.temp-mail.io/docs/getting-started
      responses:
        '201':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostV1EmailsResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://api.temp-mail.io/v1/emails \\ -H \"X-API-Key: YOUR_API_KEY\" \n Response: \n { \"email\" : \"user@example.com\"\
          \ , \"ttl\" : 86400 } \n 2. Get List of Messages ​ "
  /v1/emails/{email}:
    delete:
      operationId: delete_v1_emails_email
      tags:
      - Emails
      summary: Delete email with all messages
      x-source: https://docs.temp-mail.io/docs/delete-email-v-1
      parameters:
      - name: email
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteV1EmailsEmailResponse'
      x-evidence:
        kind: documentation
  /v1/messages/{id}:
    delete:
      operationId: delete_v1_messages_id
      tags:
      - Messages
      summary: Delete specific message
      x-source: https://docs.temp-mail.io/docs/delete-message-v-1
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
    get:
      operationId: get_v1_messages_id
      tags:
      - Messages
      summary: Get specific message
      description: Get specific message
      x-source: https://docs.temp-mail.io/docs/get-message-v-1
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/messages/{id}/source_code:
    get:
      operationId: get_v1_messages_id_source_code
      tags:
      - Messages
      summary: Get message source code
      x-source: https://docs.temp-mail.io/docs/get-message-source-code-v-1
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /v1/messages/a48b927e-3a24-42ff-a748-d516e5474f85/attachments/b59c038f-4b2d-4e0a-9f8b-e3f6d7c8a9b0:
    get:
      operationId: get_v1_messages_a48b927e_3a24_42ff_a748_d516e5474f85_attachments_b59c038f_4b2d_4
      tags:
      - Messages
      summary: GET /v1/messages/a48b927e-3a24-42ff-a748-d516e5474f85/attachments/b59c038f-4b2d-4e0a-9f8b-e3f6d7c8a9b0
      x-source: https://docs.temp-mail.io/docs/getting-started
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1MessagesA48B927E3A2442FfA748D516E5474F85AttachmentsB59C'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl https://api.temp-mail.io/v1/messages/a48b927e-3a24-42ff-a748-d516e5474f85/attachments/b59c038f-4b2d-4e0a-9f8b-e3f6d7c8a9b0\
          \ \\ -H \"X-API-Key: YOUR_API_KEY\" \\ --output welcome.pdf \n 5. Get Message Source Code ​ "
  /v1/messages/a48b927e-3a24-42ff-a748-d516e5474f85/source:
    get:
      operationId: get_v1_messages_a48b927e_3a24_42ff_a748_d516e5474f85_source
      tags:
      - Messages
      summary: GET /v1/messages/a48b927e-3a24-42ff-a748-d516e5474f85/source
      x-source: https://docs.temp-mail.io/docs/getting-started
      responses:
        '200':
          description: Success (shape read from the example response on the page)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1MessagesA48B927E3A2442FfA748D516E5474F85SourceResponse'
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl https://api.temp-mail.io/v1/messages/a48b927e-3a24-42ff-a748-d516e5474f85/source \\ -H \"X-API-Key: YOUR_API_KEY\" \n 6.\
          \ Delete Message ​ "
  /v1/rate_limit:
    get:
      operationId: get_v1_rate_limit
      tags:
      - Rate Limit
      summary: Get rate limit status.
      x-source: https://docs.temp-mail.io/docs/get-rate-limit-v-1
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetV1RateLimitResponse'
      x-evidence:
        kind: documentation
components:
  schemas:
    GetV1DomainsResponse:
      type: object
      properties:
        email:
          type: string
        ttl:
          type: integer
    PostV1EmailsResponse:
      type: object
      properties:
        email:
          type: string
        ttl:
          type: integer
    DeleteV1EmailsEmailResponse:
      type: object
      properties:
        '200':
          type: string
          description: email deleted successfully
        '400':
          type: string
          description: code error
        '429':
          type: string
          description: rate limit error
    GetV1MessagesA48B927E3A2442FfA748D516E5474F85AttachmentsB59C:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
            code:
              type: string
            detail:
              type: string
        meta:
          type: object
          properties:
            request_id:
              type: string
    GetV1MessagesA48B927E3A2442FfA748D516E5474F85SourceResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
            code:
              type: string
            detail:
              type: string
        meta:
          type: object
          properties:
            request_id:
              type: string
    GetV1RateLimitResponse:
      type: object
      properties:
        '200':
          type: string
          description: success response
        '400':
          type: string
          description: request error
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
security:
- apiKey: []
tags:
- name: Attachments
- name: Domains
- name: Emails
- name: Messages
- name: Rate Limit