Machine Inbox Inboxes API

The Inboxes API from Machine Inbox — 6 operation(s) for inboxes.

GitHub OpenAPI

Operations 9

POST /api/v1/inboxes Create an inbox with Stripe MPP: $2.00 for seven days or $5.00 for the… #
GET /api/v1/inboxes/{inboxId} Get inbox #
DELETE /api/v1/inboxes/{inboxId} Delete inbox #
POST /api/v1/inboxes/pro Create a thirty-day pro inbox for $5.00 (x402 USDC on Base mainnet or Stripe… #
POST /api/v1/inboxes/verification Create a one-hour verification inbox for $0.05 over x402 (USDC on Base mainnet)… #
POST /api/v1/inboxes/{inboxId}/extend Extend an active inbox by seven days with Stripe MPP for $1.00 #
PUT /api/v1/inboxes/{inboxId}/webhook Set the inbox webhook: an HMAC-signed POST for every inbound message #
GET /api/v1/inboxes/{inboxId}/webhook Read the inbox webhook state without its secret #
DELETE /api/v1/inboxes/{inboxId}/webhook Remove the inbox webhook #

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/machineinbox-com:machineinbox-com-inboxes-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

machineinbox-com-inboxes-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Machine Inbox Inboxes API
  version: 0.1.0
  description: Live Stripe Machine Payments Protocol (MPP). Create short-lived email inboxes for agents, receive mail, and reply inside existing threads.
  x-guidance: 'Use an MPP-compatible client to POST /api/v1/inboxes. The HTTP 402 WWW-Authenticate challenge offers stripe/charge; retry with Authorization: Payment. Save the returned inbox ID and bearer token. Replies are included. Every /api/v1/inboxes/{inboxId} operation requires that mi_live_ token as Authorization: Bearer even where security is declared empty: the purchase, not an account, grants access, so no separate payment or sign-in applies.'
  contact:
    email: info@machineinbox.com
  license:
    name: Commercial API Terms
    url: https://machineinbox.com/terms.html
servers:
- url: https://machineinbox.com
  description: Live Stripe Machine Payments Protocol (MPP)
tags:
- name: Inboxes
paths:
  /api/v1/inboxes:
    post:
      tags:
      - Inboxes
      operationId: createInbox
      summary: 'Create an inbox with Stripe MPP: $2.00 for seven days or $5.00 for the…'
      security: []
      x-payment-info:
        amount: '200'
        currency: usd
        description: Machine Inbox - seven-day inbox with replies included
        intent: charge
        method: stripe
        methodDetails:
          networkId: profile_61VF0AQCf2K2etTtBA6VF0AQ2PSQ6DXu7LE66rI6y8ES
          paymentMethodTypes:
          - card
          - link
        protocols:
        - mpp
        - x402
        price: $2.00
        minPrice: $2.00
        maxPrice: $5.00
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                product:
                  type: string
                  enum:
                  - seven_day_inbox
                  - pro_inbox
                  - verification_inbox
                  default: seven_day_inbox
                  description: Omit for the standard seven-day inbox; pro_inbox lasts thirty days with higher quotas; verification_inbox lasts one hour and exists to catch a single signup code.
      responses:
        '201':
          description: Inbox created. The bearer token is returned once; authenticated replies are included.
          headers:
            Payment-Receipt:
              required: true
              description: MPP receipt for the successful Stripe payment.
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateInboxResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '402':
          description: 'Payment is required. The one 402 advertises both rails: Stripe MPP in WWW-Authenticate and x402 v2 in PAYMENT-REQUIRED. Pay with either.'
          headers:
            WWW-Authenticate:
              required: true
              description: 'MPP Payment challenge. Retry with the corresponding Authorization: Payment credential.'
              schema:
                type: string
                pattern: '^Payment '
            PAYMENT-REQUIRED:
              required: false
              description: Base64-encoded x402 v2 payment requirements (USDC on Base mainnet). Retry with PAYMENT-SIGNATURE and an Idempotency-Key. Absent only if the x402 facilitator is unreachable.
              schema:
                type: string
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/TemporarilyUnavailable'
  /api/v1/inboxes/{inboxId}:
    get:
      tags:
      - Inboxes
      operationId: getInbox
      security: []
      parameters:
      - $ref: '#/components/parameters/InboxId'
      responses:
        '200':
          description: Inbox state, limits, and current usage.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MailboxResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '410':
          $ref: '#/components/responses/Gone'
        '429':
          $ref: '#/components/responses/RateLimited'
      summary: Get inbox
      x-summary-source: derived
    delete:
      tags:
      - Inboxes
      operationId: deleteInbox
      security: []
      parameters:
      - $ref: '#/components/parameters/InboxId'
      responses:
        '202':
          description: Token revoked and content deletion queued.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteInboxResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '410':
          $ref: '#/components/responses/Gone'
        '429':
          $ref: '#/components/responses/RateLimited'
      summary: Delete inbox
      x-summary-source: derived
  /api/v1/inboxes/pro:
    post:
      tags:
      - Inboxes
      operationId: createProInbox
      summary: Create a thirty-day pro inbox for $5.00 (x402 USDC on Base mainnet or Stripe…
      description: 'Path-priced route for the pro tier: the x402 route table carries one static price per path, and the same path resolves the pro product for Stripe MPP. Equivalent for MPP buyers: POST /api/v1/inboxes with {"product":"pro_inbox"}.'
      security: []
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '5.000000'
        protocols:
        - mpp: {}
        - x402: {}
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
      responses:
        '201':
          description: Pro inbox created. The bearer token is returned once; authenticated replies are included.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateInboxResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '402':
          description: 'Payment is required. The one 402 advertises both rails: Stripe MPP in WWW-Authenticate and x402 v2 in PAYMENT-REQUIRED. Pay with either.'
          headers:
            WWW-Authenticate:
              required: true
              description: 'MPP Payment challenge. Retry with the corresponding Authorization: Payment credential.'
              schema:
                type: string
                pattern: '^Payment '
            PAYMENT-REQUIRED:
              required: false
              description: Base64-encoded x402 v2 payment requirements (USDC on Base mainnet). Retry with PAYMENT-SIGNATURE and an Idempotency-Key. Absent only if the x402 facilitator is unreachable.
              schema:
                type: string
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/TemporarilyUnavailable'
  /api/v1/inboxes/verification:
    post:
      tags:
      - Inboxes
      operationId: createVerificationInbox
      summary: Create a one-hour verification inbox for $0.05 over x402 (USDC on Base mainnet)…
      description: 'Path-priced route for the verification tier: a one-hour inbox sized for catching a single signup code (10 messages, no replies). Pair it with GET /api/v1/inboxes/{inboxId}/verification-code. Both rails pay on this path; only x402 gets the sub-card price ($0.50 by card: Stripe carries a minimum charge). Equivalent for MPP buyers: POST /api/v1/inboxes with {"product":"verification_inbox"}.'
      security: []
      x-payment-info:
        price:
          mode: fixed
          currency: USD
          amount: '0.050000'
        protocols:
        - mpp: {}
        - x402: {}
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
      responses:
        '201':
          description: Verification inbox created. The bearer token is returned once.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateInboxResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '402':
          description: 'Payment is required. The one 402 advertises both rails: Stripe MPP in WWW-Authenticate and x402 v2 in PAYMENT-REQUIRED. Pay with either.'
          headers:
            WWW-Authenticate:
              required: true
              description: 'MPP Payment challenge. Retry with the corresponding Authorization: Payment credential.'
              schema:
                type: string
                pattern: '^Payment '
            PAYMENT-REQUIRED:
              required: false
              description: Base64-encoded x402 v2 payment requirements (USDC on Base mainnet). Retry with PAYMENT-SIGNATURE and an Idempotency-Key. Absent only if the x402 facilitator is unreachable.
              schema:
                type: string
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/TemporarilyUnavailable'
  /api/v1/inboxes/{inboxId}/extend:
    post:
      tags:
      - Inboxes
      operationId: extendInbox
      summary: Extend an active inbox by seven days with Stripe MPP for $1.00
      description: Adds seven days to the current expiry. The mailbox token goes in the X-Mailbox-Token header because Authorization carries the MPP Payment credential on the paid retry. An inbox can never live more than 35 days into the future, and an expired inbox cannot be extended - extend at least ten minutes before expiry.
      security: []
      x-payment-info:
        amount: '100'
        currency: usd
        description: Machine Inbox - extend an active inbox by seven days
        intent: charge
        method: stripe
        methodDetails:
          networkId: profile_61VF0AQCf2K2etTtBA6VF0AQ2PSQ6DXu7LE66rI6y8ES
          paymentMethodTypes:
          - card
          - link
        protocols:
        - mpp
        - x402
        price: $1.00
      parameters:
      - $ref: '#/components/parameters/InboxId'
      - $ref: '#/components/parameters/MailboxTokenHeader'
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
      responses:
        '200':
          description: Extension applied; the new expiry is returned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExtendInboxResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          description: 'Payment is required. The one 402 advertises both rails: Stripe MPP in WWW-Authenticate and x402 v2 in PAYMENT-REQUIRED. Pay with either.'
          headers:
            WWW-Authenticate:
              required: true
              description: 'MPP Payment challenge. Retry with the corresponding Authorization: Payment credential.'
              schema:
                type: string
                pattern: '^Payment '
            PAYMENT-REQUIRED:
              required: false
              description: Base64-encoded x402 v2 payment requirements (USDC on Base mainnet). Retry with PAYMENT-SIGNATURE and an Idempotency-Key. Absent only if the x402 facilitator is unreachable.
              schema:
                type: string
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '410':
          $ref: '#/components/responses/Gone'
        '429':
          $ref: '#/components/responses/RateLimited'
  /api/v1/inboxes/{inboxId}/webhook:
    put:
      tags:
      - Inboxes
      operationId: setWebhook
      security: []
      summary: 'Set the inbox webhook: an HMAC-signed POST for every inbound message'
      description: 'Registers one https webhook per inbox. Each inbound message triggers a signed POST carrying metadata, the extracted verification code and links, and the injection-risk scan - never the message body (fetch content with the mailbox token). Verify X-MachineInbox-Signature: t=,v1=."> using the returned secret; reject timestamps older than five minutes. Failed deliveries retry with backoff; after 20 consecutive failures the webhook is disabled until the next PUT.'
      parameters:
      - $ref: '#/components/parameters/InboxId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetWebhookRequest'
      responses:
        '200':
          description: Webhook stored. The derived signing secret is returned on every PUT.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SetWebhookResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '410':
          $ref: '#/components/responses/Gone'
        '429':
          $ref: '#/components/responses/RateLimited'
    get:
      tags:
      - Inboxes
      operationId: getWebhook
      security: []
      summary: Read the inbox webhook state without its secret
      parameters:
      - $ref: '#/components/parameters/InboxId'
      responses:
        '200':
          description: Webhook URL, delivery state, and failure counters.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WebhookStateResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '410':
          $ref: '#/components/responses/Gone'
        '429':
          $ref: '#/components/responses/RateLimited'
    delete:
      tags:
      - Inboxes
      operationId: deleteWebhook
      security: []
      summary: Remove the inbox webhook
      parameters:
      - $ref: '#/components/parameters/InboxId'
      responses:
        '200':
          description: Webhook removed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteWebhookResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '410':
          $ref: '#/components/responses/Gone'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  schemas:
    Mailbox:
      type: object
      additionalProperties: false
      properties:
        id:
          type: string
          format: uuid
        address:
          type: string
          format: email
        status:
          type: string
          enum:
          - pending_payment
          - active
          - deleted
          - expired
          - suspended
          - payment_failed
        product:
          type: string
          enum:
          - seven_day_inbox
          - pro_inbox
          - verification_inbox
        createdAt:
          type: string
          format: date-time
        expiresAt:
          type: string
          format: date-time
        limits:
          type: object
          additionalProperties: false
          properties:
            messages:
              type: integer
              minimum: 1
            storageBytes:
              type: integer
              minimum: 1
          required:
          - messages
          - storageBytes
        usage:
          type: object
          additionalProperties: false
          properties:
            messages:
              type: integer
              minimum: 0
            storageBytes:
              type: integer
              minimum: 0
          required:
          - messages
          - storageBytes
      required:
      - id
      - address
      - status
      - product
      - createdAt
      - expiresAt
      - limits
      - usage
    WebhookStateResponse:
      type: object
      additionalProperties: false
      properties:
        webhook:
          $ref: '#/components/schemas/Webhook'
      required:
      - webhook
    DeleteInboxResponse:
      type: object
      additionalProperties: false
      properties:
        deleted:
          const: true
        inboxId:
          type: string
          format: uuid
      required:
      - deleted
      - inboxId
    CreateInboxResponse:
      type: object
      additionalProperties: false
      properties:
        inbox:
          $ref: '#/components/schemas/Mailbox'
        token:
          type: string
          pattern: ^mi_live_[A-Za-z0-9_-]+$
          description: Returned only on creation or an idempotent replay.
        tokenNotice:
          type: string
        replayed:
          type: boolean
      required:
      - inbox
      - token
      - tokenNotice
      - replayed
    Webhook:
      type: object
      additionalProperties: false
      properties:
        url:
          type: string
          format: uri
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
        lastSuccessAt:
          type:
          - string
          - 'null'
          format: date-time
        lastFailureAt:
          type:
          - string
          - 'null'
          format: date-time
        lastFailureReason:
          type:
          - string
          - 'null'
        consecutiveFailures:
          type: integer
          minimum: 0
        disabled:
          type: boolean
      required:
      - url
      - createdAt
      - updatedAt
      - lastSuccessAt
      - lastFailureAt
      - lastFailureReason
      - consecutiveFailures
      - disabled
    ErrorResponse:
      type: object
      additionalProperties: false
      properties:
        error:
          type: object
          additionalProperties: false
          properties:
            code:
              type: string
            message:
              type: string
            details: {}
          required:
          - code
          - message
      required:
      - error
    ExtendInboxResponse:
      type: object
      additionalProperties: false
      properties:
        extension:
          type: object
          additionalProperties: false
          properties:
            inboxId:
              type: string
              format: uuid
            days:
              type: integer
              minimum: 1
            expiresAt:
              type: string
              format: date-time
          required:
          - inboxId
          - days
          - expiresAt
        applied:
          const: true
        replayed:
          type: boolean
      required:
      - extension
      - applied
      - replayed
    SetWebhookResponse:
      type: object
      additionalProperties: false
      properties:
        webhook:
          $ref: '#/components/schemas/Webhook'
        secret:
          type: string
          pattern: ^mi_whsec_[A-Za-z0-9_-]+$
          description: HMAC-SHA256 signing secret for X-MachineInbox-Signature. Returned on every PUT; never shown elsewhere.
        secretNotice:
          type: string
      required:
      - webhook
      - secret
      - secretNotice
    SetWebhookRequest:
      type: object
      additionalProperties: false
      properties:
        url:
          type: string
          format: uri
          maxLength: 2048
          description: Public https URL. Private addresses, IP literals, and this service's own hosts are rejected.
      required:
      - url
    MailboxResponse:
      type: object
      additionalProperties: false
      properties:
        inbox:
          $ref: '#/components/schemas/Mailbox'
      required:
      - inbox
    DeleteWebhookResponse:
      type: object
      additionalProperties: false
      properties:
        deleted:
          const: true
      required:
      - deleted
  responses:
    Forbidden:
      description: The inbox is suspended.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Conflict:
      description: The idempotency key was already used for another operation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Gone:
      description: The inbox has expired.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    TemporarilyUnavailable:
      description: This operation is temporarily disabled.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    BadRequest:
      description: The request is malformed.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: A valid mailbox bearer token is required.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    RateLimited:
      description: A request or reply limit was reached.
      headers:
        Retry-After:
          schema:
            type: integer
          description: Seconds before retrying when present.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: The inbox, message, attachment, or route was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: Strongly recommended for inbox creation and required for replies. Reuse it only to retry the identical operation.
      schema:
        type: string
        minLength: 16
        maxLength: 200
      example: agent-task-018e90f3c48a
    InboxId:
      name: inboxId
      in: path
      required: true
      schema:
        type: string
        format: uuid
    MailboxTokenHeader:
      name: X-Mailbox-Token
      in: header
      required: false
      description: 'The mi_live_... mailbox token, required on the paid retry (the unpaid challenge needs no credentials). Used instead of Authorization: Bearer because the paid retry carries the MPP Payment credential in Authorization.'
      schema:
        type: string
        pattern: ^mi_live_[A-Za-z0-9_-]+$
  securitySchemes:
    mailboxToken:
      type: http
      scheme: bearer
      bearerFormat: MachineInboxToken
      description: 'Use the mi_live_... token returned by inbox creation. The HTTP client adds the Authorization: Bearer prefix.'
externalDocs:
  description: Agent-oriented plain-text instructions
  url: https://machineinbox.com/llms.txt
x-service-info:
  categories:
  - email
  - developer-tools
  - agents
  docs:
    homepage: https://machineinbox.com
    apiReference: https://machineinbox.com/openapi.json
    llms: https://machineinbox.com/llms.txt