BackTiếng ViệtAPI Playground

TempMail API Documentation

English documentation for API URLs: create temporary mailboxes, list inbox messages, and read email content.

Base URL

https://tempmailapi.io.vn
https://tempmailvip.online

Authentication

Log in, open the API button, then generate an API key.

Header: X-API-Key: YOUR_API_KEY
Query:  ?api_key=YOUR_API_KEY

Do not share your real API key in screenshots or logs.

Rate Limits

There is no daily limit anymore. The API only uses per-minute and per-hour limits for regular users. Admin users are unlimited.

WindowLimit
Per minute300 requests
Per hour10,000 requests
X-API-Usage-Minute: current/300
X-API-Usage-Hour: current/10000

GETDomains

Returns available domains. No API key required.

curl "https://tempmailapi.io.vn/public_api.php?action=domains"
{"success":true,"domains":["tempmailapi.io.vn","apponi.site"]}

GETCreate Email

ParameterRequiredDescription
api_keyYesYour API key
userNoEmail username; omitted means random
domainNoDomain to create the mailbox on
curl -X GET "https://tempmailapi.io.vn/public_api.php?action=create&api_key=YOUR_API_KEY&user=mytest&domain=apponi.site" \
  -H "X-API-Key: YOUR_API_KEY"
{"success":true,"email":"mytest@apponi.site","password":"STRONG_PASSWORD"}

GETList Inbox

ParameterRequiredDescription
api_keyYesYour API key
emailYesFull email address
limitNoMaximum messages, up to 50
curl "https://tempmailapi.io.vn/public_api.php?action=list&api_key=YOUR_API_KEY&email=mytest@apponi.site&limit=20" \
  -H "X-API-Key: YOUR_API_KEY"
{"success":true,"emails":[{"id":1,"uid":42,"position":1,"from":"sender@example.com","subject":"OTP"}],"total":1}

GETRead Email

ParameterRequiredDescription
api_keyYesYour API key
emailYesFull email address
idNoID from list or 1-based position
uidNoStable message UID
email_idNoAlias of id for older clients
curl "https://tempmailapi.io.vn/public_api.php?action=read&api_key=YOUR_API_KEY&email=mytest@apponi.site&uid=42" \
  -H "X-API-Key: YOUR_API_KEY"
{"success":true,"email":{"id":1,"uid":42,"position":1,"subject":"OTP","body_text":"...","body_html":"..."}}

Status Codes

CodeMeaning
200Success
400Invalid parameter or domain not allowed
401Missing or invalid API key
429Rate limit exceeded
500Server error