Unified REST API
One set of endpoints for all users. Create accounts, fetch emails, download attachments โ free and Pro use the same paths.
Unified REST API for creating email addresses and receiving emails. Same endpoints for free and Pro users.
# 1. Get available domains
curl https://api.mail.td/api/domains
# 2. Create a mailbox
curl -X POST https://api.mail.td/api/accounts \
-H "Authorization: Bearer td_xxxxxxxxxxxxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{"address":"myname@mail.td","password":"mypassword123"}'
# 3. Fetch messages (use the account ID from step 2)
curl https://api.mail.td/api/accounts/{account_id}/messages \
-H "Authorization: Bearer td_xxxxxxxxxxxxxxxxxxxx"A structured, LLM-optimized version of this documentation is available at /llms.txt. It includes API routing instructions, endpoint summaries, and integration guidance formatted for accurate code generation. Learn more