Request
POST /auth/login
The email address of the account.
The account password.
Override the session role for this login. Accepted values:
USER, RIDER, DRIVER, ADMIN. Falls back to the role stored on the account if omitted or unrecognized.Response
A signed JWT to include in the
Authorization: Bearer <token> header of subsequent requests.A token you can exchange for a new access token via Refresh Token.
Always
"Bearer".Number of seconds until the access token expires.
The display name of the authenticated user.
The effective role for this session.
The numeric ID of the authenticated user.
Example
Error codes
| Status | Meaning |
|---|---|
| 400 | email or password is missing |
| 401 | No account found for the given email, or the password is incorrect |