Welcome to the Fleetio API docs!
The sidebar on the left lists our overviews and guides. Visit the API Reference, to see a list of each API resource and available actions.
Sample data (eg; Vehicles) under a trial account is not accessible via the API. You'll need to create your own to test the API.
More on this here: Sample Data
Step 1: Generate an API Key
An API Key is a sensitive credential similar to a password. Please treat it as such.
We strongly recommend against pasting it online or committing it to a repository.
See our API Key Security guide for more information on how to safely handle API keys..
+ Add API Keybutton:
Add a label for your API key to describe how you plan to use it.
Step 2: Set Account-Token HTTP Header
Each request to the Fleetio API requires the presence of an
Account-Token HTTP header.
You can find this under the Account Token section of the API Keys page visited in Step 1.
Example Account Token:
Step 3: Set Authorization HTTP Header
You'll also need the
Authorization HTTP header. Please note the word
Token before the API Key.
Example API Key:
Don't forget the word
Authorization: Token a43csdf3gs8gh8ifgrei823tme
Step 4: Put It All Together
You're ready to make requests to the Fleetio API using your programming tool of choice!
cURL Request Example
For your first request, try the
--header "Authorization: Token a43csdf3gs8gh8ifgrei823tme" \
--header "Account-Token: 08765432z" \
Note that the
API_KEY is preceded by the word
Token. We require this because we accept multiple types of authorization methods.
"time_zone_name": "Central Time (US & Canada)",
In this example, you queried the
/users/me endpoint which returns useful information about the current user such as email, name, and time zone.
Fleetio API Docs Request Example
You can send a request right from the comfort of our API Reference!
Here's an example from the list Vehicles doc:
Visit our API Reference for more information on how to interact with the resources you need.