सामग्री पर जाएँ
CyberTemp
डेवलपर्स

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

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

# Any address on a CyberTemp domain works: the inbox is created on first read.
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 टोकन। डैशबोर्ड से रद्द किए जा सकते हैं।

वेबहुक

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

OTP निष्कर्षण

एक GET से नवीनतम संदेश पढ़ें और एक छोटे regex से कोड निकालें। नीचे दिए उदाहरण देखें।

IMAP

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

कस्टम डोमेन

अपना डोमेन लाएँ — 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 });
    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 पाएँ। 5xx या टाइमआउट पर हम एक्सपोनेंशियल बैकऑफ़ (1 मि, 5 मि, 30 मि, 6 घं) के साथ पुनः प्रयास करते हैं और लगातार 10 विफलताओं के बाद स्वतः रोक देते हैं।

इवेंट प्रकार
  • message.received — आपके किसी इनबॉक्स में नया ईमेल आता है
  • inbox.created — आपके खाते पर नया इनबॉक्स बनाया गया
  • test.ping — डैशबोर्ड के "Test" बटन से चलाया गया
हम जो हेडर भेजते हैं
  • X-Cybertemp-Signature: sha256=<hmac_hex>
  • X-Cybertemp-Event: message.received
  • X-Cybertemp-Delivery: <unique_id>
  • X-Cybertemp-Timestamp: <unix_seconds>
  • Content-Type: application/json
पेलोड संरचना
{
  "event": "message.received",
  "delivery_id": "7c4f...",
  "timestamp": 1731234567,
  "data": {
    "inbox_id": "5d2f...",
    "inbox": "[email protected]",
    "message_id": "9a1b...",
    "from": "[email protected]",
    "to": ["[email protected]"],
    "subject": "Your verification code",
    "received_at": "2026-05-17T09:31:00Z",
    "size_bytes": 4732,
    "encrypted": true
  }
}
हस्ताक्षर सत्यापित करें
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");

  if (!crypto.timingSafeEqual(Buffer.from(header), Buffer.from(expected))) {
    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 में वेबहुक भी मिलते हैं।