Track My Ride offers API access for our customers to programmatically access their user and GPS tracking data. API access is a feature that is dependent on the service plan that you are subscribed to, please check the Track My Ride website for further information.
Through the Track My Ride API, you will be able to access the same data that we use to populate the Track My Ride GPS tracking platform. This includes the location of your vehicles, driver information, reports, playback and much much more.
Accessing the Track My Ride API requires prerequisite knowledge in computer programming and web technologies.
The Track My Ride API access is restricted by API Key pairs. The API key pair consists of a User key and an API key. These keys are submitted with your API request and provide a way for our servers to authenticate your request and determine the data that should be returned. Your User key is unique to your user account. Sub-accounts also have their own set of User and API keys. Sub-accounts can also create API keys of their own
You can delete an API key at any time which will revoke all access to that API key being used in the future. Any browsers that are currently accessing the Track My Ride UI at https://app.trackmyride.com.au using the deleted API key will be logged out.
It is your responsibility to keep your API keys safe, as they provide full access to your Track My Ride data stream, tracking data and account information.
API keys can be managed, created or revoked through your Track My Ride account at https://app.trackmyride.com.au
- Navigate to the settings page in your Track My Ride account settings
- Click the API Keys tab
- Click ‘New’.
- Confirm that you wish to create a new API key
If you only want to allow access to certain vehicles, you can instead create a Sub-Account and select the vehicles you would like to give access to. As seen below, the API Demo account will only be granted access to vehicles, "TMR-S3" and "TMR-S4".
When creating a sub-account, a pair of API keys are also generated. These keys will only grant vehicle access to the vehicles selected for that sub-account.
To access the API keys, click anywhere along the row to view.
The Track My Ride API calls are grouped by the functionality "module". An "action" is then requested against that module. For example, if you wished to save changes to a user’s profile you would use the module ‘user’ with the action ‘save’
API calls are rate-limited and cached where applicable.
All API calls should be made to the following URL.
Variables can be submitted to the endpoint URL either via GET or POST requests as query params.
The following table shows the available variables for all requests
|module||string||Module this API request relates to||yes||alerts|
|action||string||The action this API request is|
|json||string||Return data formatted as JSON|
The default is XML
|data||array||Data to be sent with the request||Depending on the specific API action||See specific API action documentation for data structure|
An example GET request to the alerts module.
When sending "save" actions, data can be sent as form-data as seen below, or as query parameters.
By default, all data get-actions are returned as XML, other requests are returned as JSON. To enforce JSON, set the query param "json" as 1 by adding &json=1 in the request.
|unique_id||String||(Returned when applicable)|
The unique ID of the record being actioned
The result of the request
0 - The request was unsuccessful
1 - The request was successful
X - See the specific API action documentation
|error_id||Int||(Returned when applicable)|
Will be returned when success is 0, indicating the specific error condition for the API action.
See the API action documentation
|error||String||(Returned when applicable)|
Will be returned when success is 0, indicating the specific error condition as human readable print.
|You don't have permission to delete this api key|