Authorization header:
Keep your tokens secure. Never expose them in client-side code, public repositories, or anywhere they can be read by untrusted parties.
Register a new account
If you don’t have an account yet, create one withPOST /api/auth/register.
string
required
Your email address.
string
required
Your account password.
object
string
Short-lived JWT you send with every API request. Expires after 15 minutes.
string
Long-lived token used to obtain a new access token when the current one expires.
Log in to an existing account
Exchange your credentials for tokens usingPOST /api/auth/login.
string
required
Your account email address.
string
required
Your account password.
Refresh an access token
Access tokens expire after 15 minutes. When yours expires, callPOST /api/auth/refresh with your refresh token to get a new one without logging in again.
string
required
The refresh token returned from
/auth/login or /auth/register.Using your token
Include the access token in theAuthorization header of every API request:
