Public API
API Reference
Endpoint index for sending idempotent email OTPs, verifying submitted codes, fetching test-mode codes, and checking service health.
Core behavior
The send endpoint is idempotent by email and purpose. During the live window, repeat requests send the same code instead of creating a new rolling bucket of OTPs.
Email language support
Pass language to the send endpoint to localize the verification email. Templates are available in English, Spanish, French, German, Portuguese, Italian, and Dutch.
AI integration references
Give an AI coding agent the full integration context first, then use the OpenAPI document for exact request and response shapes. Both are public and generated or maintained alongside this reference.
Endpoints
/v1/sendSend OTP
Send or resend an idempotent email code for an email and purpose.
/v1/verifyVerify OTP
Verify a submitted email code against the live idempotent OTP record.
/v1/test/latest-codeLatest test code
Fetch the latest code created by a test-mode key for an email and purpose.
/v1/healthHealth check
Check that the OTP Worker is reachable.
Request model
Call send from your backend with a normalized user email and stable purpose key.
Store the returned challenge id and ask the user for the email code while it remains valid.
Call verify from your backend with the same email, purpose, challenge id, and submitted code.