API Documentation
Use our REST API to create and manage temporary email accounts programmatically.
API access requires a Developer plan ($4.99/month). Upgrade now
Base URL
https://tmpbx.siteAuthentication
Most endpoints require a token parameter. Get your token when creating an account.
GET /api/emails?token=YOUR_ACCOUNT_TOKENQuick Start
1. Create an account:
curl -X POST https://tmpbx.site/api/accounts \
-H "Content-Type: application/json" \
-d '{"domain": "milonfub.xyz"}'2. Check inbox:
curl "https://tmpbx.site/api/emails?token=YOUR_TOKEN"3. Read email:
curl "https://tmpbx.site/api/emails?token=YOUR_TOKEN&id=EMAIL_ID"Endpoints
GET
/api/accounts?action=domainsGet available email domains
Response:
{ "domains": ["milonfub.xyz", "kennedyqueen.com"] }POST
/api/accountsCreate a new temporary email account
Request Body:
{ "username": "myname", "domain": "milonfub.xyz", "password": "optional" }Response:
{ "account": { "id": "...", "email": "myname@milonfub.xyz", "token": "...", "password": "..." } }POST
/api/accountsLogin to existing account
Request Body:
{ "action": "login", "email": "user@milonfub.xyz", "password": "pass123" }Response:
{ "account": { "id": "...", "email": "...", "token": "..." } }GET
/api/accounts?token=YOUR_TOKENAuth RequiredGet account details
Response:
{ "account": { "id": "...", "email": "...", "username": "...", "domain": "..." } }GET
/api/emails?token=YOUR_TOKENAuth RequiredGet all emails for an account
Response:
{ "emails": [{ "id": "...", "from_address": "...", "subject": "...", "body": "..." }] }GET
/api/emails?token=YOUR_TOKEN&id=EMAIL_IDAuth RequiredGet a specific email
Response:
{ "email": { "id": "...", "from_address": "...", "subject": "...", "body": "...", "html_body": "..." } }DELETE
/api/accounts?token=YOUR_TOKENAuth RequiredDelete account and all emails
Response:
{ "message": "Account deleted" }DELETE
/api/emails?token=YOUR_TOKEN&id=EMAIL_IDAuth RequiredDelete a specific email
Response:
{ "message": "Email deleted" }Rate Limits
| Plan | Requests/min | Accounts/day |
|---|---|---|
| Free | 10 | 5 |
| Premium | 60 | 50 |
| Developer | 300 | Unlimited |