Temp mail API
Create temporary email addresses and read their mail from your own program. A JSON REST API with verification codes and activation links already extracted from each message.
Quick start
1. Create a mailbox. Send an empty body to get a random name.
curl -X POST https://email10p.net/api/v1/mailboxes \
-H "Authorization: Bearer $API_KEY"{
"mailbox": {
"id": "cmb2x9k1a0001xk3h5t7q2w8e",
"address": "[email protected]",
"createdAt": "2026-01-31T08:00:00.000Z"
}
}2. Sign up somewhere with that address, then poll the mailbox every few seconds.
curl https://email10p.net/api/v1/mailboxes/[email protected]/messages \
-H "Authorization: Bearer $API_KEY"3. When mail arrives, the verification code is in otpCode and the activation link is in verifyLink. Fetch the message by id for the full content.
{
"address": "[email protected]",
"retentionHours": 24,
"messages": [
{
"id": "cmb2xb41c0003xk3hd8r1m6zp",
"from": { "address": "[email protected]", "name": "Example" },
"subject": "Your verification code",
"preview": "Your verification code is 481920. It expires in 10 minutes.",
"otpCode": "481920",
"verifyLink": null,
"read": false,
"attachments": 0,
"receivedAt": "2026-01-31T08:00:42.000Z"
}
]
}Authentication
Every request needs an API key issued by the email10p.net administrator. Send it in the Authorization header. The X-API-Key header is accepted too.
Authorization: Bearer tmk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxBase URL: https://email10p.net/api/v1
- A key only sees the mailboxes it created. Mailboxes created on the website are not readable through the API.
- Keep the key on your server. A key shipped in browser code is readable by anyone.
Limits and retention
- Each key has a requests-per-minute limit (60 by default). The X-RateLimit-Limit and X-RateLimit-Remaining headers show how many requests you have left.
- Mailboxes created per hour are capped at twice the requests-per-minute limit (120 by default).
- Over the limit you get a 429 with a Retry-After header (seconds to wait).
- Messages are deleted after 24 hours.
- A mailbox with no messages and no API calls for 7 days is deleted.
- A deleted address is held for 30 days; nobody can create it again during that time.
- Polling for new mail every 3 to 5 seconds is enough.
Endpoints
GET/domains
Domains currently accepting mail. The default domain comes first.
Response
{
"domains": [
{ "name": "akarinovel.com", "default": true }
]
}POST/mailboxes
Create a mailbox. Returns 201.
Request body (JSON)
- local (optional)
- The part before @. 3 to 32 characters of a-z, 0-9, dot, underscore, hyphen. Omit for a random name.
- domain (optional)
- A domain from GET /domains. Omit to use the default domain.
Response
{
"mailbox": {
"id": "cmb2x9k1a0001xk3h5t7q2w8e",
"address": "[email protected]",
"createdAt": "2026-01-31T08:00:00.000Z"
}
}GET/mailboxes
Mailboxes created by this key, newest first.
Parameters
- limit (optional)
- Mailboxes per page, 1 to 100. Default 50.
- page (optional)
- Page number, starting at 1.
Response
{
"mailboxes": [
{ "id": "cmb2x9k1a0001xk3h5t7q2w8e", "address": "[email protected]", "createdAt": "2026-01-31T08:00:00.000Z" }
],
"total": 1,
"page": 1,
"limit": 50
}GET/mailboxes/{address}
One mailbox. {address} is the full address or the mailbox id.
DELETE/mailboxes/{address}
Delete a mailbox and every message in it.
Response
{ "deleted": true }GET/mailboxes/{address}/messages
Messages in a mailbox, newest first. List items carry a 140-character preview only.
Parameters
- limit (optional)
- Messages to return, 1 to 100. Default 50.
- since (optional)
- ISO 8601 timestamp. Only messages received after it are returned.
- unread (optional)
- Set to 1 to return unread messages only.
GET/messages/{id}
The full message (text and html). The message is marked as read.
Response
{
"message": {
"id": "cmb2xb41c0003xk3hd8r1m6zp",
"from": { "address": "[email protected]", "name": "Example" },
"to": "[email protected]",
"subject": "Your verification code",
"text": "Your verification code is 481920. It expires in 10 minutes.",
"html": "<p>Your verification code is <b>481920</b>.</p>",
"otpCode": "481920",
"verifyLink": null,
"size": 2214,
"receivedAt": "2026-01-31T08:00:42.000Z",
"attachments": [
{
"id": "cmb2xb41d0004xk3h2n9v4c7s",
"filename": "invoice.pdf",
"contentType": "application/pdf",
"size": 48210,
"url": "https://email10p.net/api/v1/messages/cmb2xb41c0003xk3hd8r1m6zp/attachments/cmb2xb41d0004xk3h2n9v4c7s"
}
]
}
}DELETE/messages/{id}
Delete one message.
Response
{ "deleted": true }GET/messages/{id}/attachments/{attachmentId}
Download an attachment. The response is the raw file, not JSON. Take the url from the message's attachments field.
Errors
Errors return the matching HTTP status and a JSON body with a code for your program and a message for people.
{
"error": {
"code": "address_taken",
"message": "This address is already in use or was released recently.",
"suggestion": "linh.tran.47"
}
}| HTTP | code | Meaning |
|---|---|---|
| 400 | invalid_request | The request body or a parameter is invalid. |
| 400 | domain_unavailable | The domain no longer accepts mail. |
| 401 | unauthorized | The key is missing or wrong. |
| 403 | key_disabled | The administrator disabled this key. |
| 404 | not_found | The mailbox or message does not exist, has expired, or belongs to another key. |
| 409 | address_taken | The address is in use or was deleted recently. The suggestion field offers a free name. |
| 429 | rate_limited | Over the limit. Wait as long as the Retry-After header says. |
| 500 | server_error | Server error. Try again later. |
| 503 | no_domain | The server has no mail domain configured. |