Skip to main content

Sign in

POST /auth/signin Authenticates a registered user and returns a JWT access token together with a refresh token.

Request body

string
required
The user’s email address. Must be a valid email format. Leading and trailing whitespace is stripped automatically.
string
required
The user’s password.

Response

number
HTTP status code. 200 on success.
string
Human-readable result message.
object

Examples

200 response

Error responses


Refresh token

POST /auth/refresh-token Generates a new access token using a valid refresh token. Use this endpoint when the current access token has expired.

Request body

string
required
The refresh token received at sign-in.

Examples

200 response

Sign out

POST /auth/signout Invalidates the current session. Requires a valid Bearer token.
This endpoint requires the Authorization: Bearer <token> header.

Request body

string[]
Optional list of specific session IDs to invalidate. When omitted, the current session is invalidated.

Examples

200 response

Forgot password

POST /auth/forgot-password Sends a password-reset link to the user’s email address.

Request body

string
required
Email address of the account for which to initiate a password reset.
string
Optional URL of a brand logo to include in the reset email. Must include a protocol and a valid TLD (for example, https://example.com/logo.png).
string
Optional display name of the platform, used in the reset email body.
string
Optional base URL the reset link should point back to (for example, https://app.example.com).
string
Optional client alias to scope the reset link to a specific front-end client (for example, "VERIFIER").

Examples

200 response

Reset password (token-based)

POST /auth/password-reset/:email Completes the password-reset flow by setting a new password using the token delivered by email.

Path parameters

string
required
The email address of the account whose password is being reset.

Request body

string
required
The new password to set for the account.
string
required
The verification token received in the password-reset email.

Examples

200 response

Reset password (authenticated)

POST /auth/reset-password Allows a signed-in user to change their password by providing their current password.

Request body

string
required
The user’s email address.
string
required
The user’s current password.
string
required
The new password. Must be different from oldPassword.

Examples

200 response

Get all sessions

GET /auth/:userId/sessions Returns all active sessions for the specified user. Requires a valid Bearer token. Users may only retrieve their own sessions.
This endpoint requires the Authorization: Bearer <token> header.

Path parameters

string
required
UUID of the user whose sessions to retrieve. Must match the authenticated user’s ID.

Examples


Delete a session

DELETE /auth/:sessionId/sessions Deletes a specific session by its ID. Requires a valid Bearer token.
This endpoint requires the Authorization: Bearer <token> header.

Path parameters

string
required
UUID of the session record to delete.

Examples

200 response