Skip to content

Authentication

Login

http
POST /api/auth/login

Authenticate user and get JWT token.

Request Body

json
{
  "email": "string",
  "password": "string"
}

Register

http
POST /api/auth/register

Register new user account.

Request Body

json
{
  "name": "string",
  "email": "string",
  "password": "string"
}

Logout

http
POST /api/auth/logout

Logout and invalidate token. Requires authentication.

Refresh Token

http
POST /api/auth/refresh

Refresh JWT token. Requires authentication.

Get User

http
GET /api/auth/user

Get authenticated user details. Requires authentication.