Api Endpoint

AgentMail | Email Inbox API for AI Agents

AgentMail gives AI agents real email inboxes. Create, send, receive, and search messages via REST API — built for autonomous agents and agentic workflows.

Open interactive test console

Offering

Provider
x402.api.agentmail.to
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Infrastructure
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://x402.api.agentmail.to/v0/drafts
MIME type
application/json
First seen
2026-10-16T01:50:04.338Z
Last seen
Tags
X402, agentic-markets, Email, Agent-Infra, Social, inbox, communication, Utility

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0 USDC
Atomic price: 0 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0 USDC
Atomic price: 0 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Payment option 3
0 USDC
Atomic price: 0 · Network: eip155:43114 · Asset: USDC · Scheme: exact
Payment option 4
0 USDC
Atomic price: 0 · Network: eip155:137 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "0",
    "payTo": "0x6e3184C204e596dED89E8A5693B602097F4Ab687"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "0",
    "payTo": "7r4e5dwNS68MDaxbw7N8jbzHq7RCMBp9z6smHFH4NXWw"
  },
  {
    "scheme": "exact",
    "network": "eip155:43114",
    "asset": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
    "amount": "0",
    "payTo": "0x6e3184C204e596dED89E8A5693B602097F4Ab687"
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "0",
    "payTo": "0x6e3184C204e596dED89E8A5693B602097F4Ab687"
  }
]

Observed health

Status
Healthy
Latest latency
1231 ms
Average latency
622 ms
HTTP status
402
Last checked
Reachability
100% over 12 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "http",
  "method": "GET",
  "queryParams": {
    "type": "object",
    "properties": {
      "after": {
        "$ref": "#/components/schemas/type_:After",
        "description": "query parameter"
      },
      "limit": {
        "$ref": "#/components/schemas/type_:Limit",
        "description": "query parameter"
      },
      "before": {
        "$ref": "#/components/schemas/type_:Before",
        "description": "query parameter"
      },
      "labels": {
        "$ref": "#/components/schemas/type_:Labels",
        "description": "query parameter"
      },
      "ascending": {
        "$ref": "#/components/schemas/type_:Ascending",
        "description": "query parameter"
      },
      "page_token": {
        "$ref": "#/components/schemas/type_:PageToken",
        "description": "query parameter"
      }
    }
  }
}

Output schema

{
  "type": "object",
  "title": "ListDraftsResponse",
  "required": [
    "count",
    "drafts"
  ],
  "properties": {
    "count": {
      "type": "integer",
      "title": "Count",
      "description": "Number of items returned."
    },
    "limit": {
      "type": "integer",
      "title": "Limit",
      "description": "Limit of number of items returned."
    },
    "drafts": {
      "type": "array",
      "items": {
        "type": "object",
        "title": "DraftItem",
        "required": [
          "inbox_id",
          "draft_id",
          "labels",
          "updated_at"
        ],
        "properties": {
          "cc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "title": "DraftCc",
            "description": "Addresses of CC recipients. In format `username@domain.com` or `Display Name <username@domain.com>`."
          },
          "to": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "title": "DraftTo",
            "description": "Addresses of recipients. In format `username@domain.com` or `Display Name <username@domain.com>`."
          },
          "bcc": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "title": "DraftBcc",
            "description": "Addresses of BCC recipients. In format `username@domain.com` or `Display Name <username@domain.com>`."
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "title": "DraftLabels",
            "description": "Labels of draft."
          },
          "preview": {
            "type": "string",
            "title": "DraftPreview",
            "description": "Text preview of draft."
          },
          "send_at": {
            "type": "string",
            "title": "DraftSendAt",
            "format": "date-time",
            "description": "Time at which to schedule send draft."
          },
          "subject": {
            "type": "string",
            "title": "DraftSubject",
            "description": "Subject of draft."
          },
          "draft_id": {
            "type": "string",
            "title": "DraftId",
            "description": "ID of draft."
          },
          "inbox_id": {
            "type": "string",
            "title": "InboxId",
            "description": "The ID of the inbox."
          },
          "updated_at": {
            "type": "string",
            "title": "DraftUpdatedAt",
            "format": "date-time",
            "description": "Time at which draft was last updated."
          },
          "attachments": {
            "type": "array",
            "items": {
              "type": "object",
              "title": "Attachment",
              "required": [
                "attachment_id",
                "size"
              ],
              "properties": {
                "size": {
                  "type": "integer",
                  "title": "AttachmentSize",
                  "description": "Size of attachment in bytes."
                },
                "filename": {
                  "type": "string",
                  "title": "AttachmentFilename",
                  "description": "Filename of attachment."
                },
                "content_id": {
                  "type": "string",
                  "title": "AttachmentContentId",
                  "description": "Content ID of attachment."
                },
                "content_type": {
                  "type": "string",
                  "title": "AttachmentContentType",
                  "description": "Content type of attachment."
                },
                "attachment_id": {
                  "type": "string",
                  "title": "AttachmentId",
                  "description": "ID of attachment."
                },
                "content_disposition": {
                  "enum": [
                    "inline",
                    "attachment"
                  ],
                  "type": "string",
                  "title": "AttachmentContentDisposition",
                  "description": "Content disposition of attachment."
                }
              }
            },
            "title": "DraftAttachments",
            "description": "Attachments in draft."
          },
          "in_reply_to": {
            "type": "string",
            "title": "DraftInReplyTo",
            "description": "ID of message being replied to."
          },
          "send_status": {
            "enum": [
              "scheduled",
              "sending",
              "failed"
            ],
            "type": "string",
            "title": "DraftSendStatus",
            "description": "Schedule send status of draft."
          }
        }
      },
      "description": "Ordered by `updated_at` descending."
    },
    "next_page_token": {
      "type": "string",
      "title": "PageToken",
      "description": "Page token for pagination."
    }
  }
}