La API de correo temporal hecha para desarrolladores
Bandejas desechables que puedes controlar desde código: lee el correo con una API REST sencilla, recibe webhooks firmados con HMAC y conéctalas a agentes MCP. Todas las cuentas tienen una clave API gratuita; los planes de pago desde 1,99 €/mes amplían los límites.
# Any address on a CyberTemp domain works: the inbox is created on first read.
# $RANDOM gives you a fresh address, so you never share an inbox with someone else.
curl "https://api.cybertemp.xyz/[email protected]" \
-H "X-API-KEY: tk_..."
# [{"id":"...","from":"[email protected]","subject":"Your code is 482917",
# "text":"...","html":"...","date":"2026-05-17T09:31:00.000Z"}]Pensado para estos flujos de trabajo
La mayoría de quienes usan la API de CyberTemp hacen una de estas tres cosas.
Pruebas de correo en CI/CD
Flujos de OTP para automatización de QA
Agentes de IA e integraciones MCP
Funciones
Autenticación con clave de API
Claves por cuenta y tokens de CLI por dispositivo. Revocables desde el panel.
Webhooks
Elite+Recibe avisos de mensajes nuevos en tu endpoint. Firmados con HMAC.
Extracción de OTP
En cualquier plan, lee el mensaje más reciente con un GET y saca el código con una regex corta (mira los ejemplos de abajo). Desde Core, POST /extract-otp espera el correo y devuelve solo el código.
IMAP
Eco+Conecta tus clientes de correo y herramientas actuales.
Dominios personalizados
Usa el tuyo propio: incluye ayuda con la configuración DNS.
Servidor MCP
Herramientas listas para usar en Claude Desktop y Cursor.
CLI
Próximamente. Hasta que se publique, usa la API REST o el servidor MCP.
SDKs
Bibliotecas cliente para Python, Go y Rust, o HTTP directo desde cualquier lenguaje.
Código real, no pseudocódigo
Esperar un OTP en una prueba de Playwright
import { test, expect } from "@playwright/test";
const API = "https://api.cybertemp.xyz";
const headers = { "X-API-KEY": process.env.CYBERTEMP_API_KEY! };
// Polls /getMail until the newest message contains a 4-8 digit code.
async function waitForOtp(email: string, timeoutMs = 30_000) {
const deadline = Date.now() + timeoutMs;
while (Date.now() < deadline) {
const res = await fetch(`${API}/getMail?email=${encodeURIComponent(email)}`, { headers });
if (!res.ok) throw new Error(`CyberTemp API returned ${res.status}: ${await res.text()}`);
const mails: { subject: string; text: string }[] = await res.json();
const otp = mails[0] && `${mails[0].subject}\n${mails[0].text}`.match(/\b\d{4,8}\b/);
if (otp) return otp[0];
await new Promise((r) => setTimeout(r, 2000));
}
throw new Error("Timed out waiting for the OTP email");
}
test("signup verifies via OTP", async ({ page }) => {
const email = `e2e${Date.now()}@cybertemp.xyz`;
await page.goto("https://example.com/signup");
await page.fill("#email", email);
await page.click("button[type=submit]");
const otp = await waitForOtp(email);
await page.fill("#otp", otp);
await expect(page).toHaveURL(/dashboard/);
});Receptor de webhooks (planes Elite y Team)
Suscribe un endpoint HTTPS para recibir un POST firmado con HMAC-SHA256 cada vez que llegue un mensaje a una de tus bandejas. Cada entrega se intenta una vez (10 segundos de tiempo límite) y los fallos no se reintentan, así que consulta también GET /getMail de vez en cuando para no perderte nada.
message.received— llega un correo nuevo a una de tus bandejastest_ping— lanzado desde el botón «Probar» del panel
- X-Cybertemp-Signature: sha256=<hmac_hex>
- X-Cybertemp-Event: message.received
- X-Cybertemp-Delivery: <unique_id>
- Content-Type: application/json
- User-Agent: Cybertemp-Webhook/1.0
{
"id": "7c4f...",
"type": "message.received",
"timestamp": "2026-05-17T09:31:00.000Z",
"data": {
"inbox_id": "[email protected]",
"inbox_address": "[email protected]",
"message_id": "9a1b...",
"from": "[email protected]",
"to": "[email protected]",
"subject": "Your verification code",
"snippet": "Your code is...",
"received_at": "2026-05-17T09:31:00.000Z"
}
}import crypto from "node:crypto";
import express from "express";
const app = express();
// IMPORTANT: keep the raw buffer for HMAC. Express's json() throws it away.
app.use("/webhooks/cybertemp",
express.raw({ type: "application/json" }));
app.post("/webhooks/cybertemp", (req, res) => {
const header = req.header("x-cybertemp-signature") || "";
const expected = "sha256=" + crypto
.createHmac("sha256", process.env.CT_WEBHOOK_SECRET)
.update(req.body) // req.body is a Buffer thanks to express.raw
.digest("hex");
// timingSafeEqual throws on a length mismatch, so check the length first
// (a missing or truncated header must be a 401, not a 500).
const a = Buffer.from(header);
const b = Buffer.from(expected);
if (a.length !== b.length || !crypto.timingSafeEqual(a, b)) {
return res.status(401).end();
}
const event = JSON.parse(req.body.toString("utf8"));
console.log(event.data.from, "→", event.data.subject);
res.status(200).end();
});Gestiona los endpoints y los secretos de firma en Ajustes → Webhooks. Cada endpoint tiene un botón Probar que envía un evento de prueba, para que puedas comprobar la verificación de la firma sin esperar a un correo real.
Flujo de agente mediante MCP
User: Sign me up at acme.test with a throwaway email.
Wait for the verification code and paste it back.
Agent:
- create_inbox() -> [email protected]
- POST acme.test/signup { email: [email protected] }
- wait_for_message([email protected], timeout=60)
-> "Your code is 482917"
- POST acme.test/verify { otp: 482917 }
Done.Empieza en 3 pasos
Registrarse
Crea una cuenta gratuita. No se requiere tarjeta de crédito.
RegistrarseConseguir una clave de API
Cualquier cuenta puede crear claves en Ajustes → Claves API. Las claves gratuitas tienen los límites del plan gratuito; los planes de pago los amplían.
Conseguir una clave de APIHacer una petición
curl -H "X-API-KEY: tk_..." \
"https://api.cybertemp.xyz/[email protected]"Desde 1,99 €/mes
Empieza gratis con una clave API. Los planes de pago amplían los límites de peticiones y de bandejas; Elite añade webhooks.