सामग्री पर जाएँ

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

CyberTemp
डेवलपर्स

डेवलपर्स के लिए बना टेम्प मेल API

कोड से चलाए जा सकने वाले डिस्पोजेबल इनबॉक्स: सरल REST API से मेल पढ़ें, HMAC-हस्ताक्षरित वेबहुक पाएँ, MCP एजेंट से जोड़ें। हर खाते को मुफ़्त API कुंजी मिलती है; €1.99/माह से शुरू होने वाले सशुल्क प्लान सीमाएँ बढ़ाते हैं।

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

इन वर्कफ़्लो के लिए बनाया गया

CyberTemp API के अधिकांश उपयोगकर्ता इन तीन में से कोई एक काम करते हैं।

CI/CD में ईमेल परीक्षण

Playwright, Puppeteer या Cypress रन में डिस्पोजेबल इनबॉक्स उपयोग करें। न साझा इनबॉक्स, न टेस्ट फ़िक्स्चर में लीक हुए सीक्रेट।

QA ऑटोमेशन के लिए OTP प्रवाह

अपने साइन-अप फ़्लो को एक नए पते पर लगाएँ, GET /getMail को पोल करें और नवीनतम संदेश से कोड पढ़ें। कोई साझा इनबॉक्स नहीं, कोई अस्थिर टेस्ट मेल सर्वर नहीं।

AI एजेंट और MCP एकीकरण

हमारा MCP सर्वर कुछ ही सेकंड में Claude या Cursor में जोड़ें। एजेंट स्वयं साइन अप कर सकते हैं, पुष्टि कर सकते हैं और ईमेल-आधारित प्रवाह पूरे कर सकते हैं।

विशेषताएँ

API कुंजी प्रमाणीकरण

प्रति-खाता कुंजियाँ, प्रति-डिवाइस CLI टोकन। डैशबोर्ड से रद्द किए जा सकते हैं।

वेबहुक

Elite+

अपने एंडपॉइंट पर नए संदेश की सूचना पाएँ। HMAC-हस्ताक्षरित।

OTP निष्कर्षण

किसी भी प्लान पर, एक GET से नया संदेश पढ़ें और एक छोटे regex से कोड निकालें (नीचे उदाहरण देखें)। Core और उससे ऊपर, POST /extract-otp ईमेल का इंतज़ार करता है और सिर्फ़ कोड लौटाता है।

IMAP

Eco+

अपने मौजूदा मेल क्लाइंट और टूल जोड़ें।

कस्टम डोमेन

अपना डोमेन लाएँ — DNS सेटअप सहायता शामिल है।

MCP सर्वर

Claude Desktop और Cursor के लिए तैयार टूल।

CLI

जल्द आ रहा है। तब तक REST API या MCP सर्वर इस्तेमाल करें।

SDKs

Python, Go और Rust के लिए क्लाइंट लाइब्रेरी, या किसी भी भाषा से सामान्य HTTP।

असली कोड, छद्म-कोड नहीं

Playwright टेस्ट में OTP की प्रतीक्षा करें

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/);
});

वेबहुक रिसीवर (Elite और Team प्लान)

एक HTTPS एंडपॉइंट सब्सक्राइब करें, ताकि आपके किसी इनबॉक्स में संदेश आते ही आपको HMAC-SHA256 से साइन किया हुआ POST मिले। हर डिलीवरी एक बार भेजी जाती है (10 सेकंड टाइमआउट) और फ़ेल होने पर दोबारा नहीं भेजी जाती, इसलिए कुछ छूटे नहीं, इसके लिए समय-समय पर GET /getMail भी कॉल करें।

इवेंट प्रकार
  • message.received — आपके किसी इनबॉक्स में नया ईमेल आता है
  • test_ping — डैशबोर्ड के "Test" बटन से चलाया गया
हम जो हेडर भेजते हैं
  • 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();
});

एंडपॉइंट और साइनिंग सीक्रेट यहाँ प्रबंधित करें: सेटिंग्स → वेबहुक. हर एंडपॉइंट पर एक “परीक्षण” बटन है जो एक टेस्ट इवेंट भेजता है, ताकि आप असली मेल का इंतज़ार किए बिना अपना सिग्नेचर सत्यापन जाँच सकें।

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.

MCP सर्वर

3 चरणों में शुरुआत

चरण 1

साइन अप करें

मुफ़्त खाता बनाएँ। किसी क्रेडिट कार्ड की ज़रूरत नहीं।

साइन अप करें
चरण 2

API कुंजी लें

कोई भी खाता सेटिंग्स → API कुंजी में कुंजियाँ बना सकता है। मुफ़्त कुंजियों पर मुफ़्त प्लान की सीमाएँ लागू होती हैं; सशुल्क प्लान उन्हें बढ़ाते हैं।

API कुंजी लें
चरण 3

अनुरोध भेजें

curl -H "X-API-KEY: tk_..." \
  "https://api.cybertemp.xyz/[email protected]"
API दस्तावेज़ पढ़ें

€1.99/माह से

API कुंजी के साथ मुफ़्त शुरू करें। सशुल्क प्लान रेट लिमिट और इनबॉक्स सीमा बढ़ाते हैं; Elite में वेबहुक भी मिलते हैं।