Temp.now API
The Temp.now REST API lets QA pipelines, CI suites, and automation workflows create disposable mailboxes, read verification emails, and subscribe to real-time HTTPS webhooks. Included with Temp.now Pro (US$5/month or US$48/year). Create an API key in your account.
Authentication & Quick Start
Authenticate every request to https://mail-api.temp.now with a bearer token in the Authorization header:
curl https://mail-api.temp.now/v1/mailboxes \
-H "Authorization: Bearer YOUR_API_KEY"
curl https://mail-api.temp.now/v1/mailboxes \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name":"my-inbox"}' REST Endpoints
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /v1/domains | List available mailbox domains |
| GET / POST | /v1/mailboxes | List existing mailboxes or create a new mailbox |
| DELETE | /v1/mailboxes/:id | Delete a mailbox and queue its messages for cleanup |
| GET | /v1/mailboxes/:id/messages?limit=20&offset=0 | Paginate messages in a mailbox |
| GET / DELETE | /v1/mailboxes/:id/messages/:message | Retrieve full message details or delete a message |
| GET | /v1/usage | Check current monthly API quota and storage usage |
Rate Limits & Quotas
30,000 successful API requests per subscription month and 60 requests per minute per account. Multiple API keys
share account quotas. Web inbox use does not consume API requests. Annual plans reset monthly. Exceeding limits
returns HTTP 429 with no automatic overage charges.
Webhooks
Add up to 3 HTTPS endpoints in your account. Events contain message IDs, not email bodies, to minimize sensitive
payload exposure. Delivery is at least once; deduplicate using the X-Tempnow-Event header.
{
"type": "email.received",
"mailbox_id": "...",
"message_id": "...",
"address": "..."
}
Verify X-Tempnow-Signature: compute HMAC-SHA256 of timestamp + "." + raw_request_body
using your webhook signing secret. Reject signatures older than 5 minutes. Failed deliveries retry up to 8 times.
HTTP redirects are not followed.
Retention & Storage
Pro mailboxes retain messages for 30 days, up to 1 GB per account including attachments. Storage-full inboxes reject new messages. Deleting an inbox queues its messages for cleanup, and storage is released once cleanup removes the objects. See Security & Data Handling for details.