List Companies
Companies & fleet
Company tree
Return the caller’s company hierarchy, timezone, and date format.
POST
List Companies
Overview
Returns the caller’s company hierarchy (including successors), with timezone, UTC offset string, andDateTimeFormat.
Requires valid CompanyId claim.
A V2 version of this endpoint is available: List companies. New integrations should prefer V2.
Endpoint
POST /api/GetCompanies
Authentication
Required. Bearer token.Response
200 OK —CompaniesDto
| Field | Type | Description |
|---|---|---|
| Companies | array of CompanyDto | Each: Name, Id, ParentId, ShowCommands (always false here), Level, ApiKey (deprecated) |
| TimeZone | string | IANA-style id from claims |
| UtcOffset | string | e.g. 10:00:00 |
| DateTimeFormat | string | User date format pattern |
Example response
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 as it is.
Bearer your_token