The name of the inbox (part before @junkinbox.cc). Can contain letters, numbers, hyphens, dots, and underscores.
Example Request
# Get emails from [email protected]
curl "https://junkinbox.cc/api/inbox/demo/emails" \
-H "Accept: application/json"
Response
Success (200)
{
"inbox": "demo",
"emails": [
{
"id": "64f7e1234567890abcdef123",
"from": "[email protected]",
"subject": "Confirm your account",
"body": "Click the link below to verify your email address...",
"html": "<html><body>Click <a href='...'>here</a></body></html>",
"createdAt": "2025-08-10T17:30:00Z"
}
]
}
Response Fields
inboxstring
The inbox name that was requested
emailsarray
Array of email objects (empty if no emails)
emails[].idstring
Unique identifier for the email
emails[].fromstring
Sender's email address
emails[].subjectstring
Email subject line
emails[].bodystring
Plain text content of the email
emails[].htmlstring
HTML content of the email (if available)
emails[].createdAtstring
ISO 8601 timestamp when email was received
🔐 Authentication
The TrashInbox API is completely open and free. No API keys, tokens, or authentication required.
# No authentication needed - just make the request
curl "https://junkinbox.cc/api/inbox/mytest/emails"
Why no authentication? TrashInbox is designed for disposable, temporary email addresses. Since all emails are public and auto-delete after 24 hours, there's no sensitive data to protect.
⏱️ Rate Limits
API requests are limited to prevent abuse:
Limit100 requests
Per 15-minute window per IP address
Rate limit headers are included in every response: