x402.email
Send transactional emails with crypto payments
Why x402.email?
The first email service built for the crypto era
Pay with Crypto
Use your favorite cryptocurrency to pay for emails. No credit cards, no subscriptions.
Simple Integration
Drop-in replacement for traditional email APIs. Works with thirdweb x402 protocol.
Fair Pricing
Just $0.01 per email. Recipients earn from emails they receive.
API Documentation
Integrate x402.email into your application using the x402 payment protocol
Quick Start
Get started with x402.email in minutes
Endpoint
POST https://x402.email/api/sendRequest Body
{
"recipientEmail": "recipient@example.com",
"subject": "Your email subject",
"textContent": "Plain text email body",
"senderName": "Your Name" // optional
}Usage with thirdweb x402
import { wrapFetchWithPayment } from "thirdweb/x402";
const fetchWithPayment = wrapFetchWithPayment(
fetch,
client,
wallet
);
const response = await fetchWithPayment("/api/send", {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify({
recipientEmail: "recipient@example.com",
subject: "Hello from x402.email",
textContent: "This email was paid for with crypto!"
})
});
const result = await response.json();
if (result.success) {
console.log("Email sent! ID:", result.emailId);
}Response
Success Response:
{
"success": true,
"emailId": "abc123..."
}Error Response:
{
"success": false,
"error": "Error message"
}Pricing
Cost per email: $0.01 USD
💡 A portion of the payment goes to the recipient's wallet, allowing them to earn from received emails.