API Access

Automate ordering numbers and reading OTPs with a simple REST API.

The GrabOTP API lets you order numbers and poll for codes programmatically. Generate an API key from your dashboard, then authenticate requests with a bearer token.

Authentication

Create a key under Settings → API Keys and send it as a bearer token:

curl https://YOUR_DOMAIN/api/v1/services?take=40 \
  -H "Authorization: Bearer YOUR_API_KEY"

Common Endpoints

  • GET /api/v1/services — list available services and prices.
  • POST /api/v1/order — order a number for a service.
  • GET /api/v1/order/:id — check an order and read the received code.
  • GET /api/v1/balance — check your account balance.

Temp Mail

Disposable inboxes for sign-up codes and verification links. A mailbox with no email before it expires is refunded automatically.

  • GET /api/v1/mail/services — sites, domains and prices.
  • POST /api/v1/mail/buy — body { "service", "domain" }; returns the address.
  • GET /api/v1/mail/orders — open mailboxes with messages, each with the extracted code and link.
  • GET /api/v1/mail/orders/:id — one mailbox; poll until a message arrives.
  • POST /api/v1/mail/orders/:id/cancel — cancel a mailbox with no email yet, refunded.

Besides an API key, every endpoint accepts your logged-in session token (a JWT) as Authorization: Bearer <token>.

Need Help?

Reach out at [email protected] for integration support.