curl -X POST https://win.oneshotagent.com/v1/tools/email/quote \
-H "Content-Type: application/json" \
-H "payment-signature: <base64 x402 payment>" \
-d '{
"from_address": "[email protected]",
"to_address": "[email protected]",
"subject": "Hello",
"body": "Test email"
}'
curl -X POST https://win.oneshotagent.com/v1/tools/email/quote \
-H "X-Agent-ID: <wallet>" -H "Content-Type: application/json" \
-d '{
"to_address": ["[email protected]"],
"subject": "hi", "body": "..."
}'
# → { "from_address": "[email protected]", "rotation": true, "quote_id": "...", ... }
const response = await fetch(
"https://win.oneshotagent.com/v1/tools/email/quote",
{
method: "POST",
headers: {
"Content-Type": "application/json",
"payment-signature": paymentProof,
},
body: JSON.stringify({
from_address: "[email protected]",
to_address: "[email protected]",
subject: "Hello",
body: "Test email",
}),
},
);
{
"domain": "yourdomain.com",
"registration_fee": 0,
"service_fee": 0.01,
"mailbox_provisioning_fee": 0,
"total_cost": 0.01,
"currency": "USD",
"quote_id": "quote_abc123",
"status": "verified",
"mailbox_mode": "relay"
}
Email
Get Email Quote
Get a price quote for sending an email from a domain you have.
POST
/
v1
/
tools
/
email
/
quote
curl -X POST https://win.oneshotagent.com/v1/tools/email/quote \
-H "Content-Type: application/json" \
-H "payment-signature: <base64 x402 payment>" \
-d '{
"from_address": "[email protected]",
"to_address": "[email protected]",
"subject": "Hello",
"body": "Test email"
}'
curl -X POST https://win.oneshotagent.com/v1/tools/email/quote \
-H "X-Agent-ID: <wallet>" -H "Content-Type: application/json" \
-d '{
"to_address": ["[email protected]"],
"subject": "hi", "body": "..."
}'
# → { "from_address": "[email protected]", "rotation": true, "quote_id": "...", ... }
const response = await fetch(
"https://win.oneshotagent.com/v1/tools/email/quote",
{
method: "POST",
headers: {
"Content-Type": "application/json",
"payment-signature": paymentProof,
},
body: JSON.stringify({
from_address: "[email protected]",
to_address: "[email protected]",
subject: "Hello",
body: "Test email",
}),
},
);
{
"domain": "yourdomain.com",
"registration_fee": 0,
"service_fee": 0.01,
"mailbox_provisioning_fee": 0,
"total_cost": 0.01,
"currency": "USD",
"quote_id": "quote_abc123",
"status": "verified",
"mailbox_mode": "relay"
}
Prices a send from a verified domain you have and locks the sender for /email/send, valid for 1 hour. A quote never registers a domain or creates an address: those are the domain purchase.
Authentication
X-Agent-ID header with your wallet address.
Request body
Omit it and rotation picks a domain and locks its main
address into the quote; a different address on
/email/send returns
400 from_address_mismatch. Pass it to pin one of your addresses: warmup score
and daily_send_limit become a warning. Reputation and limits are per
domain, shared by all its addresses.Response
pinned_domain_warming (pinned domain still warming), pinned_over_limit
(over today’s daily_send_limit) or mailbox_mode_ignored. Advisory; the
send proceeds.HTTP 400, nothing charged, with
requirements naming the setup:no_sending_domain:reasonisnot_owned(the domain is not yours),not_verified,empty(no domain) orexhausted(all warming or over cap). Buy one through the purchase.address_not_set_up:from_addressis not one of the domain’s addresses. Add it through the purchase withaddresses.
curl -X POST https://win.oneshotagent.com/v1/tools/email/quote \
-H "Content-Type: application/json" \
-H "payment-signature: <base64 x402 payment>" \
-d '{
"from_address": "[email protected]",
"to_address": "[email protected]",
"subject": "Hello",
"body": "Test email"
}'
curl -X POST https://win.oneshotagent.com/v1/tools/email/quote \
-H "X-Agent-ID: <wallet>" -H "Content-Type: application/json" \
-d '{
"to_address": ["[email protected]"],
"subject": "hi", "body": "..."
}'
# → { "from_address": "[email protected]", "rotation": true, "quote_id": "...", ... }
const response = await fetch(
"https://win.oneshotagent.com/v1/tools/email/quote",
{
method: "POST",
headers: {
"Content-Type": "application/json",
"payment-signature": paymentProof,
},
body: JSON.stringify({
from_address: "[email protected]",
to_address: "[email protected]",
subject: "Hello",
body: "Test email",
}),
},
);
{
"domain": "yourdomain.com",
"registration_fee": 0,
"service_fee": 0.01,
"mailbox_provisioning_fee": 0,
"total_cost": 0.01,
"currency": "USD",
"quote_id": "quote_abc123",
"status": "verified",
"mailbox_mode": "relay"
}
Domain rotation
Omitfrom_address and the server picks your least recently used eligible
domain and sends from its default_from. Eligible: you own it, its main address
is active, pool_status is active (a warming mailbox domain is paused until
its score reaches 75), provisioning_status is verified,
warmup_score is 60 or higher, or unmeasured, and daily_sent_count plus the recipient count fits under
daily_send_limit today (UTC). A rotation quote counts its recipients toward
daily_sent_count at quote time; a rejected quote gives them back, an unsent
one holds them until the UTC day rolls over.
GET /email/domains lists your pool;
pause and
resume control rotation.