Get Driver by ID
curl --request GET \
--url https://stage-api.getswitch.io/operations/drivers/{driver_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://stage-api.getswitch.io/operations/drivers/{driver_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://stage-api.getswitch.io/operations/drivers/{driver_id}', 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://stage-api.getswitch.io/operations/drivers/{driver_id}"
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))
}{
"availability": {
"friday": {
"end": "17:00",
"start": "08:00"
},
"monday": {
"end": "17:00",
"start": "08:00"
},
"thursday": {
"end": "17:00",
"start": "08:00"
},
"tuesday": {
"end": "17:00",
"start": "08:00"
},
"wednesday": {
"end": "17:00",
"start": "08:00"
}
},
"company_slug": "acme-mobility",
"created_at": "2026-10-01T07:45:00Z",
"email": "marco.bianchi@acme-mobility.com",
"full_name": "Marco Bianchi",
"id": 12,
"is_active": true,
"license_number": "MI1234567X",
"phone": "+39 02 1234 5678",
"updated_at": "2026-11-20T12:10:00Z",
"user_id": 57
}Fleet Management
Get Driver by ID
Get one driver by ID.
Failure Modes:
- 401: Token is missing or invalid
- 403: Insufficient permissions, or the driver belongs to a company you cannot access
- 404: No driver with this ID
Required Auth Scopes:
drivers:read
GET
/
operations
/
drivers
/
{driver_id}
Get Driver by ID
curl --request GET \
--url https://stage-api.getswitch.io/operations/drivers/{driver_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://stage-api.getswitch.io/operations/drivers/{driver_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://stage-api.getswitch.io/operations/drivers/{driver_id}', 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://stage-api.getswitch.io/operations/drivers/{driver_id}"
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))
}{
"availability": {
"friday": {
"end": "17:00",
"start": "08:00"
},
"monday": {
"end": "17:00",
"start": "08:00"
},
"thursday": {
"end": "17:00",
"start": "08:00"
},
"tuesday": {
"end": "17:00",
"start": "08:00"
},
"wednesday": {
"end": "17:00",
"start": "08:00"
}
},
"company_slug": "acme-mobility",
"created_at": "2026-10-01T07:45:00Z",
"email": "marco.bianchi@acme-mobility.com",
"full_name": "Marco Bianchi",
"id": 12,
"is_active": true,
"license_number": "MI1234567X",
"phone": "+39 02 1234 5678",
"updated_at": "2026-11-20T12:10:00Z",
"user_id": 57
}Authorizations
HTTPBearerHTTPBearer
Response
Driver retrieved successfully. Returns the complete driver profile including user details, availability, license info, and active status.
Public schema for a driver resource.
Exposes driver details to API consumers, including user details, availability, license info, and active status.
Working hours per weekday: keys monday to sunday, each {"start": "HH:MM", "end": "HH:MM"}; a missing day means not available.
Example:
{
"friday": { "end": "17:00", "start": "08:00" },
"monday": { "end": "17:00", "start": "08:00" },
"thursday": { "end": "17:00", "start": "08:00" },
"tuesday": { "end": "17:00", "start": "08:00" },
"wednesday": { "end": "17:00", "start": "08:00" }
}
