This feature is limited to PRO accounts only. If you're interested in learning more about our PRO feature set, contact your Account Manager or Support.
This article details all the steps required to set up the Fleetio integration.
Please contact your Fleetio Sales Representative for information regarding which Fleetio subscriptions may be required for advanced features such as Diagnostic Trouble Code reporting.
How It Works
This integration sends data from ClearPathGPS to Fleetio using notification rules configured on the Alerts page.
The following data types are supported:
Data Type | Description | Frequency |
Odometer | Last known mileage for the asset | Daily, ~3am PST |
Engine Hours | Last known engine hours for the asset | Daily, ~3am PST |
Fault Codes | Diagnostic trouble codes registered by the tracking device | Real time |
Location | All location events reported by the tracking device | Real time |
Fueling Location | Automatically adds the asset's location to Fleetio fueling events | On fueling event |
Step 1 - Fleetio - Generate API Key and Token
Navigate to the User Profile section of Fleetio by clicking the drop-down in the top left-hand corner.
On the next page in the menu on the left, click Manage API Keys.
Click +New API Key, and label the key 'ClearPathGPS'. Use API Version '2023-03-01' from the dropdown.
Note: The label must be spelled as one word without spaces, 'ClearPathGPS' in order for this to work. Upper and lower cases do not matter.
Copy and paste the long API Key and the shorter Account Token into a separate document or keep the web page up in a separate tab.
If you lose this page, you should be able to come back and access the same API Key and Account Token again. You can also copy and paste the curl command at the bottom; this includes both the API Key and the Account Token.
These will be used in later steps within your ClearPathGPS account.
Step 2 - Fleetio - Create External VehicleID
Navigate back to the general settings page in Fleetio and look for the section on the left called "External Vehicle IDs."
In the top right, select +Add External Vehicle ID.
Enter the following text into the fields exactly as shown below (in bold):
Label: ClearPathGPSDescription: ClearPathGPS Vehicle ID
Finally, click Save External Vehicle ID, you should see the External Vehicle ID has been created, and the 'key' should match like the one in the image below.
Step 3 - Fleetio - Assigning External VehicleIDs
On the "External Vehicle IDs" page from Step 2, click the 3-dot menu
button to the right of "clearpathgps" key and select Assign Vehicles.
In the ClearPathGPS column, you will need to enter the External Vehicle ID (also called the "CP #") found in the ClearPathGPS portal. To obtain this number:
Log in to your ClearPathGPS portal.
Navigate to Admin > Vehicle Admin.
Vehicle IDs begin with 'cp' and are followed by a six-digit number. (For example, cp012345.) Take note of this number for each vehicle you wish to assign.
Enter the CP # in the box next to the vehicle, and click the blue check mark/box on the right side. A green message will appear when successful.
Step 4 - ClearPathGPS - Creating Custom Alerts
It is strongly recommended that you start by creating a group within your ClearPathGPS account called "Fleetio Assets".
Add the tracking devices that you want to integrate with Fleetio to this group.
Any devices ("CP #s") you have assigned to assets within Fleetio must be in this group. See Step 3 for details on Assigning External Vehicle IDs.
Next, you need to make some 'Custom Alerts' by navigating to the Alerts page in your ClearPathGPS account.
If you're already working with a ClearPathGPS Support representative, they may have already set up these alerts within your account. If this is the case, you should see a series of custom alerts with "Fleetio" in the name on the 'Alerts' page.
Steps 5-9 detail the five different Alerts that can be created depending on the data you want to send over to Fleetio.
To begin, select 'Create Alert' in the top right-hand corner and scroll to the bottom until you see 'Custom Alert'.
Step 5 - ClearPathGPS - Send Odometer
To send over Odometer data, configure the custom Alert exactly as detailed below, starting with 'Alert Details':
Alert Name: x-api-fleetio-odo
Applies To: Group - Fleetio Assets
Status Code: All Codes
Cron Option: Daily
Rule Selector: lat != 0 && lon != 0
Minimum Interval: Leave all fields (days, hours, minutes) on the default 0
Trigger Action - Email: Uncheck this box
Trigger Action - Queue: Check this box
Click 'Next' to go to the 'Notify' page and do the following:
Notify - via Email: Leave this field blank
Notify - Email Message ("Enter Email Subject"): Leave this field blank
Notify - Email Message ("Enter Email Message"): Copy and paste everything in the block below
{
"apiAuth":"ADD API KEY HERE",
"apiToken":"ADD ACCOUNT TOKEN HERE",
"odo":"${odometer}"
}d. Notify - via Text: Leave this field blank
e. Notify - Text Message: Leave this field blank
3. Click 'Next' to go to the 'Finalize' page:
a. At the top of this page (you may need to scroll up), untoggle the 'Active' button, you will come back and activate this later on.
4. Click Save and move on to the next step.
Step 6 - ClearPathGPS - Send Engine Hours
Important: For engine hours to sync and show correctly in Fleetio, you must ensure that the 'Secondary Meter' is enabled for the asset and set to engine hours. Engine hours sent from ClearPathGPS will always be stored in this field.
To send over Engine Hours data, configure the custom Alert exactly as detailed below, starting with 'Alert Details':
Alert Name: x-api-fleetio-enghours
Applies To: Group - Fleetio Assets
Status Code: All Codes
Cron Option: Daily
Rule Selector: (true)
Minimum Interval: Leave all fields (days, hours, minutes) on the default
Trigger Action - Email: Uncheck this box
Trigger Action - Queue: Check this box
Click 'Next' to go to the 'Notify' page and do the following:
Notify - via Email: Leave this field blank
Notify - Email Message ("Enter Email Subject"): Leave this field blank
Notify - Email Message ("Enter Email Message"): Copy and paste everything in the block below
{
"apiAuth":"ADD API KEY HERE",
"apiToken":"ADD ACCOUNT TOKEN HERE",
"engHours":"${engineHours}",
"engHoursOffset":"${engineHoursOffset}"
}Notify - via Text: Leave this field blank
Notify - Text Message: Leave this field blank
Click 'Next' to go to the 'Finalize' page:
At the top of this page (you may need to scroll up), untoggle the 'Active' button; you will come back and activate this later on.
Click Save and move on to the next step.
Step 7 - ClearPathGPS - Send DTC/Fault Codes
To send over Diagnostic Trouble Codes or Fault Codes configure the custom Alert exactly as detailed below, starting with 'Alert Details':
Alert Name: x-api-fleetio-dtc
Applies To: Group - Fleetio Assets
Status Code: OBD Fault Code
Cron Option: No
Rule Selector: (true)
Minimum Interval: Leave all fields (days, hours, minutes) on the default 0
Trigger Action - Email: Uncheck this box
Trigger Action - Queue: Check this box
Click 'Next' to go to the 'Notify' page and do the following:
Notify - via Email: Leave this field blank
Notify - Email Message ("Enter Email Subject"): Leave this field blank
Notify - Email Message ("Enter Email Message"): Copy and paste everything in the block below
{
"apiAuth":"ADD API KEY HERE",
"apiToken":"ADD ACCOUNT TOKEN HERE",
"faultCodes":"${faultCodes}"
}Notify - via Text: Leave this field blank
Notify - Text Message: Leave this field blank
Click 'Next' to go to the 'Finalize' page:
At the top of this page (you may need to scroll up), untoggle the 'Active' button; you will come back and activate this later on.
Click Save and move on to Step 8.
Step 8 - ClearPathGPS - Send Location
To send over Location data, configure the custom Alert exactly as detailed below, starting with 'Alert Details':
Alert Name: x-api-fleetio-location
Applies To: Group - Fleetio Assets
Status Code: All Codes
Cron Option: No
Rule Selector: lat != 0 && lon != 0
Minimum Interval: Leave all fields (days, hours, minutes) on the default 0
Trigger Action - Email: Uncheck this box
Trigger Action - Queue: Check this box
Click 'Next' to go to the 'Notify' page and do the following:
Notify - via Email: Leave this field blank
Notify - Email Message ("Enter Email Subject"): Leave this field blank
Notify - Email Message ("Enter Email Message"): Copy and paste everything in the block below
{
"apiAuth":"ADD API KEY HERE",
"apiToken":"ADD ACCOUNT TOKEN HERE",
"lat":"${latitude}",
"lon":"${longitude}"
}Notify - via Text: Leave this field blank
Notify - Text Message: Leave this field blank
Click 'Next' to go to the 'Finalize' page:
At the top of this page (you may need to scroll up), untoggle the 'Active' button; you will come back and activate this later on.
Click Save and move on to Step 9.
Step 9 - ClearPathGPS - Geolocate Fueling Events
To Geolate Fueling Events within Fleetio, configure the custom Alert exactly as detailed below, starting with 'Alert Details':
Alert Name: x-api-fleetio-fuel
Applies To: Group - Fleetio Assets
Status Code: All Codes
Cron Option: Daily
Rule Selector: (true)
Minimum Interval: Leave all fields (days, hours, minutes) on the default 0
Trigger Action - Email: Uncheck this box
Trigger Action - Queue: Check this box
Click 'Next' to go to the 'Notify' page and do the following:
Notify - via Email: Leave this field blank
Notify - Email Message ("Enter Email Subject"): Leave this field blank
Notify - Email Message ("Enter Email Message"): Copy and paste everything in the block below
{
"apiAuth":"ADD API KEY HERE",
"apiToken":"ADD ACCOUNT TOKEN HERE"
}Notify - via Text: Leave this field blank
Notify - Text Message: Leave this field blank
Click Next to go to the 'Finalize' page:
At the top of this page (you may need to scroll up), untoggle the 'Active' button.
Click Save.








