API for developers
Use the API to create temporary inboxes, read messages, and extend address expiry. Rate limits apply per IP.
Create inbox
POST https://10genmail.com/api/inbox
No body. Returns a new address and empty messages.
{
"address": "quick-fox-abc123@10genmail.com",
"slug": "quick-fox-abc123",
"createdAt": 1234567890123,
"expiresAt": 1234568490123,
"ttlSeconds": 600,
"messages": []
}Rate limit: 10 requests per minute per IP.
Get inbox
GET https://10genmail.com/api/inbox?address=...
Query: address (URL-encoded email). Returns inbox and messages, or 404 if expired.
{
"address": "quick-fox-abc123@10genmail.com",
"slug": "quick-fox-abc123",
"createdAt": 1234567890123,
"expiresAt": 1234568490123,
"ttlSeconds": 420,
"messages": [
{
"id": "msg-...",
"from": { "name": null, "email": "sender@example.com" },
"subject": "Hello",
"text": "...",
"html": null,
"date": "...",
"timestamp": 1234567900000
}
]
}Rate limit: 120 requests per minute per IP.
Extend inbox
POST https://10genmail.com/api/inbox/extend
Body: { "address": "..." }. Adds 10 minutes, up to 30 minutes total from creation. Returns updated inbox.
Rate limit: same as get (120/min).