Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request GET \ --url https://api.app.fleetit.com/v2/drivers/ \ --header 'Authorization: Bearer <token>'
import requests url = "https://api.app.fleetit.com/v2/drivers/" headers = {"Authorization": "Bearer <token>"} response = requests.get(url, headers=headers) print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.app.fleetit.com/v2/drivers/', 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.app.fleetit.com/v2/drivers/", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "Authorization: Bearer <token>" ], ]); $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.app.fleetit.com/v2/drivers/" req, _ := http.NewRequest("GET", url, nil) req.Header.Add("Authorization", "Bearer <token>") 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.app.fleetit.com/v2/drivers/") .header("Authorization", "Bearer <token>") .asString();
require 'uri' require 'net/http' url = URI("https://api.app.fleetit.com/v2/drivers/") http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Get.new(url) request["Authorization"] = 'Bearer <token>' response = http.request(request) puts response.read_body
[ { "id": 101, "driver_id": "DRV-2025-001", "first_name": "John", "last_name": "Doe", "address_line_1": "123 Main Street", "address_line_2": "Apt 4B", "city": "New York", "state": "NY", "zip": "10001", "contact_number": "1234567890", "email": "john.doe@example.com" } ]
List the existing drivers in the system
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful response
Unique identifier for the driver.
101
External driver ID or unique code.
"DRV-2025-001"
First name of the driver.
"John"
Last name of the driver.
"Doe"
Primary address line of the driver.
"123 Main Street"
Secondary address line (optional).
"Apt 4B"
City where the driver resides.
"New York"
State where the driver resides.
"NY"
ZIP code for the driver's address.
"10001"
Primary contact number for the driver.
"1234567890"
Email address of the driver.
"john.doe@example.com"
Was this page helpful?