auth

User login

Authenticate user with username and password

post/api/auth/login

Request body

usernamestring required

Username for authentication

passwordstring required

Password for authentication

Example request

{
  "password": "securepassword",
  "username": "user@example.com"
}

Response

Successful Response

access_tokenstring required

JWT access token

refresh_tokenstring required

Refresh token

expires_ininteger required

Access token expiration time in seconds

refresh_expires_ininteger required

Refresh token expiration time in seconds

token_typestring

Token type

requires_profile_completionboolean

True if the authenticated user still has to complete mandatory profile fields before using the app

Example response

{
  "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
  "expires_in": 300,
  "refresh_expires_in": 1800,
  "refresh_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
  "token_type": "Bearer"
}

Changes