Skip to main content
GET
Get Station Capacity Alerts

Authorizations

Authorization
string
header
required

An API key, sent as Authorization: Bearer <key>. Create one in the SWITCH Copilot under Settings → API keys (needs the API keys permission in your company), or with POST /auth/api-keys. The key is shown once, at creation.

Path Parameters

provider
string
required

Identifier of the mobility provider whose data you analyse, e.g. acme-bikes. It must be the provider of a data source enabled for your company's station-based analytics; any other value is refused with 404 no_data_binding (kind: source). Your SWITCH contact tells you the provider identifiers and locations enabled for your company.

Query Parameters

geolabel
string
required

Location whose stations to check, e.g. milan: one of the locations (or their geolabels) enabled for your company with this provider. Any other value is refused with 404 no_data_binding (kind: location).

Response

Capacity alert data retrieved. Returns full-capacity stations, high-capacity stations, all station statuses, and a feasibility assessment.

Capacity alerts analysis response with real-time station status.

full_capacity_stations
StationCapacityStatus · object[]
required

Stations that are completely full (no available docks for bike returns)

Example:
high_capacity_stations
StationCapacityStatus · object[]
required

Stations with high capacity utilization (>90% full)

Example:
all_stations_status
StationCapacityStatus · object[]
required

Current status of all stations in the specified area

Example:
feasibility
string
required

Analysis feasibility status indicating if the query was successful

Examples:

"feasible"

"not-feasible"

message
string
required

Human-readable message describing the analysis results and data timeframe

Example:

"Real-time alerting system for stations at capacity where users cannot return bikes. Data from last 3 hours."