This API lets you generate temporary email addresses and receive messages. No complex tokens or session management needed - just use the email address.
| Endpoint | API Key | Rate Limit |
|---|---|---|
| POST /api/email/generate | โ Required | Customer's configured limit |
All message endpoints work with just the email address (no token needed after generation).
No need for Postman or curl. Test all endpoints directly in your browser.
API KEY REQUIRED. Generates a new temporary email address.
Requires X-API-Key header with a valid API key.
POST /api/email/generate
Content-Type: application/json
X-API-Key: tmk_abc123xyz789
{}
{
"success": true,
"email": "[email protected]",
"domain": "domain.com",
"ttlMinutes": 60,
"expiresAt": "2026-09-30T22:35:09.418Z"
}
RECOMMENDED. Get the most recent message with FULL body.
GET /api/email/[email protected]/messages/latest
{
"success": true,
"message": {
"id": 1,
"subject": "Welcome",
"text": "Hello! Your verification code is 847291."
}
}
List all messages with subjects only. Use this for polling.
GET /api/email/[email protected]/messages
Access a previously generated email if you lost your session.
POST /api/email/access
Content-Type: application/json
{
"email": "[email protected]"
}
Check if an email session is still valid.
Delete/clear a session when done. Optional but good for privacy.
Check if the API is running. No authentication required.
curl -X POST https://inboxapi.email/api/email/generate \
-H "X-API-Key: tmk_your_api_key_here"
curl https://inboxapi.email/api/email/[email protected]/messages/latest
All error responses follow this format:
{
"success": false,
"error": "Human-readable error message"
}
| Code | Meaning | Cause |
|---|---|---|
| 200 OK | Success | Everything worked |
| 401 Unauthorized | Invalid API key | Missing or invalid X-API-Key header |
| 429 Too Many Requests | Rate limit exceeded | Exceeded your API key's email limit |
| 404 Not Found | Session not found | Email never generated, or session expired |