डेवलपर्स के लिए API

API से अस्थायी इनबॉक्स बनाएं, संदेश पढ़ें और समय बढ़ाएं। प्रति IP रेट लिमिट लागू।

इनबॉक्स बनाएं

POST https://10genmail.com/api/inbox

बॉडी नहीं। नया पता और खाली संदेश सूची लौटाता है।

{
  "address": "quick-fox-abc123@10genmail.com",
  "slug": "quick-fox-abc123",
  "createdAt": 1234567890123,
  "expiresAt": 1234568490123,
  "ttlSeconds": 600,
  "messages": []
}

लिमिट: 10 रिक्वेस्ट/मिनट/IP।

इनबॉक्स पाएं

GET https://10genmail.com/api/inbox?address=...

क्वेरी: address (URL-एन्कोडेड ईमेल)। इनबॉक्स और संदेश लौटाता है, एक्सपायर होने पर 404।

{
  "address": "quick-fox-abc123@10genmail.com",
  "slug": "quick-fox-abc123",
  "createdAt": 1234567890123,
  "expiresAt": 1234568490123,
  "ttlSeconds": 420,
  "messages": [
    {
      "id": "msg-...",
      "from": { "name": null, "email": "sender@example.com" },
      "subject": "Hello",
      "text": "...",
      "html": null,
      "date": "...",
      "timestamp": 1234567900000
    }
  ]
}

लिमिट: 120 रिक्वेस्ट/मिनट/IP।

इनबॉक्स बढ़ाएं

POST https://10genmail.com/api/inbox/extend

बॉडी: { "address": "..." }। 10 मिनट जोड़ता है, बनाने के बाद कुल 30 तक। अपडेटेड इनबॉक्स लौटाता है।

लिमिट: get जैसा (120/मिनट)।

डेवलपर्स के लिए टेम्पररी ईमेल API | 10genmail