InlookMail.com
Developer API
Developer REST API v2.0

Developer API & Bot Automation

Integrate InlookMail into your automated testing frameworks, QA pipelines, and Discord/Telegram bots to dynamically spin up permanent inboxes and instantly extract OTP codes.

Base URL:https://inlookmail.com/api
JSON / HTTPS
POST/api/mailboxes

Creates a new private mailbox under the `@inlookmail.com` domain. You can supply an optional custom address or let the system auto-generate a random secure handle.

# Request Example (cURL)
curl -X POST https://inlookmail.com/api/mailboxes \
  -H "Content-Type: application/json" \
  -d '{"address": "[email protected]"}'
GET/api/otp?mailbox={address}

Retrieves the latest auto-extracted verification code for the specified mailbox. Designed for high-frequency test automation runners.

# Response Payload (200 OK)
{
  "success": true,
  "mailbox": "[email protected]",
  "otp": "849201",
  "subject": "Security code: 849201 for Microsoft services",
  "from": "Microsoft Account Team",
  "receivedAt": "2026-11-28T09:20:00.000Z"
}
GET/api/emails?mailbox={address}

Returns full email metadata including HTML body, preview, read state, and detected security verification tokens.

# Python Automation Snippet
import requests, time

MAILBOX = "[email protected]"

# Poll for verification code with 2s timeout
for _ in range(15):
    res = requests.get(f"https://inlookmail.com/api/otp?mailbox={MAILBOX}").json()
    if res.get("otp"):
        print(f"Extracted OTP: {res['otp']}")
        break
    time.sleep(2)