Skip to content

Signing up for Discord? Some of our domains are accepted there. See which ones on the Domains page.

CyberTemp

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.

Email Retrieval
Temporary Inboxes
Multiple Domains
Subscription Plans

How to Use Our API (It's Easy!)

Create a free API key and send it with every request. Your plan only changes two limits: requests per second and how many inboxes you can keep at once.

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-KEY header, 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_here
One key for every plan
Upgrading doesn't change your code: the same key simply gets higher limits.

How to Obtain an API Key

API keys are free for every account, Free plan included. It takes about a minute:

1

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.

2

Access Settings

Click your profile avatar in the top-right corner, then select "Settings" from the dropdown menu.

3

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
Public API (general emails, domains): With 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 a key? API keys are free for every account and can be managed in Settings.

Need more requests per second or more inboxes? Compare plans:

View subscription plans

API Rate Limits & Features

Free tier has limits, subscriptions unlock higher performance

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.

Remember: Free Tier Always Available!
The Free plan never expires. Upgrade only when you need more requests per second, more inboxes at once, OTP extraction (Core) or webhooks (Elite).

Code Examples

Implementation examples in different languages
Showing code for:GET/getMail· Get Email ContentPick another endpoint
// 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

Get HMAC-SHA256-signed POSTs at your endpoint whenever a message lands in one of your inboxes.
Elite + Team only
Webhooks are part of the Elite plan (€4.99/month). Team owners and members get them too. View subscription plans

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

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

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 → Webhooks

Client libraries

Published wrappers around the same REST API. Each is a thin client: anything they can do, a plain HTTP request can do too.
Python
PyPI
Install
pip install cybertemp
Use
import 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()
Install
go get github.com/sexfrance/cybertemp-go
Use
import 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)
Install
cargo add cybertemp tokio --features tokio/full
Use
use 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?;
Node / TypeScript
Install

No package needed: Node 18+ has fetch built in.

Use
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
Hitting a limit returns HTTP 402 (concurrent inbox cap) or 429 (rate limit) with a JSON error body, so your CI logs show which limit you hit instead of a bare failure.

API endpoints

GET/getMail

Every plan (API key)

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):

email
required

Target email address (e.g. [email protected]). Auto-created if new.

limit
optional

Number of emails to return (default 25, max 100).

offset
optional

Pagination offset (default 0).

Example Request:

GET /[email protected]&limit=50&offset=100
X-API-KEY: your_api_key_here

Example 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"
  }
]