The main purpose of the Driver API is to output information about the driver. This API has two types of requests – one for a specific driver and one for all drivers.
Request example for a specific driver:
GET /drivers/{driverId}?version=1&api_key=<…>
HOST:api.fm-track.com
Content-Type:application/json;charset=UTF-8
The following parameter is optional. If it is included, the request will return data for a single driver. If it is omitted, data will be returned for all drivers.
Parameter | Type | Description |
---|---|---|
driverId | String | Driver identifier |
For this API to work, the following parameters are mandatory:
Parameter | Type | Description |
---|---|---|
version | String | Version of the API, currently only version=1 is available |
api_key | String | User identification key |
A response example is shown below:
{ "id": "string", "first_name": "string", "last_name": "string" }
Response fields that can be received with every type of parameter are described in the next table:
Parameter | Type | Description | Units |
---|---|---|---|
id | String | Driver identifier | Text |
first_name | String | The driver’s first name | Text |
last_name | String | The driver’s last name | Text |
API endpoints, request parameters and responses can be previewed in “Swagger” through this link: https://api.fm-track.com