Dashboard user token
Authenticate a dashboard user with username and password; receive a JWT.
Overview
Authenticates a dashboard user by username and password and returns a signed JWT withUserId, CompanyId, and TimeZone claims.
Endpoint
POST /api/Authentication/token/user
Authentication
Not required (public endpoint).Request headers
| Header | Required | Description |
|---|---|---|
| Content-Type | Yes | application/x-www-form-urlencoded |
Request body (form)
Example request body
Response
200 OK —JwtTokenResponse
bearer.Example response
Error responses
| Status | Meaning |
|---|---|
| 401 | Invalid username or password, or user has no company assignment |
Authorizations
JWT Bearer token obtained from POST /api/authentication/token/user or POST /api/authentication/token/api-key.
Lifetime: ~24 hours (86,399 seconds). Cache the token and reuse it. Re-authenticate 5 minutes before expiry.
Scoping:
- User tokens are scoped to a single company.
- API key tokens may restrict access to a vehicle allowlist and/or action set (see token claims).
No refresh endpoint — re-authenticate with your credentials when the token expires.
Headers
Standard and must keep it as it is.
Body
Response
Successful response
JWT access token
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
"Bearer"
Token lifetime in seconds. Default is 86399.0 (≈24 hours). Cache and reuse this token until near expiry — do not request a new token per API call.
86399