Endpoints
Token types
Register
AuthResponse with tokens on success.
Request body
string
required
Developer email address.
string
required
Password. Minimum 8 characters.
string
required
Full name. 1–100 characters.
Example request
cURL
AuthResponse fields
string
required
User UUID.
string
required
User email address.
string
required
User display name.
string
required
JWT access token. Valid for 15 minutes.
string
required
JWT refresh token. Valid for 7 days. Use to obtain new access tokens without re-entering credentials.
Sample response
Login
Request body
string
required
Developer email address.
string
required
Account password.
Example request
cURL
Logout
pdx_access and pdx_refresh httpOnly cookies. No request body required.
Refresh tokens
pdx_refresh cookie or the Authorization header. Use this before the access token expires to maintain a continuous session.
Get user profile
cURL
Password reset flow
Use these three endpoints in sequence to reset a forgotten password:1
Request OTP
POST /api/v1/auth/forgot-password with {"email": "dev@company.com"}. A 6-digit OTP is sent to the registered email. The OTP expires in 10 minutes. This endpoint returns success even if the email is not registered, to prevent account enumeration.2
Verify OTP
POST /api/v1/auth/verify-otp with {"email": "dev@company.com", "otp": "482910"}. On success, returns a short-lived reset_token valid for 5 minutes.3
Set new password
POST /api/v1/auth/reset-password with {"reset_token": "<token>", "password": "newpassword"}. The token is single-use and consumed on success.Change password
Request body
string
required
The current account password.
string
required
The new password. Minimum 8 characters.
