All About API
You can adjust all API here
API
API Method Listing
List Domains
Get the current list of available domains.
GET https://tempmail.com.tr/api/domains/{apikey}
Parameters
{apikey} - Your API Key
{ "status": "success", "data": { "domains": { "1": "site1.com", "2": "site2.com", "3": "site3.com" } } }
Create Email
Generate a unique email token
POST https://tempmail.com.tr/api/email/create/{apikey}
Parameters
{apikey} - Your API Key
{ "status": "success", "data": { "email": "email@domain.com", "email_token": "eyJpdiI6IlB2MzRrQkthcGpmZjFRVTB1T0RKd3c9PSIsInZhbHVlIjoiMHlzME9CaG1kTm5KZEZOS2lPU0c3M0hwSlFEd3NGRmY3TFVhN0JVRXp0cz0iLCJtYWMiOiJlZWNjNGY2MDg0Yjk3MjkzNzJjNTNiOTk5NDhmYmI0OTE0MGRhOTA4YWQwOGU1ZTRmNzVlY2QzZDFlNjQ2NjE4In0=", "deleted_in": "2022-12-02 20:38:13" } }
Change Email
Generate a custom email token
POST https://tempmail.com.tr/api/email/change/{email_token}/{username}/{domain}/{apikey}
Parameters
{email_token} - The old email token you want to change
{username} - Your custom username or email ID
{domain} - Your custom domain
{apikey} - Your API Key
{ "status": "success", "data": { "email": "email@domain.com", "email_token": "eyJpdiI6IlB2MzRrQkthcGpmZjFRVTB1T0RKd3c9PSIsInZhbHVlIjoiMHlzME9CaG1kTm5KZEZOS2lPU0c3M0hwSlFEd3NGRmY3TFVhN0JVRXp0cz0iLCJtYWMiOiJlZWNjNGY2MDg0Yjk3MjkzNzJjNTNiOTk5NDhmYmI0OTE0MGRhOTA4YWQwOGU1ZTRmNzVlY2QzZDFlNjQ2NjE4In0=", "deleted_in": "2022-12-02 20:38:13" } }
Delete Email
Delete the current email and create a new one
POST https://tempmail.com.tr/api/email/delete/{email_token}/{apikey}
Parameters
{email_token} - The email token you want to delete
{apikey} - Your API Key
{ "status": "success", "data": { "email_token": "eyJpdiI6IlB2MzRrQkthcGpmZjFRVTB1T0RKd3c9PSIsInZhbHVlIjoiMHlzME9CaG1kTm5KZEZOS2lPU0c3M0hwSlFEd3NGRmY3TFVhN0JVRXp0cz0iLCJtYWMiOiJlZWNjNGY2MDg0Yjk3MjkzNzJjNTNiOTk5NDhmYmI0OTE0MGRhOTA4YWQwOGU1ZTRmNzVlY2QzZDFlNjQ2NjE4In0=", "deleted_in": "2022-12-02 20:38:13" } }
Fetch Messages
Get email messages of the provided Email Token
GET https://tempmail.com.tr/api/messages/{email_token}/{apikey}
Parameters
{email_token} - Your email token
{apikey} - Your API Key
{ "status": "success", "data": { "mailbox": "qsirrsr8460@site.com", "messages": [ { "subject": "test 2", "is_seen": false, "from": "Ramos Kelly", "from_email": "ramoskelly@gmail.com", "receivedAt": "2022-12-02 20:50:53", "id": "x6zQW58YB0oPoqewykXdo32S", "attachments": [], "content": "content html or text " }, { "subject": "subject", "is_seen": true, "from": "Diaz", "from_email": "diaz202@gmail.com", "receivedAt": "2022-12-02 20:50:33", "id": "286J5Nvyk047VZORpBwGPzoQ", "attachments": [ { "file": "file.png", "url": "http://site.com/download/286J5Nvyk047VZORpBwGPzoQ/file.png" } ], "content": "content html or text" } ] } }
Fetch Message
Get message of the provided message ID
GET https://tempmail.com.tr/api/message/{message_id}/{apikey}
Parameters
{message_id} - The ID of the message you want to fetch
{apikey} - Your API Key
{ "status": "success", "data": [ { "subject": "subject", "is_seen": true, "from": "Diaz", "from_email": "diaz202@gmail.com", "receivedAt": "2022-12-02 20:50:33", "id": "286J5Nvyk047VZORpBwGPzoQ", "attachments": [ { "file": "file.png", "url": "http://site.com/download/286J5Nvyk047VZORpBwGPzoQ/file.png" } ], "content": "content html or text" } ] }
Delete Message
Delete a specific email message by message ID
POST https://tempmail.com.tr/api/message/delete/{message_id}/{apikey}
Parameters
{message_id} - The ID of the message you want to Detele
{apikey} - Your API Key
{ "status": "success", "message": "the message has been deleted" }
Token to email in your website
Send your visitors to a site with a token to create the same email
https://tempmail.com.tr/token/{email_token}
Parameters
{email_token} - Your email token