About this endpoint
What it does
Creates a temporary email address. You can control the email lifetime with the time query parameter and optionally provide a domain; the response returns the generated email data inside a JSON object.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| time | ENUM | No | Lifetime of the temporary email. Allowed values: 10min, 1hour, 1day, permanent. Default: 10min. |
| domain | String | No | Domain to use for the temporary email address. |
Response
Returns a JSON object with top-level data and success fields. The data field is an object containing meta and email objects; success is a boolean indicating whether the request was successful. The schema also defines top-level message and meta fields in the wrapper object.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object | No | Response payload object. Contains meta and email objects. |
| data.meta | Object | No | Metadata for the created temporary email. Contains tier, user_id, and request_time. |
| data.meta.tier | String | No | The tier associated with the request. |
| data.meta.user_id | String | No | The user identifier. |
| data.meta.request_time | String | No | Request timestamp in date-time format. |
| data.email | Object | No | Temporary email details. Contains id, domain, address, time_tier, created_at, expires_at, time_remaining, and is_custom_domain. |
| data.email.id | String | No | Email identifier in UUID format. |
| data.email.domain | String | No | Email domain. |
| data.email.address | String | No | Full email address. |
| data.email.time_tier | String | No | Time tier used for the email. |
| data.email.created_at | String | No | Creation timestamp in date-time format. |
| data.email.expires_at | String | No | Expiration timestamp in date-time format. |
| data.email.time_remaining | Object | No | Remaining time for the email. Contains minutes, seconds, total_ms, and human_readable. |
| data.email.time_remaining.minutes | Integer | No | Remaining minutes. |
| data.email.time_remaining.seconds | Integer | No | Remaining seconds. |
| data.email.time_remaining.total_ms | Integer | No | Remaining time in milliseconds. |
| data.email.time_remaining.human_readable | String | No | Human-readable remaining time. |
| data.email.is_custom_domain | Boolean | No | Indicates whether a custom domain was used. |
| data.success | Boolean | No | Indicates whether the operation succeeded. |
| meta | Object | No | Additional metadata about the request. Contains timestamp. |
| meta.timestamp | String | No | Request timestamp in date-time format. |
| message | String | No | Descriptive response message. |
| success | Boolean | No | Indicates if the request was successful. |