API Documentation
Base URL:https://api.cybertemp.xyzEvery account gets a free API key. Paid plans raise your request rate and how many inboxes you can keep.
How to Use Our API (It's Easy!)
Public API: Accessing General Email Data
Endpoints like getMail or getDomains work the same way on every plan:
- Free plan: free API key, 10 requests per second and up to 5 inboxes at a time.
- Paid plans: Use your API key in the
X-API-KEYheader, exactly as on Free. You get more requests per second and more inboxes at once, depending on your plan.
X-API-KEY: tk_your_api_key_hereOne key for every plan
How to Obtain an API Key
API keys are free for every account, Free plan included. It takes about a minute:
Create a free account (or sign in)
Sign up with your email in a few seconds, or sign in if you already have an account.
Access Settings
Click your profile avatar in the top-right corner, then select "Settings" from the dropdown menu.
Generate API Key
Scroll down to the "API Keys" section and click the "Generate New Key" button. Copy and securely store your API key.
API Access: Super Simple Guide
X-API-KEY on every request. Your plan sets how many requests per second you can make and how many inboxes you can keep.Need more requests per second or more inboxes? Compare plans:
View subscription plansAPI Rate Limits & Features
Every request needs an API key. Your plan sets two limits: requests per second and how many inboxes you can keep at once. Going over returns a clear 429 or 402 error.
Free Tier
API key required · 5 inboxes
Eco Plan
€1.99/month · 25 inboxes
Core Plan
€2.99/month · 100 inboxes
Elite Plan
€4.99/month · Unlimited inboxes
Team Plan
€49/month · 5 seats · Elite features for every seat
Remember: Free Tier Always Available!
Code Examples
// Requires your API key (free for every account)
async function getEmails(apiKey, email, limit = 25, offset = 0) {
const headers = { 'X-API-KEY': apiKey };
const params = new URLSearchParams({ email });
if (limit !== 25) params.append('limit', limit.toString());
if (offset > 0) params.append('offset', offset.toString());
const url = `https://api.cybertemp.xyz/getMail?${params}`;
const response = await fetch(url, { headers });
if (!response.ok) { const err = await response.text(); throw new Error('HTTP error! ' + response.status + ': ' + err); }
return response.json();
}Prefer a client library? Jump to Client libraries
Webhooks
Elite + Team only
Event types
message.receivedA new email lands in one of your inboxes.test_pingFired from the dashboard 'Test' button — useful for verifying your endpoint before real mail arrives.
Request headers
Payload shape
{
"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"
}
}Verify the signature
HMAC the raw request body with your signing secret and compare against the X-Cybertemp-Signature header using constant-time compare.
import crypto from "node:crypto";
import express from "express";
const app = express();
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)
.digest("hex");
// timingSafeEqual throws on a length mismatch: check it first so a
// missing or forged header is a clean 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"));
// ...handle event...
res.status(200).end();
});Retry policy
Each message.received delivery is tried once, with a 10-second timeout. A 2xx response counts as success and resets the failure counter shown in your dashboard. Failed deliveries are not retried, so poll GET /getMail now and then to catch anything you missed.
Manage your webhook endpoints + signing secrets
Open Settings → WebhooksClient libraries
pip install cybertempimport time
from cybertemp import CyberTemp
client = CyberTemp(api_key="tk_...")
emails = client.get_email_content(f"test{int(time.time())}@cybertemp.xyz")
domains = client.get_domains()go get github.com/sexfrance/cybertemp-goimport cybertemp "github.com/sexfrance/cybertemp-go"
c := cybertemp.New("tk_...")
inbox, _ := c.CreateInbox(ctx, nil)
msg, _ := c.WaitForMessage(ctx, inbox.ID, 60*time.Second, nil)cargo add cybertemp tokio --features tokio/fulluse cybertemp::Client;
use std::time::Duration;
let client = Client::new("tk_...");
let inbox = client.create_inbox().await?;
let msg = client.wait_for_message(&inbox.id, Duration::from_secs(60)).await?;No package needed: Node 18+ has fetch built in.
const email = `test${Date.now()}@cybertemp.xyz`; // created on first read
const res = await fetch(
`https://api.cybertemp.xyz/getMail?email=${email}`,
{ headers: { "X-API-KEY": process.env.CYBERTEMP_API_KEY! } },
);
const emails = await res.json(); // [{ id, from, subject, text, html, date }]Plan limits return clear errors
API endpoints
GET/getMail
All-in-one Email API! This single endpoint does everything you need:
How getEmails Works:
- Auto-creates inbox if it doesn't exist.
- Retrieves all emails for the address.
- Returns complete content (HTML, Text, Subject, etc.).
- Use a CyberTemp domain or your own verified custom domain. Other domains never receive mail but still use up an inbox slot. See the list:
- Pagination support for large inboxes.
Authentication:
- API Key: Required. Add this header:
X-API-KEY
Parameters (Query String):
emailTarget email address (e.g. [email protected]). Auto-created if new.
limitNumber of emails to return (default 25, max 100).
offsetPagination offset (default 0).
Example Request:
GET /[email protected]&limit=50&offset=100
X-API-KEY: your_api_key_hereExample Response:
[
{
"id": "email:xyz",
"from": "[email protected]",
"to": "[email protected]",
"subject": "Test Email",
"text": "Email content",
"html": "<p>Email content</p>",
"date": "2024-01-01T00:00:00.000Z"
}
]