Swift Mail
/Docs v1

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.

http://us-1.fraxzcloud.in:1942/api/v1

API Key Authentication

Pass your developer API key in the X-API-Key request header. You can generate keys from your Developer Console.

X-API-Key: sk_live_your_secret_api_key_here

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.

GENERAL REQUESTS
300 req / min
INBOX CREATION BURST
10 inboxes / min

Create a Disposable Inbox

POST/api/v1/inboxes

Generates a new temporary email address. Optionally customize local-part or set webhook forwarding.

Example Request (cURL)
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}'
Response Envelope (201 Created)
{
  "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 Endpoint
GET/api/v1/inboxes/{id_or_address}/wait-otp

Long-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!

Example Request (cURL)
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"
Response Envelope (200 OK)
{
  "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

GET/api/v1/inboxes/{id_or_address}/latest-otp

Returns the latest OTP and verification links immediately without long-polling.

Example Request (cURL)
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

GET/api/v1/inboxes/{inbox_id}/messages

Retrieves paginated message summaries for the specified inbox ID.

Example Request (cURL)
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

GET/api/v1/inboxes/{inbox_id}/messages/{message_id}

Loads complete plain-text and sanitized HTML email content.

Example Request (cURL)
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

DELETE/api/v1/inboxes/{inbox_id}

Deletes an inbox and cascades deletion to all stored messages.

Example Request (cURL)
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

GET/api/v1/quota

Inspects remaining manual and programmatic inbox creation limits for the current 24-hour cycle.

Example Request (cURL)
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 CodeMeaningDescription
200 OKSuccessRequest completed successfully.
201 CreatedResource CreatedNew temporary inbox or message stored.
401 UnauthorizedMissing or Invalid KeySupplied X-API-Key is invalid, revoked, or missing.
403 ForbiddenAccess DeniedCreation paused by admin or account is blacklisted.
429 Too Many RequestsRate Limit ExceededClient exceeded rate limits. Slow down to avoid strike bans.
503 Service UnavailableMaintenance ModeDeveloper API is currently in scheduled maintenance.
200 OKSuccess

Request completed successfully.

201 CreatedResource Created

New temporary inbox or message stored.

401 UnauthorizedInvalid Key

Supplied X-API-Key is invalid, revoked, or missing.

403 ForbiddenAccess Denied

Creation paused by admin or account is blacklisted.

429 Too Many RequestsRate Limit Exceeded

Client exceeded rate limits. Slow down to avoid strike bans.

503 UnavailableMaintenance

Developer API is currently in scheduled maintenance.