Skip to main content

Authentication

The API uses JWT (JSON Web Token) Bearer authentication. All protected endpoints require a valid token in the Authorization header.

Flow

1

Register a new account

Call POST /api/v1/auth/register with your name, email, and password.
2

Login to get a token

Call POST /api/v1/auth/login with your credentials. You’ll receive an access_token.
3

Use the token in requests

Add the token to every protected request:

Example

Token Lifetime

Tokens are configured via the JWT_EXPIRATION environment variable (default: 7d).