1. Core API — Basic Authentication
This authentication method applies to the Vehicle Tracking API, Fleet Management, Performance API.
Authorization header of every request.
Prerequisites
Contact your account manager to obtain:- Username (
clientId) - Client Secret (
clientSecret)
Create the Authorization Header
Combine yourclientId and clientSecret with a colon separator and encode in Base64:
Y2xpZW50SWQ6Y2xpZW50U2VjcmV0
Example Request
Required Headers
2. Other APIs — OAuth2 Bearer Token Authentication
This authentication method applies to the following APIs:
- Smart Tire API
- Tacho API
- Vehicle Check API
- Job Management API (uses a custom header — see below)
Prerequisites
Contact your account manager to obtain:- Client ID (
clientId) - Client Secret (
clientSecret)
Step 1: Generate an OAuth2 Access Token
Make a POST request to the OAuth2 token endpoint. Endpoint:
Create the Authorization Header:
Combine your
clientId and clientSecret with a colon separator and encode in Base64:
Y2xpZW50SWQ6Y2xpZW50U2VjcmV0
Request Body:
Step 2: Use the Access Token
Standard Bearer Token (Smart Tire, Tacho, Vehicle Check APIs)
Include the access token in theAuthorization header using the Bearer scheme.
Example Request:
Custom Header (Job Management API)
The Job Management API uses a custom header instead of the standardAuthorization header.
Example Request:
Note the
TOKEN prefix before the access token value. This is required for the Job Management API.Token Management Best Practices
- Token Expiration: OAuth tokens have a limited lifetime. Implement token refresh logic in your application.
- Secure Storage: Store client credentials and tokens securely using environment variables or secret management systems.
- Error Handling: Implement proper error handling for authentication failures and token expiration scenarios.
- Token Reuse: Cache and reuse valid tokens across multiple requests to minimize authentication overhead.
