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/%7Bdraft_id%7D
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 atomic units
Atomic price: 0 · Network: eip155:196 · Asset: 0x74b7f16337b8972027f6196a17a631ac6de26d22 · Scheme: exact
Payment option 5
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:196",
    "asset": "0x74b7f16337b8972027f6196a17a631ac6de26d22",
    "amount": "0",
    "payTo": "0x6e3184C204e596dED89E8A5693B602097F4Ab687"
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "0",
    "payTo": "0x6e3184C204e596dED89E8A5693B602097F4Ab687"
  }
]

Observed health

Status
Healthy
Latest latency
339 ms
Average latency
740 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",
  "pathParams": {
    "type": "object",
    "required": [
      "draft_id"
    ],
    "properties": {
      "draft_id": {
        "$ref": "#/components/schemas/type_drafts:DraftId",
        "description": "path parameter"
      }
    }
  }
}

Output schema

{
  "type": "object",
  "title": "Draft",
  "required": [
    "inbox_id",
    "draft_id",
    "labels",
    "updated_at",
    "created_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>`."
    },
    "html": {
      "type": "string",
      "title": "DraftHtml",
      "description": "HTML body of draft."
    },
    "text": {
      "type": "string",
      "title": "DraftText",
      "description": "Plain text body of draft."
    },
    "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."
    },
    "reply_to": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "title": "DraftReplyTo",
      "description": "Reply-to addresses. In format `username@domain.com` or `Display Name <username@domain.com>`."
    },
    "client_id": {
      "type": "string",
      "title": "DraftClientId",
      "description": "Client ID of draft."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "Time at which draft was created."
    },
    "references": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "IDs of previous messages in thread."
    },
    "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."
    }
  }
}