Back to Dashboard

API Documentation

Integrate TempMail Studio into your applications using our simple REST API.

Authentication

Include your API Key in the `X-API-Key` header for all requests.

Authorization: Bearer YOUR_API_KEY
OR
X-API-Key: YOUR_API_KEY

Endpoints

GET /api/domains.php

Get list of available email domains.

curl -H "X-API-Key: YOUR_KEY" https://www.fomail.biz.id/api/domains.php
POST /api/generate.php

Create a new temporary email.

curl -X POST https://www.fomail.biz.id/api/generate.php \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_KEY"
GET /api/sync.php

Get current email address and inbox messages.

curl -H "X-API-Key: YOUR_KEY" https://www.fomail.biz.id/api/sync.php