auth

User login

Authenticates a user and returns a JWT token if the credentials are valid.

post/auth/login

Request body

created_atstring
idinteger
passwordstring required
usernamestring required
role'admin' | 'viewer'

Response

OK

tokenstring

Changes

Changed in 2 of the 55 revisions of this API.11