Kunci API Anda (API Key)
100 Pesan / MingguSetiap perangkat berhak mendapatkan 1 API Key unik untuk mengotomasi email, bot, atau pengujian dengan batas 100 pesan per minggu.
Kirimkan API Key via header request:
X-API-Key: tm_live_...GET
/domainsPublikDapatkan Daftar Domain
Mengembalikan daftar semua domain email aktif yang dapat digunakan.
cURL Command
curl -X GET "https://temp-mail.olahdi.cloud/domains"
Contoh Respons JSON (200 OK)
{
"success": true,
"result": [
"titipit.id",
"olahdi.cloud",
"dibio.my.id"
]
}GET
/emails/{emailAddress}Auth WajibDaftar Email Masuk
Mengambil daftar ringkasan email yang masuk untuk satu alamat email tertentu.
Parameters
| Field | Type | Status | Keterangan |
|---|---|---|---|
| emailAddress | path | Wajib | Alamat email target (contoh: dimas_123@olahdi.cloud) |
| limit | query | Opsional | Jumlah maksimal (default: 20) |
| offset | query | Opsional | Offset paginasi (default: 0) |
cURL Command
curl -X GET "https://temp-mail.olahdi.cloud/emails/dimas_123@olahdi.cloud" -H "X-API-Key: tm_live_YOUR_API_KEY"
Contoh Respons JSON (200 OK)
{
"success": true,
"result": [
{
"id": "clxyz123...",
"from_address": "sender@domain.com",
"from_name": "Verification Service",
"to_address": "dimas_123@olahdi.cloud",
"subject": "Kode Verifikasi Anda",
"received_at": 1727430000,
"has_attachments": false,
"attachment_count": 0
}
]
}GET
/emails/{emailAddress}/countPublikHitung Jumlah Email
Menghitung total email masuk untuk alamat email tertentu.
Parameters
| Field | Type | Status | Keterangan |
|---|---|---|---|
| emailAddress | path | Wajib | Alamat email target |
cURL Command
curl -X GET "https://temp-mail.olahdi.cloud/emails/dimas_123@olahdi.cloud/count"
Contoh Respons JSON (200 OK)
{
"success": true,
"result": {
"count": 5
}
}DELETE
/emails/{emailAddress}Auth WajibHapus Semua Email
Menghapus seluruh pesan email yang ada di kotak masuk alamat tersebut.
Parameters
| Field | Type | Status | Keterangan |
|---|---|---|---|
| emailAddress | path | Wajib | Alamat email target |
cURL Command
curl -X DELETE "https://temp-mail.olahdi.cloud/emails/dimas_123@olahdi.cloud" -H "X-API-Key: tm_live_YOUR_API_KEY"
Contoh Respons JSON (200 OK)
{
"success": true,
"result": {
"message": "Emails deleted successfully",
"deleted_count": 5
}
}GET
/inbox/{emailId}Auth WajibDetail Pesan Email
Membaca isi lengkap satu email termasuk subject, body HTML, teks, header, dan lampiran.
Parameters
| Field | Type | Status | Keterangan |
|---|---|---|---|
| emailId | path | Wajib | ID unik pesan email |
cURL Command
curl -X GET "https://temp-mail.olahdi.cloud/inbox/clxyz123abc" -H "X-API-Key: tm_live_YOUR_API_KEY"
Contoh Respons JSON (200 OK)
{
"success": true,
"result": {
"id": "clxyz123abc",
"from_address": "support@service.com",
"from_name": "Service",
"to_address": "dimas_123@olahdi.cloud",
"subject": "Kode OTP Anda: 729104",
"html": "<p>Kode OTP Anda adalah: <b>729104</b></p>",
"text": "Kode OTP Anda adalah: 729104",
"received_at": 1727430000,
"has_attachments": false,
"attachments": []
}
}DELETE
/inbox/{emailId}Auth WajibHapus 1 Pesan Email
Menghapus satu pesan email tertentu dari database.
Parameters
| Field | Type | Status | Keterangan |
|---|---|---|---|
| emailId | path | Wajib | ID pesan email |
cURL Command
curl -X DELETE "https://temp-mail.olahdi.cloud/inbox/clxyz123abc" -H "X-API-Key: tm_live_YOUR_API_KEY"
Contoh Respons JSON (200 OK)
{
"success": true,
"result": {
"message": "Email deleted successfully"
}
}GET
/attachments/{attachmentId}PublikUnduh Lampiran
Mengunduh file lampiran email secara langsung dari Cloudflare R2 storage.
Parameters
| Field | Type | Status | Keterangan |
|---|---|---|---|
| attachmentId | path | Wajib | ID unik lampiran |
cURL Command
curl -X GET "https://temp-mail.olahdi.cloud/attachments/att_123xyz" -O
Contoh Respons JSON (200 OK)
[Binary File Content: image, pdf, zip, etc.]
