Create an inbox
curl -X POST https://tempmailify.com/api/inbox -H 'content-type: application/json' -d '{}'
Returns address, token and expiresAt.
List messages
curl https://tempmailify.com/api/inbox/ADDRESS -H 'authorization: Bearer TOKEN'
Read a message
curl https://tempmailify.com/api/inbox/ADDRESS/messages/ID -H 'authorization: Bearer TOKEN'
The response includes text, HTML, attachments and an auth object with SPF, DKIM and DMARC results.
Other endpoints
GET /api/config: available domains and lifetimePOST /api/inboxwith{"name":"qa-run-1"}: custom addressPOST /api/inbox/ADDRESS/extend: add 24 hours, up to 7 daysDELETE /api/inbox/ADDRESS: delete the inboxGET /api/dns?d=example.com&t=MX: live DNS lookup (MX, SPF, DMARC, DKIM, A, AAAA, NS, TXT)
Efficient polling
Pass ?since=V with the v value from the previous response. If nothing changed you get {"unchanged":true} right away.
FAQ
Is the API free?
Yes, for reasonable use, with rate limits to prevent abuse.
Do I need an API key?
No. Each inbox has its own private token, sent in the Authorization header.
Can I send email through the API?
No. The service is receive-only.