Fleet API
The Cartrack Fleet API provides fleet information directly into your systems, allowing you to manage your fleet straight from your own applications. This API is designed to be simple to use and easy to integrate with your existing systems. It provides access to a wide range of fleet information, including vehicle details, driver information, and trip data. The API is secured using basic authentication, and all requests must be made over HTTPS. Please ensure you are using this API with the right base URL.
Subuser access. A subuser authenticates with basic auth using the main account's username together with the subuser's api_key (see POST /subusers/apikey/{subuser_id}). Subuser credentials cannot write to Delivery: every POST, PUT and DELETE under /delivery/ returns 403 Forbidden. Most Delivery reads accept subuser credentials and return the whole account's data, with no filtering by subuser; a few require the main account's api_key and also return 403 Forbidden — GET /delivery/reports/drivers is one. This describes Delivery only: on the rest of the API a subuser sees only what it has been granted, for example vehicle listings. To create or update delivery resources on behalf of a subuser, authenticate with the main account's api_key and set subuser_id: as a request body field on delivery jobs and drivers create/update, and as a column in the uploaded file on POST /delivery/jobs/bulk-upload.
Authentication
- HTTP: Basic Auth
Main account: username + the account's api_key. Subuser: the main account's username + the subuser's api_key — cannot write to Delivery (writes return 403, and a few Delivery reads need the main account's api_key); use main credentials and set subuser_id to act on behalf of a subuser — a request body field on delivery jobs and drivers create/update, a column in the uploaded file on POST /delivery/jobs/bulk-upload.
Security Scheme Type: | http |
|---|---|
HTTP Authorization Scheme: | basic |