x402 Machine to Machine Email Server
mail.cusethejuice.com · v1.3.6

What this is. A real mail domain (Postfix, Maildir, optional Dovecot) behind paid HTTP flows: create mailboxes with x402, send mail, and list, fetch, or parse messages. It turns standard email into a metered API your automation can call.

Why machines use it. Agents often need to reach another organization without registering a separate OAuth app or bespoke webhook for every counterparty. SMTP is universal, asynchronous, and works across trust boundaries; the same inbox can receive mail from humans and software. x402 charges per operation so programmatic access stays practical without open-ended abuse.

Mailbox: list, search, get, parse (x402)

Human flow: submit details, pay via x402, then enter your mailbox password. Use Search mailbox to find text, or ids from List messages in Get / Parse.

1) List messages ( USDC)

Check status on Agentic Market

3) Get message ( USDC)

Check status on Agentic Market

4) Parse attachments ( USDC)

Check status on Agentic Market

5) Check mailbox quota ( USDC)

Check status on Agentic Market

Account management

Reset password, recovery email, download Maildir as a zip, or account recovery. Each price is configurable in the server policy configuration: / / / / USDC.

Reset password

Check status on Agentic Market

You must know your current password.

Add recovery email

Check status on Agentic Market

While logged in: register an address on a domain not hosted on this server (e.g. personal mail; USDC).

Download mailbox (zip)

Check status on Agentic Market

Link expires in 1 hour or after 3 downloads.

Trial balance

Check status on Agentic Market

Check remaining promo credit and expiry (requires mailbox username + password).

Account recovery (forgot password)

Check status on Agentic Market

After you pay the fee on the next page, the server emails a code to your registered recovery address ( USDC). Then use Complete recovery below.

Complete recovery (have code)

Check status on Agentic Market

Compose with email and username, pay the fee ( USDC), then the next page asks for your recovery code and new password — the code field is only shown after payment.

Mailbox actions (move, delete, forward, reply, folders)

Each action has its own setting in the server policy configuration; if unset, the server uses the default mailbox action price ( USDC). Flow: submit → x402 payment → mailbox password. Forward is two steps: compose here, then pay on the next page.

Move message ( USDC)

Check status on Agentic Market

Delete message ( USDC)

Check status on Agentic Market

Forward message ( USDC)

Check status on Agentic Market

Compose recipients and optional note; after submit you are redirected to pay, then enter your password.

Reply ( USDC)

Check status on Agentic Market

Reply all ( USDC)

Check status on Agentic Market

Create folder ( USDC)

Check status on Agentic Market

Rename folder ( USDC)

Check status on Agentic Market

Delete folder ( USDC)

Check status on Agentic Market

Outbound send uses Send message ( USDC): compose → pay → password. Check send endpoint on Agentic Market

Machine POST Endpoints

Automations should use POST with JSON and optional X-PAYMENT header.

{
  "list": "/admin-api/machine/request/list",
  "message": "/admin-api/machine/request/message",
  "attachments": "/admin-api/machine/request/attachments",
  "quota": "/admin-api/machine/request/quota",
  "get_quota": "/admin-api/machine/mailboxes/{email}/quota",
  "send": "/admin-api/machine/request/send",
  "move": "/admin-api/machine/request/move",
  "delete": "/admin-api/machine/request/delete",
  "forward": "/admin-api/machine/request/forward",
  "reply": "/admin-api/machine/request/reply",
  "reply_all": "/admin-api/machine/request/reply-all",
  "folder_create": "/admin-api/machine/request/folder/create",
  "folder_rename": "/admin-api/machine/request/folder/rename",
  "folder_delete": "/admin-api/machine/request/folder/delete",
  "mailbox_reset_password": "/admin-api/machine/request/mailbox/reset-password",
  "mailbox_download": "/admin-api/machine/request/mailbox/download",
  "trial_balance": "/admin-api/machine/request/trial-balance",
  "mailbox_recovery_email": "/admin-api/machine/request/mailbox/recovery-email",
  "account_recovery_request": "/admin-api/machine/request/account-recovery/request",
  "account_recovery_compose_human": "/admin-api/machine/human/account-recovery/compose",
  "account_recovery_complete": "/admin-api/machine/request/account-recovery/complete",
  "body_fields_list_message": ["email", "username", "password", "limit", "message_id"],
  "body_fields_quota": ["email", "username", "password"],
  "body_fields_send": ["email", "username", "password", "to", "cc", "bcc", "subject", "body"],
  "body_fields_account_recovery_request": ["email", "username"],
  "optional_account_recovery_request_fields": ["recovery_email"]
}

Machine clients can still use JSON POST APIs directly at /admin-api/machine/request/* with X-PAYMENT header.