Authentication
Requires X-Agent-ID header with your wallet address.
Request Body
to_address
string | string[]
required
Recipient email address(es)
Email body content (plain text)
Response
Domain extracted from from_address
Whether this is a new domain that needs registration
Whether the domain is available for registration
Cost to register the domain (USD)
Cost to send the email (USD)
Total cost (registration + service fees)
Quote ID to use in the send request
Domain status: verified, provisioning, unprovisioned, or blocked
curl -X POST https://win.oneshotagent.com/v1/tools/email/quote \
-H "Content-Type: application/json" \
-H "X-Payment-Proof: <your_x402_signature>" \
-d '{
"from_address": "[email protected]",
"to_address": "[email protected]",
"subject": "Hello",
"body": "Test email"
}'
{
"domain": "yourdomain.com",
"is_new": true,
"available": true,
"registration_fee": 10.00,
"service_fee": 0.01,
"total_cost": 10.01,
"currency": "USD",
"quote_id": "quote_abc123",
"status": "unprovisioned"
}
Bulk Usage
You can request a quote for sending independent emails to multiple recipients in a single request. Pass an array of strings to to_address.
The service_fee will scale based on the number of recipients. The registration_fee (if applicable) remains a one-time cost for the domain.
Notes
- Domain provisioning happens automatically during the send request
- Quote is valid for 1 hour
- For existing verified domains,
registration_fee will be 0