API Documentation
Predictable REST endpoints with standard JSON envelopes, validation, and rate limits.
Response format
{
"success": true,
"message": "Request completed successfully.",
"data": {},
"meta": {},
"timestamp": "ISO-8601",
"request_id": "uuid"
}Rate limits
- Mailbox create: 10 requests / hour
- Mailbox change & delete: 20 requests / hour
- Inbox refresh: 60 requests / hour
Public endpoints
POST
/api/mailbox/createGenerate a new temporary mailbox. Optional custom username and preferred domain.
{ "custom_username": "optional", "preferred_domain": "optional" }POST
/api/mailbox/changeExpire the current mailbox and create a new one.
{ "mailbox_id": "uuid" }DELETE
/api/mailbox/deleteDelete a mailbox and associated emails.
{ "mailbox_id": "uuid" }GET
/api/mailbox/status?mailbox_id=uuidGet mailbox status, remaining lifetime, and email count.
POST
/api/mailbox/refreshRefresh inbox and check for new messages since a timestamp.
{ "mailbox_id": "uuid", "since": "optional ISO datetime" }GET
/api/inbox?mailbox_id=uuid&limit=20List emails in a mailbox with optional pagination and filters.
GET
/api/email/{id}?mailbox_id=uuidRetrieve a single email by ID.
DELETE
/api/email/{id}Delete a single email.
{ "mailbox_id": "uuid" }GET
/api/system/statusSystem health check — database connectivity and metrics.