Registration & Auth
Create an account, verify your email, and manage sessions.
Register
POST /auth/register
Create a developer account. A verification email is sent automatically. New accounts receive 1,000 free credits.
Request body:
Response 201
Log in
POST /auth/login
Sign in and get a session token. Your email must be verified first.
Request body:
Response 200
Use the access_token as a Bearer token for all /account/* endpoints. Tokens expire after expires_in seconds (1 hour).
Refresh token
POST /auth/refresh
Exchange a refresh token for a new access token.
Request body:
Response 200 — same shape as login response.
Forgot password
POST /auth/forgot-password
Send a password reset email. Always returns success to prevent email enumeration.
Request body:
Response 200