List Drivers
curl --request GET \
--url https://api.getswitch.io/operations/drivers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.getswitch.io/operations/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.getswitch.io/operations/drivers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getswitch.io/operations/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))
}{
"items": [
{
"id": 12,
"user_id": 57,
"email": "marco.bianchi@acme-mobility.com",
"full_name": "Marco Bianchi",
"phone": "+39 02 1234 5678",
"license_number": "MI1234567X",
"availability": {
"monday": {
"start": "08:00",
"end": "17:00"
},
"tuesday": {
"start": "08:00",
"end": "17:00"
},
"wednesday": {
"start": "08:00",
"end": "17:00"
},
"thursday": {
"start": "08:00",
"end": "17:00"
},
"friday": {
"start": "08:00",
"end": "17:00"
}
},
"is_active": true,
"company_slug": "acme-mobility",
"created_at": "2026-10-01T07:45:00Z",
"updated_at": "2026-11-20T12:10:00Z"
}
],
"total": 1,
"page": 1,
"size": 10,
"pages": 1
}Fleet Management
List Drivers
List your company’s drivers, paginated with page and size and filtered with the query parameters below. Set include_children_companies to also list those of your child companies.
Failure Modes:
- 401: Token is missing or invalid
- 403: Insufficient permissions
- 422: Invalid filter, sort field or page parameters
Required Auth Scopes:
drivers:read
GET
/
operations
/
drivers
List Drivers
curl --request GET \
--url https://api.getswitch.io/operations/drivers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.getswitch.io/operations/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.getswitch.io/operations/drivers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.getswitch.io/operations/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))
}{
"items": [
{
"id": 12,
"user_id": 57,
"email": "marco.bianchi@acme-mobility.com",
"full_name": "Marco Bianchi",
"phone": "+39 02 1234 5678",
"license_number": "MI1234567X",
"availability": {
"monday": {
"start": "08:00",
"end": "17:00"
},
"tuesday": {
"start": "08:00",
"end": "17:00"
},
"wednesday": {
"start": "08:00",
"end": "17:00"
},
"thursday": {
"start": "08:00",
"end": "17:00"
},
"friday": {
"start": "08:00",
"end": "17:00"
}
},
"is_active": true,
"company_slug": "acme-mobility",
"created_at": "2026-10-01T07:45:00Z",
"updated_at": "2026-11-20T12:10:00Z"
}
],
"total": 1,
"page": 1,
"size": 10,
"pages": 1
}Authorizations
HTTPBearerHTTPBearer
Query Parameters
Response
Drivers retrieved successfully. Returns a paginated list of driver profiles matching the specified filter criteria.
