Skip to content
GET /v1/account/new

Create disposable mailbox

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/tempmail-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/tempmail-api/v1/account/new" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/tempmail-api/v1/account/new", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/tempmail-api/v1/account/new");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/tempmail-api/v1/account/new",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "id": "6a1f0a74da099a12b904068e",
        "note": "Use this token (as ?token= or Authorization: Bearer) to read the inbox. The mailbox is disposable and may be purged by mail.tm.",
        "used": 0,
        "quota": 40000000,
        "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpYXQiOjE3ODA0MTkxODgsInJvbGVzIjpbIlJPTEVfVVNFUiJdLCJhZGRyZXNzIjoib2Ewc280cm1od3ZyQHdzaHUubmV0IiwiaWQiOiI2YTFmMGE3NGRhMDk5YTEyYjkwNDA2OGUiLCJtZXJjdXJlIjp7InN1YnNjcmliZSI6WyIvYWNjb3VudHMvNmExZjBhNzRkYTA5OWExMmI5MDQwNjhlIl19fQ.4Nq9EMw5dT75tJJu-vZxga4lrk3Adc62mHnOPt713uf4eRP612-QmWR_6Xtx9xx47prMzO4Ot-sETfwl3MwQKw",
        "address": "[email protected]",
        "password": "Pwx0kg7yt05wwqb7",
        "createdAt": "2026-06-02T16:53:08+00:00"
    },
    "meta": {
        "timestamp": "2026-06-02T16:53:08.948Z",
        "request_id": "0fe6ca5f-34af-45ed-b2db-57ba0829f344"
    },
    "status": "ok",
    "message": "Create disposable mailbox",
    "success": true
}