Tool endpoints use GET and return JSON shaped like { "status": "success", "data": … }. Authenticate with the ?api_key= parameter from the API Docs page after signing in.
One endpoint for both: a Gmail OTP code (otp_gmail_*) issues one OTP mailbox; a stock product code (hotmail_*…) buys by quantity. The balance is charged at the listed price.
Parameters · query
service
OTP service code (otp_gmail_*) or stock product code (e.g. hotmail_oauth2_graph)
quantityoptional
Only for one-off sold emails — quantity (default 1)
unique_keyoptional
Self-generated UUID — resending will not create or charge twice
Out of stock — Gmail OTP: retryable, retry in a few seconds; outright-sale email: wait for restock
true
service_unavailable
503
Server could not finish the order right now — retry with the same unique_key
true
in_progress
409
Order is being finalized or may already exist at the provider — retry with the same unique_key
true
forbidden
403
No permission for the resource
false
idempotency_mismatch
422
unique_key was used for a different request — use a new unique_key
false
order_cancelled
409
Order was released before it was charged, nothing charged — retry
true
too_many_requests
429
Too many requests — wait and retry
true
auth_unavailable
503
API key couldn't be checked right now, the key is fine — retry
true
shutting_down
503
Server is restarting — retry in a few seconds
true
payload_too_large
413
Request body too large
false
internal_server_error
500
Server error, please try again later
false
Docs for AI and tools
The full documentation in Markdown lives at https://otpforyou.com/llms.txt — paste it into Cursor, Claude or ChatGPT to generate integration code.
Safe retries with unique_key
Send a unique_key (a self-generated UUID) with every order. If the network drops, retry with the same unique_key: you get the same order back, with no new order and no second charge.
Error format
On error the response contains only status, message (a snake_case error code) and retryable, which tells you whether to try again.
Get started with Otpforyou
Sign up for free, top up your wallet and rent your first mail in minutes.