Skip to main content
POST
Log in and obtain a bearer token

Body

application/json

Credentials for /api/login. The username field is the user's email.

username
string
required

The user's email address.

password
string<password>
required
Example:

"your-password"

Response

Authenticated — the response carries the bearer token

The bearer token issued on a successful login.

access_token
string
required

The JWT to send in the Authorization header as a Bearer token.

token_type
string
required

Always "Bearer".

username
string
expires_in
integer

Token lifetime in seconds.