TempMailGrab API Inbox API

The Inbox API from TempMailGrab API — 6 operation(s) for inbox.

Operations 7

POST /inbox Create a disposable inbox #
DELETE /inbox/{id} Delete an inbox and all of its mail #
GET /inbox/{id}/messages List messages (newest first) #
DELETE /inbox/{id}/messages Delete every message in an inbox, keeping the address #
GET /inbox/{id}/messages/{mid} Fetch one full message #
POST /inbox/{id}/test-message Inject a synthetic message through the parsing and realtime pipeline #
POST /inbox/{id}/webhook Register a delivery webhook for one inbox #

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/tempmailgrab-inbox-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

tempmailgrab-inbox-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: TempMailGrab Inbox API
  version: 1.0.0
  description: Create disposable email inboxes and read mail programmatically. OTP codes and verification links are auto-extracted from every message. Install the official JavaScript and TypeScript SDK for typed clients and test-runner helpers.
  contact:
    email: api@tempmailgrab.com
  license:
    name: Proprietary
    url: https://tempmailgrab.com/terms
servers:
- url: https://tempmailgrab.com/api/v1
security:
- bearerAuth: []
- apiKey: []
tags:
- name: Inbox
paths:
  /inbox:
    post:
      operationId: createInbox
      summary: Create a disposable inbox
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                prefix:
                  type: string
                domain:
                  type: string
                ttl_seconds:
                  type: integer
                  minimum: 600
                  default: 86400
                  maximum: 259200
      responses:
        '201':
          description: Created inbox
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Inbox'
        '400':
          description: Invalid prefix, domain, or TTL
        '429':
          description: Rate limited
      tags:
      - Inbox
  /inbox/{id}:
    delete:
      operationId: deleteInbox
      summary: Delete an inbox and all of its mail
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Deleted
        '404':
          description: Not found or expired
      tags:
      - Inbox
  /inbox/{id}/messages:
    get:
      operationId: listInboxMessages
      summary: List messages (newest first)
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Message list
          content:
            application/json:
              schema:
                type: object
                properties:
                  messages:
                    type: array
                    items:
                      $ref: '#/components/schemas/MessageSummary'
        '401':
          $ref: '#/components/responses/AuthenticationError'
      tags:
      - Inbox
    delete:
      operationId: deleteInboxMessages
      summary: Delete every message in an inbox, keeping the address
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Deleted count
        '401':
          $ref: '#/components/responses/AuthenticationError'
      tags:
      - Inbox
  /inbox/{id}/messages/{mid}:
    get:
      operationId: getInboxMessage
      summary: Fetch one full message
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: mid
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Full message with HTML body, OTP, links, and attachments
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageDetail'
        '404':
          description: Message not found
      tags:
      - Inbox
  /inbox/{id}/test-message:
    post:
      operationId: createTestMessage
      summary: Inject a synthetic message through the parsing and realtime pipeline
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                sender:
                  type: string
                subject:
                  type: string
                text:
                  type: string
      responses:
        '200':
          description: Synthetic message created
        '404':
          description: Inbox not found or expired
      tags:
      - Inbox
  /inbox/{id}/webhook:
    post:
      operationId: createInboxWebhook
      summary: Register a delivery webhook for one inbox
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '201':
          description: Webhook registered with its signing secret
        '401':
          $ref: '#/components/responses/AuthenticationError'
      tags:
      - Inbox
components:
  schemas:
    MessageSummary:
      type: object
      required:
      - id
      - sender
      - subject
      - snippet
      - extracted_otp
      - created_at
      properties:
        id:
          type: string
        sender:
          type: string
        subject:
          type:
          - string
          - 'null'
        snippet:
          type: string
        extracted_otp:
          type:
          - string
          - 'null'
        created_at:
          type: integer
          description: Unix timestamp in seconds.
    Inbox:
      type: object
      required:
      - id
      - address
      - created_at
      - expires_at
      properties:
        id:
          type: string
        address:
          type: string
          format: email
        created_at:
          type: integer
          description: Unix timestamp in seconds.
        expires_at:
          type: integer
          description: Unix timestamp in seconds.
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
    MessageDetail:
      type: object
      required:
      - id
      - sender
      - subject
      - text_body
      - html_body
      - extracted_otp
      - extracted_links
      - raw_headers
      - timestamp
      - attachments
      properties:
        id:
          type: string
        sender:
          type: string
        subject:
          type:
          - string
          - 'null'
        text_body:
          type:
          - string
          - 'null'
        html_body:
          type:
          - string
          - 'null'
          description: Sanitized HTML.
        extracted_otp:
          type:
          - string
          - 'null'
        extracted_links:
          type: array
          items:
            type: string
            format: uri
        raw_headers:
          type:
          - string
          - 'null'
        timestamp:
          type: integer
          description: Unix timestamp in seconds.
        attachments:
          type: array
          items:
            type: object
            required:
            - id
            - filename
            - content_type
            - size
            - url
            properties:
              id:
                type: string
              filename:
                type:
                - string
                - 'null'
              content_type:
                type:
                - string
                - 'null'
              size:
                type: integer
                minimum: 0
              url:
                type: string
                format: uri
  responses:
    AuthenticationError:
      description: Missing or invalid API credentials
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
externalDocs:
  description: Developer API guide, examples, webhooks, and SDK documentation
  url: https://tempmailgrab.com/api-docs