OTP Mailbox

Receive emails, extract OTP codes, retrieve them via API.

How It Works

  1. Send or forward an email containing an OTP to any address at this domain.
  2. The mail server receives it and passes it to Action Mailbox.
  3. OTP codes are automatically extracted and stored.
  4. Retrieve the code via the API using the recipient email address.

API Endpoints

GET /api/otp?email=user@example.com

Returns the most recent OTP for the given email address.

{
  "email": "user@example.com",
  "otp_code": "482913",
  "subject": "Your verification code",
  "sender": "noreply@service.com",
  "received_at": "2026-07-01T12:00:00Z"
}
GET /api/otp/all?email=user@example.com

Returns the 10 most recent OTPs for the given email address.

Error Responses

400 — Missing email parameter.

404 — No OTP found for that email.