Developer API Reference
Integrate programmatic disposable email addresses, automate OTP/verification extraction, and poll incoming messages via the Swift Mail REST API.
Base URL & Protocol
All API endpoints communicate over standard HTTPS/HTTP and accept JSON request bodies.
API Key Authentication
Pass your developer API key in the X-API-Key request header. You can generate keys from your Developer Console.
Rate Limiting & Anti-Spam Protection
Swift Mail enforces multi-layer sliding window rate limits. If a script triggers 5 consecutive rate limit violations within a 5-minute window, the API key and client IP are automatically suspended.
Create a Disposable Inbox
Generates a new temporary email address. Optionally customize local-part or set webhook forwarding.
curl -X POST "http://us-1.fraxzcloud.in:1942/api/v1/inboxes" \
-H "X-API-Key: sk_live_your_key" \
-H "Content-Type: application/json" \
-d '{"expires_in_seconds": 3600}'{
"id": "c9284a1e-84b2-4d51-9e28-1b29c910fa92",
"address": "test7391@samirjs.qzz.io",
"local_part": "test7391",
"domain": "samirjs.qzz.io",
"is_active": true,
"expires_at": "2026-10-24T18:00:00Z",
"created_at": "2026-10-24T17:00:00Z",
"message_count": 0,
"remaining_quota": 19
}Wait for OTP / Link (Automation)
High Speed Bot EndpointLong-polls the inbox for up to timeout seconds. As soon as a verification email arrives, it instantly extracts the OTP code and verification URL. Perfect for Discord and automation bots!
curl -X GET "http://us-1.fraxzcloud.in:1942/api/v1/inboxes/test7391@samirjs.qzz.io/wait-otp?timeout=30" \ -H "X-API-Key: sk_live_your_key"
{
"status": "received",
"otp": "492019",
"verification_url": "https://discord.com/verify?token=abc123xyz",
"subject": "Your Discord verification code is 492019",
"sender": "noreply@discord.com",
"message_id": "msg_9812401",
"received_at": "2026-10-24T17:02:15Z"
}Non-blocking Latest OTP
Returns the latest OTP and verification links immediately without long-polling.
curl -X GET "http://us-1.fraxzcloud.in:1942/api/v1/inboxes/test7391@samirjs.qzz.io/latest-otp" \ -H "X-API-Key: sk_live_your_key"
List Received Messages
Retrieves paginated message summaries for the specified inbox ID.
curl -X GET "http://us-1.fraxzcloud.in:1942/api/v1/inboxes/c9284a1e-84b2-4d51-9e28-1b29c910fa92/messages?limit=20" \ -H "X-API-Key: sk_live_your_key"
Retrieve Message Body & HTML
Loads complete plain-text and sanitized HTML email content.
curl -X GET "http://us-1.fraxzcloud.in:1942/api/v1/inboxes/c9284a1e-84b2-4d51-9e28-1b29c910fa92/messages/msg_9812401" \ -H "X-API-Key: sk_live_your_key"
Delete Inbox
Deletes an inbox and cascades deletion to all stored messages.
curl -X DELETE "http://us-1.fraxzcloud.in:1942/api/v1/inboxes/c9284a1e-84b2-4d51-9e28-1b29c910fa92" \ -H "X-API-Key: sk_live_your_key"
Check Daily Quota
Inspects remaining manual and programmatic inbox creation limits for the current 24-hour cycle.
curl -X GET "http://us-1.fraxzcloud.in:1942/api/v1/quota" \ -H "X-API-Key: sk_live_your_key"
HTTP Status Codes Reference
| Status Code | Meaning | Description |
|---|---|---|
| 200 OK | Success | Request completed successfully. |
| 201 Created | Resource Created | New temporary inbox or message stored. |
| 401 Unauthorized | Missing or Invalid Key | Supplied X-API-Key is invalid, revoked, or missing. |
| 403 Forbidden | Access Denied | Creation paused by admin or account is blacklisted. |
| 429 Too Many Requests | Rate Limit Exceeded | Client exceeded rate limits. Slow down to avoid strike bans. |
| 503 Service Unavailable | Maintenance Mode | Developer API is currently in scheduled maintenance. |
Request completed successfully.
New temporary inbox or message stored.
Supplied X-API-Key is invalid, revoked, or missing.
Creation paused by admin or account is blacklisted.
Client exceeded rate limits. Slow down to avoid strike bans.
Developer API is currently in scheduled maintenance.