List vehicles
curl --request GET \
--url https://api.fleeticc.com/api/partner/v1/vehicles \
--header 'X-Api-Key: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>'import requests
url = "https://api.fleeticc.com/api/partner/v1/vehicles"
headers = {
"X-Api-Key": "<api-key>",
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-Api-Key': '<api-key>',
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>'
}
};
fetch('https://api.fleeticc.com/api/partner/v1/vehicles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fleeticc.com/api/partner/v1/vehicles",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>",
"X-Signature: <x-signature>",
"X-Timestamp: <x-timestamp>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fleeticc.com/api/partner/v1/vehicles"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("X-Timestamp", "<x-timestamp>")
req.Header.Add("X-Signature", "<x-signature>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fleeticc.com/api/partner/v1/vehicles")
.header("X-Api-Key", "<api-key>")
.header("X-Timestamp", "<x-timestamp>")
.header("X-Signature", "<x-signature>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fleeticc.com/api/partner/v1/vehicles")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
request["X-Timestamp"] = '<x-timestamp>'
request["X-Signature"] = '<x-signature>'
response = http.request(request)
puts response.read_body{
"code": "200",
"message": "Partner vehicles listed successfully.",
"data": {
"vehicles": [
{
"vehicleId": "8f3c2a1b-4d5e-6f70-8192-a3b4c5d6e7f8",
"imei": "359633100000001",
"plateNumber": "ABC-1234",
"vehicleName": "Truck 01"
}
]
}
}{
"code": "401",
"message": "<string>",
"data": null,
"error": "PARTNER_AUTH_INVALID"
}Partner API
List vehicles
Get the vehicles linked to your Partner API account
GET
/
api
/
partner
/
v1
/
vehicles
List vehicles
curl --request GET \
--url https://api.fleeticc.com/api/partner/v1/vehicles \
--header 'X-Api-Key: <api-key>' \
--header 'X-Signature: <x-signature>' \
--header 'X-Timestamp: <x-timestamp>'import requests
url = "https://api.fleeticc.com/api/partner/v1/vehicles"
headers = {
"X-Api-Key": "<api-key>",
"X-Timestamp": "<x-timestamp>",
"X-Signature": "<x-signature>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {
'X-Api-Key': '<api-key>',
'X-Timestamp': '<x-timestamp>',
'X-Signature': '<x-signature>'
}
};
fetch('https://api.fleeticc.com/api/partner/v1/vehicles', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.fleeticc.com/api/partner/v1/vehicles",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>",
"X-Signature: <x-signature>",
"X-Timestamp: <x-timestamp>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.fleeticc.com/api/partner/v1/vehicles"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("X-Timestamp", "<x-timestamp>")
req.Header.Add("X-Signature", "<x-signature>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.fleeticc.com/api/partner/v1/vehicles")
.header("X-Api-Key", "<api-key>")
.header("X-Timestamp", "<x-timestamp>")
.header("X-Signature", "<x-signature>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fleeticc.com/api/partner/v1/vehicles")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
request["X-Timestamp"] = '<x-timestamp>'
request["X-Signature"] = '<x-signature>'
response = http.request(request)
puts response.read_body{
"code": "200",
"message": "Partner vehicles listed successfully.",
"data": {
"vehicles": [
{
"vehicleId": "8f3c2a1b-4d5e-6f70-8192-a3b4c5d6e7f8",
"imei": "359633100000001",
"plateNumber": "ABC-1234",
"vehicleName": "Truck 01"
}
]
}
}{
"code": "401",
"message": "<string>",
"data": null,
"error": "PARTNER_AUTH_INVALID"
}Get vehicles for the account tied to your API key. Use this to map Fleeticc
No query parameters.
vehicleId / imei into your system.
Request
string
required
Your Partner API key (
pk_…)string
required
Current Unix time in seconds
string
required
HMAC-SHA256 hex signature — see Authentication
Request example
export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/opt/homebrew/bin:$PATH"
KEY="$FLEETICC_API_KEY"
SECRET="$FLEETICC_API_SECRET"
REQ_PATH="/api/partner/v1/vehicles"
TS=$(date +%s)
BODY_HASH=$(printf '' | openssl dgst -sha256 -hex | awk '{print $NF}')
SIG=$(printf 'GET\n%s\n%s\n%s' "$REQ_PATH" "$TS" "$BODY_HASH" | openssl dgst -sha256 -hmac "$SECRET" -hex | awk '{print $NF}')
curl -sS -X GET "https://api.fleeticc.com$REQ_PATH" \
-H "X-Api-Key: $KEY" \
-H "X-Timestamp: $TS" \
-H "X-Signature: $SIG"
Response
string
"200" on successstring
Human-readable status
array
{
"code": "200",
"message": "Partner vehicles listed successfully.",
"data": {
"vehicles": [
{
"vehicleId": "8f3c2a1b-4d5e-6f70-8192-a3b4c5d6e7f8",
"imei": "359633100000001",
"plateNumber": "ABC-1234",
"vehicleName": "Truck 01"
}
]
}
}
Limits
Up to 60 requests per minute per API key.Authorizations
Also send X-Timestamp (Unix seconds) and X-Signature (HMAC-SHA256 hex). See Authentication.
Headers
Your Partner API key
Example:
"pk_078dd6a8b290dbce3543d18f9c6cf72d"
Current Unix time in seconds (±5 minutes)
Example:
"1761200000"
HMAC-SHA256 hex of METHOD\nPATH\nTIMESTAMP\nBODY_SHA256