نظرة عامة والمصادقة
مرحباً بك في واجهة API للمطورين في tempmailto.com لإنشاء عناوين مؤقتة وجلب الرسائل برمجياً لاختبارات الجودة والأتمتة.
الرابط الأساسي
المصادقة
مرّر مفتاح API في ترويسة Authorization (الموصى به: Authorization: Bearer YOUR_API_KEY) أو X-API-Key لتجنب كشف المفاتيح في الروابط وسجلات الخادم. المصادقة عبر الرابط لا تزال مدعومة للتوافق.
| معامل المصادقة | النوع | الموضع | مثال |
|---|---|---|---|
| Authorization / X-API-Key | string | ترويسة HTTP (موصى به) | Bearer YOUR_API_KEY |
| apiKey | string | مسار الرابط (قديم) | YOUR_API_KEY |
GET النطاقات النشطة
Fetch list of all allowed domain names configured on the platform that can be used to generate temporary mailboxes.
معاملات المسار
| المعامل | النوع | الحالة | الوصف |
|---|---|---|---|
| apiKey | string | مطلوب | Your secret API authorization key. |
| type | string | مطلوب | Domain filter type. Accepted values: all, free, premium. |
curl -X GET "https://tempmailto.com/api/domains/all" -H "Authorization: Bearer YOUR_API_KEY"
{
"status": true,
"data": {
"domains": [
{
"domain": "tempmailto.com",
"type": "Free"
}
]
}
}
POST إنشاء بريد جديد
Instantly generate and register a new random temporary email address address.
معاملات المسار
| المعامل | النوع | الحالة | الوصف |
|---|---|---|---|
| apiKey | string | مطلوب | Your secret API authorization key. |
curl -X POST "https://tempmailto.com/api/emails" -H "Authorization: Bearer YOUR_API_KEY"
{
"status": true,
"data": {
"id": 142,
"email": "[email protected]",
"domain": "tempmailto.com",
"ip": "127.0.0.1",
"fingerprint": "f38b25...",
"expire_at": "2026-06-20 13:45:00",
"created_at": "2026-06-20 13:35:00",
"email_token": "eyJpdiI..."
}
}
POST تخصيص عنوان البريد
Transition an existing email to a customized address with a specific username and active domain.
معاملات المسار
| المعامل | النوع | الحالة | الوصف |
|---|---|---|---|
| apiKey | string | مطلوب | Your secret API authorization key. |
| string | مطلوب | The current temporary email address you want to change. | |
| username | string | مطلوب | The customized alias/username prefix for the new address. |
| domain | string | مطلوب | One of the active domain names fetched from the active domains endpoint. |
curl -X POST "https://tempmailto.com/api/emails/[email protected]/john_doe/tempmailto.com" -H "Authorization: Bearer YOUR_API_KEY"
{
"status": true,
"data": {
"id": 143,
"email": "[email protected]",
"domain": "tempmailto.com",
"ip": "127.0.0.1",
"fingerprint": "f38b25...",
"expire_at": "2026-06-20 13:45:00",
"created_at": "2026-06-20 13:35:00"
}
}
POST حذف البريد المؤقت
Instantly release and expire a temporary email address to delete all cached inbox data.
معاملات المسار
| المعامل | النوع | الحالة | الوصف |
|---|---|---|---|
| apiKey | string | مطلوب | Your secret API authorization key. |
| string | مطلوب | The active temporary email address to be removed. |
curl -X POST "https://tempmailto.com/api/emails/[email protected]" -H "Authorization: Bearer YOUR_API_KEY"
{
"status": true,
"message": "Email has been successfully deleted."
}
GET رسائل صندوق الوارد
Retrieve all message metadata and message summaries received inside the inbox of the specified temporary address.
معاملات المسار
| المعامل | النوع | الحالة | الوصف |
|---|---|---|---|
| apiKey | string | مطلوب | Your secret API authorization key. |
| string | مطلوب | The temporary email address to fetch the messages for. |
curl -X GET "https://tempmailto.com/api/messages/[email protected]" -H "Authorization: Bearer YOUR_API_KEY"
{
"status": true,
"data": [
{
"id": "M2ZkMXQ1",
"subject": "Verify your Account",
"from": "Service Provider",
"from_email": "[email protected]",
"receivedAt": "2026-06-20 13:40:00",
"is_seen": false,
"html": true
}
]
}
GET تفاصيل الرسالة
Retrieve the full HTML/plain text body content, sender fields, headers, and attachments list of a specific message ID.
معاملات المسار
| المعامل | النوع | الحالة | الوصف |
|---|---|---|---|
| apiKey | string | مطلوب | Your secret API authorization key. |
| messageId | string | مطلوب | The unique identifier key of the message. |
curl -X GET "https://tempmailto.com/api/messages/message/M2ZkMXQ1" -H "Authorization: Bearer YOUR_API_KEY"
{
"status": true,
"data": {
"id": "M2ZkMXQ1",
"subject": "Verify your Account",
"from": "Service Provider",
"from_email": "[email protected]",
"to": "[email protected]",
"receivedAt": "2026-06-20 13:40:00",
"is_seen": true,
"html": true,
"content": "<p>Hi John, your verification code is <b>857102</b></p>",
"attachments": []
}
}
POST حذف الرسالة
Permanently purge and delete a specific message from the temp inbox storage.
معاملات المسار
| المعامل | النوع | الحالة | الوصف |
|---|---|---|---|
| apiKey | string | مطلوب | Your secret API authorization key. |
| messageId | string | مطلوب | The unique identifier key of the message to be deleted. |
curl -X POST "https://tempmailto.com/api/messages/message/M2ZkMXQ1" -H "Authorization: Bearer YOUR_API_KEY"
{
"status": true,
"message": "Message has been successfully deleted."
}