List Stations
curl --request GET \
--url https://api.getswitch.io/operations/stations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.getswitch.io/operations/stations"
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/stations', 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/stations"
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": 21,
"name": "Duomo",
"address": "Piazza del Duomo, 20122 Milano MI",
"max_capacity": 20,
"latitude": 45.4642,
"longitude": 9.19,
"polygon": [
[
9.1893,
45.4638
],
[
9.1907,
45.4638
],
[
9.1907,
45.4647
],
[
9.1893,
45.4647
],
[
9.1893,
45.4638
]
],
"company_slug": "acme-mobility",
"company_name": "Acme Mobility",
"created_at": "2026-09-18T10:05:00Z",
"updated_at": "2026-11-03T08:31:00Z"
}
],
"total": 1,
"page": 1,
"size": 10,
"pages": 1
}Fleet Management
List Stations
List your company’s stations, 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:
stations:read
GET
/
operations
/
stations
List Stations
curl --request GET \
--url https://api.getswitch.io/operations/stations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.getswitch.io/operations/stations"
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/stations', 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/stations"
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": 21,
"name": "Duomo",
"address": "Piazza del Duomo, 20122 Milano MI",
"max_capacity": 20,
"latitude": 45.4642,
"longitude": 9.19,
"polygon": [
[
9.1893,
45.4638
],
[
9.1907,
45.4638
],
[
9.1907,
45.4647
],
[
9.1893,
45.4647
],
[
9.1893,
45.4638
]
],
"company_slug": "acme-mobility",
"company_name": "Acme Mobility",
"created_at": "2026-09-18T10:05:00Z",
"updated_at": "2026-11-03T08:31:00Z"
}
],
"total": 1,
"page": 1,
"size": 10,
"pages": 1
}Authorizations
HTTPBearerHTTPBearer
Query Parameters
Response
Stations retrieved successfully. Returns a paginated list of station profiles matching the specified filter criteria.
