Install StableEmail into AgentCash, send a first live email, then keep relay, subdomain, and inbox flows reusable.
Run in your terminal
Onboard into AgentCash, make one live call against this API, then save it into your agent's persistent context.
Onboard AgentCash
Sets up AgentCash and routes you through credits if needed.
npx agentcash onboardTry the API
Discovers the origin and walks the first live call path.
npx agentcash try https://stableemail.devAdd for reuse
Keeps StableEmail available in your agent's persistent context.
npx agentcash add https://stableemail.devHow it works
- 1POST your email to
/api/send - 2Get back a 402 with payment requirements ($0.02 USDC on Base, Solana, or Tempo)
- 3Pay and resend — email delivered via AWS SES
Example
{
"to": ["alice@example.com"],
"subject": "Hello from StableEmail",
"text": "Sent and paid in one HTTP request.",
"replyTo": "you@example.com"
}HTTP/1.1 402 Payment Required
PAYMENT-REQUIRED: <base64 payment details>
// Pay with any compatible client, then:
{
"success": true,
"messageId": "ses-abc123",
"from": "relay@stableemail.dev"
}Endpoints
| Endpoint | Price | Auth |
|---|---|---|
POST /api/sendSend from relay@stableemail.dev | $0.02 | x402 / MPP |
POST /api/subdomain/buyPurchase yourname.stableemail.dev | $5 | x402 / MPP |
POST /api/subdomain/sendSend from your subdomain | $0.005 | x402 / MPP |
POST /api/subdomain/signersAdd/remove authorized wallets | Free | SIWX |
GET /api/subdomain/statusCheck DNS/SES verification | Free | SIWX |
POST /api/inbox/buyBuy username@stableemail.dev (30 days) | $1 | x402 / MPP |
POST /api/inbox/topupExtend inbox 30 days | $1 | x402 / MPP |
POST /api/inbox/topup/quarterExtend inbox 90 days (save 17%) | $2.50 | x402 / MPP |
POST /api/inbox/topup/yearExtend inbox 365 days (save 34%) | $8 | x402 / MPP |
POST /api/inbox/sendSend from your inbox address | $0.005 | x402 / MPP |
GET /api/inbox/statusCheck inbox status and expiry | Free | SIWX |
POST /api/inbox/updateChange forwarding address | Free | SIWX |
POST /api/inbox/cancelCancel inbox and get pro-rata refund | Free | SIWX |
Forwarding inbox
Buy username@stableemail.dev for $1/month. Emails forwarded to your real address. Send from your inbox address for $0.005/email. Bulk discounts: 90 days for $2.50 (save 17%), 365 days for $8 (save 34%). Anyone can top up any inbox. Cancel anytime for a pro-rata refund.
Custom subdomains
Buy yourname.stableemail.dev for $5. Send from any address on your subdomain. Add up to 50 authorized wallet signers via SIWX.
Discovery
Resource discovery at /.well-known/x402
Agent instructions at /llms.txt