Back to API Reference

Authentication API

POST/auth/login

Authenticate and receive access token

Request Body

{
  "email": "user@example.com",
  "password": "your_password"
}

Response

{
  "accessToken": "eyJ...",
  "refreshToken": "eyJ...",
  "expiresIn": 3600
}
POST/auth/refresh

Refresh access token

Request Body

{
  "refreshToken": "eyJ..."
}
DELETE/auth/logout

Invalidate current session

GET/auth/me

Get current user info