Use when an agent must email a person (report, alert, result)
1gateway.dev/v1/agent/email/send
Use when an agent must email a person (report, alert, result). First mail to an address sends a consent request; the message is held and sent if they allow it (7 days). Input: to, subject, text (max 10 KB), sender_name, purpose, webhook, send_at (up to 30 days). Output: id, status, secret. Llama Guard screens; unsafe = not sent, charged. 100/day per wallet. Example: POST {"to":"alex@example.com","
GET
https://1gateway.dev/v1/agent/email/sendUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://1gateway.dev/v1/agent/email/send?purpose=Daily+summary+of+new+DART+filings+you+asked+for&sender_name=Filing+Bot&subject=Nightly+report+is+ready&text=3+new+filings+matched+your+watch+list.&to=alex%40example.com&webhook=https%3A%2F%2Fexample.com%2Fhooks%2Femail");
console.log(await res.json());Example input
{
"purpose": "Daily summary of new DART filings you asked for",
"sender_name": "Filing Bot",
"subject": "Nightly report is ready",
"text": "3 new filings matched your watch list.",
"to": "alex@example.com",
"webhook": "https://example.com/hooks/email"
}