Fakmail.com API Documentation

Modern, fast, and free disposable email API for developers.

Base URL: https://fakmail.com/api/email
Rate limit: 5 requests/minute per IP
GET/api/email/generate

Generate Email

Generate a new random disposable email address.

PHP (Guzzle) Example:
<?php
$client = new \GuzzleHttp\Client();
$response = $client->get('https://fakmail.com/api/email/generate');
echo $response->getBody();
?>
Example Response:
{
  "success": true,
  "email": "[email protected]"
}
GET/api/email/[email protected]

Check Inbox

Get the latest emails for a given address (max 5, last 3 days).

PHP (Guzzle) Example:
<?php
$client = new \GuzzleHttp\Client();
$response = $client->get('https://fakmail.com/api/email/inbox', [
  'query' => ['email' => '[email protected]']
]);
echo $response->getBody();
?>
Example Response:
{
  "success": true,
  "count": 2,
  "messages": [
    {
      "uid": 12345,
      "subject": "Welcome!",
      "from_name": "Fakemail Team",
      "from_email": "[email protected]",
      "date": "2024-06-08 10:15:00",
      "is_seen": false
    }
  ]
}
GET/api/email/[email protected]&uid=12345

Read Email Content

Get the full content of an email by UID and address.

PHP (Guzzle) Example:
<?php
$client = new \GuzzleHttp\Client();
$response = $client->get('https://fakmail.com/api/email/show', [
  'query' => ['email' => '[email protected]', 'uid' => 12345]
]);
echo $response->getBody();
?>
Example Response:
{
  "success": true,
  "uid": 12345,
  "subject": "Welcome!",
  "from_name": "Fakemail Team",
  "from_email": "[email protected]",
  "to": ["[email protected]"],
  "date": "2024-06-08 10:15:00",
  "body": "Selamat datang...",
  "body_html": "<p>Selamat datang...</p>",
  "attachments": [],
  "is_seen": true
}
GET/api/email/[email protected]&uid=12345

Delete Email

Delete an email by UID and address.

PHP (Guzzle) Example:
<?php
$client = new \GuzzleHttp\Client();
$response = $client->get('https://fakmail.com/api/email/delete', [
  'query' => ['email' => '[email protected]', 'uid' => 12345]
]);
echo $response->getBody();
?>
Example Response:
{
  "success": true,
  "message": "Email deleted successfully"
}