Skip to content

Login

POST
/api/v1/auth/login

Authenticate with username and password. Returns a JWT token and the authenticated user.

object
username
string
password
string

Login successful

object
token
string
user
object
username
string
role
string
email
string
createdAt
string
lastLoginAt
string

Invalid credentials

object
error
object
code
string
message
string
status
required
integer format: int32

Rate limited