Resumen y Autenticación API
Bienvenido a la API para desarrolladores de tempmailto.com para generar buzones temporales y automatizar pruebas QA.
URL Base
Autenticación
Envía tu clave API en la cabecera Authorization (recomendado: Authorization: Bearer YOUR_API_KEY) o X-API-Key para evitar exponer credenciales en URLs. Se mantiene compatibilidad con rutas heredadas.
| Parámetro de autenticación | Tipo | Ubicación | Ejemplo |
|---|---|---|---|
| Authorization / X-API-Key | string | Cabecera HTTP (Recomendado) | Bearer YOUR_API_KEY |
| apiKey | string | Segmento URL (heredado) | YOUR_API_KEY |
GET Dominios activos
Fetch list of all allowed domain names configured on the platform that can be used to generate temporary mailboxes.
Parámetros de ruta
| Parámetro | Tipo | Estado | Descripción |
|---|---|---|---|
| apiKey | string | Requerido | Your secret API authorization key. |
| type | string | Requerido | Domain filter type. Accepted values: all, free, premium. |
curl -X GET "https://tempmailto.com/api/domains/all" -H "Authorization: Bearer YOUR_API_KEY"
{
"status": true,
"data": {
"domains": [
{
"domain": "tempmailto.com",
"type": "Free"
}
]
}
}
POST Generar nuevo correo
Instantly generate and register a new random temporary email address address.
Parámetros de ruta
| Parámetro | Tipo | Estado | Descripción |
|---|---|---|---|
| apiKey | string | Requerido | Your secret API authorization key. |
curl -X POST "https://tempmailto.com/api/emails" -H "Authorization: Bearer YOUR_API_KEY"
{
"status": true,
"data": {
"id": 142,
"email": "[email protected]",
"domain": "tempmailto.com",
"ip": "127.0.0.1",
"fingerprint": "f38b25...",
"expire_at": "2026-06-20 13:45:00",
"created_at": "2026-06-20 13:35:00",
"email_token": "eyJpdiI..."
}
}
POST Personalizar dirección
Transition an existing email to a customized address with a specific username and active domain.
Parámetros de ruta
| Parámetro | Tipo | Estado | Descripción |
|---|---|---|---|
| apiKey | string | Requerido | Your secret API authorization key. |
| string | Requerido | The current temporary email address you want to change. | |
| username | string | Requerido | The customized alias/username prefix for the new address. |
| domain | string | Requerido | One of the active domain names fetched from the active domains endpoint. |
curl -X POST "https://tempmailto.com/api/emails/[email protected]/john_doe/tempmailto.com" -H "Authorization: Bearer YOUR_API_KEY"
{
"status": true,
"data": {
"id": 143,
"email": "[email protected]",
"domain": "tempmailto.com",
"ip": "127.0.0.1",
"fingerprint": "f38b25...",
"expire_at": "2026-06-20 13:45:00",
"created_at": "2026-06-20 13:35:00"
}
}
POST Eliminar correo temporal
Instantly release and expire a temporary email address to delete all cached inbox data.
Parámetros de ruta
| Parámetro | Tipo | Estado | Descripción |
|---|---|---|---|
| apiKey | string | Requerido | Your secret API authorization key. |
| string | Requerido | The active temporary email address to be removed. |
curl -X POST "https://tempmailto.com/api/emails/[email protected]" -H "Authorization: Bearer YOUR_API_KEY"
{
"status": true,
"message": "Email has been successfully deleted."
}
GET Mensajes de la bandeja
Retrieve all message metadata and message summaries received inside the inbox of the specified temporary address.
Parámetros de ruta
| Parámetro | Tipo | Estado | Descripción |
|---|---|---|---|
| apiKey | string | Requerido | Your secret API authorization key. |
| string | Requerido | The temporary email address to fetch the messages for. |
curl -X GET "https://tempmailto.com/api/messages/[email protected]" -H "Authorization: Bearer YOUR_API_KEY"
{
"status": true,
"data": [
{
"id": "M2ZkMXQ1",
"subject": "Verify your Account",
"from": "Service Provider",
"from_email": "[email protected]",
"receivedAt": "2026-06-20 13:40:00",
"is_seen": false,
"html": true
}
]
}
GET Detalle del mensaje
Retrieve the full HTML/plain text body content, sender fields, headers, and attachments list of a specific message ID.
Parámetros de ruta
| Parámetro | Tipo | Estado | Descripción |
|---|---|---|---|
| apiKey | string | Requerido | Your secret API authorization key. |
| messageId | string | Requerido | The unique identifier key of the message. |
curl -X GET "https://tempmailto.com/api/messages/message/M2ZkMXQ1" -H "Authorization: Bearer YOUR_API_KEY"
{
"status": true,
"data": {
"id": "M2ZkMXQ1",
"subject": "Verify your Account",
"from": "Service Provider",
"from_email": "[email protected]",
"to": "[email protected]",
"receivedAt": "2026-06-20 13:40:00",
"is_seen": true,
"html": true,
"content": "<p>Hi John, your verification code is <b>857102</b></p>",
"attachments": []
}
}
POST Eliminar mensaje
Permanently purge and delete a specific message from the temp inbox storage.
Parámetros de ruta
| Parámetro | Tipo | Estado | Descripción |
|---|---|---|---|
| apiKey | string | Requerido | Your secret API authorization key. |
| messageId | string | Requerido | The unique identifier key of the message to be deleted. |
curl -X POST "https://tempmailto.com/api/messages/message/M2ZkMXQ1" -H "Authorization: Bearer YOUR_API_KEY"
{
"status": true,
"message": "Message has been successfully deleted."
}