List Depots
curl --request GET \
--url https://stage-api.getswitch.io/operations/depots \
--header 'Authorization: Bearer <token>'import requests
url = "https://stage-api.getswitch.io/operations/depots"
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/depots', 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/depots"
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": 7,
"name": "Lambrate Depot",
"address": "Via Rombon 11, 20134 Milano MI",
"latitude": 45.4887,
"longitude": 9.2415,
"company_slug": "acme-mobility",
"created_at": "2026-09-18T10:02:00Z",
"updated_at": "2026-11-03T08:30:00Z"
}
],
"total": 1,
"page": 1,
"size": 10,
"pages": 1
}Fleet Management
List Depots
List your company’s depots, 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:
depots:read
GET
/
operations
/
depots
List Depots
curl --request GET \
--url https://stage-api.getswitch.io/operations/depots \
--header 'Authorization: Bearer <token>'import requests
url = "https://stage-api.getswitch.io/operations/depots"
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/depots', 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/depots"
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": 7,
"name": "Lambrate Depot",
"address": "Via Rombon 11, 20134 Milano MI",
"latitude": 45.4887,
"longitude": 9.2415,
"company_slug": "acme-mobility",
"created_at": "2026-09-18T10:02:00Z",
"updated_at": "2026-11-03T08:30:00Z"
}
],
"total": 1,
"page": 1,
"size": 10,
"pages": 1
}Authorizations
HTTPBearerHTTPBearer
Query Parameters
Response
Depots retrieved successfully. Returns a paginated list of depot profiles matching the specified filter criteria.
