Get Station by ID
curl --request GET \
--url https://api.getswitch.io/operations/stations/{station_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.getswitch.io/operations/stations/{station_id}"
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/{station_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://api.getswitch.io/operations/stations/{station_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))
}{
"address": "Piazza del Duomo, 20122 Milano MI",
"company_name": "Acme Mobility",
"company_slug": "acme-mobility",
"created_at": "2026-09-18T10:05:00Z",
"id": 21,
"latitude": 45.4642,
"longitude": 9.19,
"max_capacity": 20,
"name": "Duomo",
"polygon": [
[
9.1893,
45.4638
],
[
9.1907,
45.4638
],
[
9.1907,
45.4647
],
[
9.1893,
45.4647
],
[
9.1893,
45.4638
]
],
"updated_at": "2026-11-03T08:31:00Z"
}Fleet Management
Get Station by ID
Get one station by ID.
Failure Modes:
- 401: Token is missing or invalid
- 403: Insufficient permissions, or the station belongs to a company you cannot access
- 404: No station with this ID
Required Auth Scopes:
stations:read
GET
/
operations
/
stations
/
{station_id}
Get Station by ID
curl --request GET \
--url https://api.getswitch.io/operations/stations/{station_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.getswitch.io/operations/stations/{station_id}"
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/{station_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://api.getswitch.io/operations/stations/{station_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))
}{
"address": "Piazza del Duomo, 20122 Milano MI",
"company_name": "Acme Mobility",
"company_slug": "acme-mobility",
"created_at": "2026-09-18T10:05:00Z",
"id": 21,
"latitude": 45.4642,
"longitude": 9.19,
"max_capacity": 20,
"name": "Duomo",
"polygon": [
[
9.1893,
45.4638
],
[
9.1907,
45.4638
],
[
9.1907,
45.4647
],
[
9.1893,
45.4647
],
[
9.1893,
45.4638
]
],
"updated_at": "2026-11-03T08:31:00Z"
}Authorizations
HTTPBearerHTTPBearer
Response
Station retrieved successfully. Returns the complete station profile including coordinates, capacity, optional polygon boundary, and company ownership.
Public schema for a station resource.
Exposes station details to API consumers, including coordinates, capacity, optional polygon boundary, and company ownership.
