واجهة برمجة للتطبيقات للمطورين

استخدم الواجهة لإنشاء صناديق مؤقتة وقراءة الرسائل وتمديد الصلاحية. حد معدل الطلبات لكل IP.

إنشاء صندوق

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

بدون body. يعيد عنواناً جديداً وقائمة رسائل فارغة.

{
  "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 (البريد مشفراً في الرابط). يعيد الصندوق والرسائل أو 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

Body: { "address": "..." }. يضيف 10 دقائق حتى 30 كحد أقصى من الإنشاء. يعيد الصندوق المحدث.

الحد: مثل get (120/دقيقة).

واجهة بريد مؤقت للمطورين | 10genmail