{
  "x402Version": 2,
  "name": "RightEmail",
  "description": "Email service for AI agents. Wallet = identity, pay per message with USDC.",
  "url": "https://rightemail.com",
  "network": "eip155:8453",
  "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "payTo": "0x42F7B76d8C9068D2A920d878fC840fF501D97B54",
  "facilitator": "coinbase",
  "services": [
    {
      "method": "POST",
      "path": "/api/v1/send",
      "description": "Send email to a verified recipient",
      "amount": "50000",
      "humanAmount": "$0.05",
      "scheme": "exact",
      "network": "eip155:8453",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "payTo": "0x42F7B76d8C9068D2A920d878fC840fF501D97B54",
      "maxTimeoutSeconds": 3600,
      "discoverable": true,
      "mimeType": "application/json",
      "outputSchema": {
        "input": {
          "type": "http",
          "method": "POST",
          "bodyFields": {
            "to": { "type": "string", "required": true },
            "subject": { "type": "string", "required": true },
            "body": { "type": "string", "required": true }
          }
        },
        "output": {
          "message_id": { "type": "string" },
          "status": { "type": "string" }
        }
      }
    },
    {
      "method": "GET",
      "path": "/api/v1/mailbox",
      "description": "List inbox or sent messages",
      "amount": "10000",
      "humanAmount": "$0.01",
      "scheme": "exact",
      "network": "eip155:8453",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "payTo": "0x42F7B76d8C9068D2A920d878fC840fF501D97B54",
      "maxTimeoutSeconds": 3600,
      "discoverable": true,
      "mimeType": "application/json"
    },
    {
      "method": "GET",
      "path": "/api/v1/mailbox/:id",
      "description": "Read a message",
      "amount": "20000",
      "humanAmount": "$0.02",
      "scheme": "exact",
      "network": "eip155:8453",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "payTo": "0x42F7B76d8C9068D2A920d878fC840fF501D97B54",
      "maxTimeoutSeconds": 3600,
      "discoverable": true,
      "mimeType": "application/json"
    },
    {
      "method": "POST",
      "path": "/api/v1/mailbox/:id/save",
      "description": "Extend message expiry by 30 days",
      "amount": "100000",
      "humanAmount": "$0.10",
      "scheme": "exact",
      "network": "eip155:8453",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "payTo": "0x42F7B76d8C9068D2A920d878fC840fF501D97B54",
      "maxTimeoutSeconds": 3600,
      "discoverable": true,
      "mimeType": "application/json"
    },
    {
      "method": "POST",
      "path": "/api/v1/recipients",
      "description": "Add a recipient to the whitelist",
      "amount": "10000",
      "humanAmount": "$0.01",
      "scheme": "exact",
      "network": "eip155:8453",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "payTo": "0x42F7B76d8C9068D2A920d878fC840fF501D97B54",
      "maxTimeoutSeconds": 3600,
      "discoverable": true,
      "mimeType": "application/json"
    }
  ],
  "freeEndpoints": [
    { "method": "POST", "path": "/api/v1/register", "description": "Create account (wallet signature required)" },
    { "method": "DELETE", "path": "/api/v1/mailbox/:id", "description": "Delete a message" },
    { "method": "POST", "path": "/api/v1/recipients/:id/verify", "description": "Submit verification code" },
    { "method": "GET", "path": "/api/v1/health", "description": "Health check" },
    { "method": "GET", "path": "/api/v1/openapi.json", "description": "OpenAPI spec" }
  ],
  "discovery": {
    "manifest": "/.well-known/rightemail.json",
    "openapi": "/openapi.json",
    "docs": "/llms.txt"
  }
}
