---
title: "Create a temporary test inbox"
method: POST
path: "/api/v1/tools/mail-tester/generate"
tags: ["Mail Tester"]
---

# Create a temporary test inbox

`POST /api/v1/tools/mail-tester/generate`

## Request

- Base URL: `https://firstsales.io`
- URL: `https://firstsales.io/api/v1/tools/mail-tester/generate`
- Auth: none required

Step 1 of a mail test. No request body is required. Returns top-level emailId, emailAddress and expiresAt (Unix milliseconds); the session expires after seven days. Send an email to emailAddress, then poll check with emailId. Rate limit: 10 requests per minute per IP, plus an in-memory 50-per-hour check and a cap of 50 stored sessions created in the previous hour. The hourly in-memory check shares the legacy default limiter bucket. RateLimit headers describe the 10-per-minute wrapper; Retry-After is present only when that wrapper refuses the request.

## Response `200`

The generated test inbox address and expiry.

- object
  - `success` true, required
  - `emailId` string, required
  - `emailAddress` string, email, required
  - `expiresAt` integer, required: Unix time in milliseconds.

## Other responses

- `429`: Minute or hourly limit exceeded. Retry-After is supplied only for the minute-limit refusal.
- `500`: Could not create the test inbox.

---

[API](https://skmtc.dev/firstsales/apis/firstsales-public-api.md) · [All operations](https://skmtc.dev/firstsales/apis/firstsales-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/firstsales/apis/firstsales-public-api/revisions/3856191adf12?raw)
