# SWITCH > SWITCH API reference and guides: forecasts, fleet operations, routing, analytics, and Myles in your AI assistant. - [Introduction](https://stage-docs.getswitch.io/index.md): Call SWITCH forecasts, fleet operations, routing and analytics from your own systems. - [List API Keys](https://stage-docs.getswitch.io/api-reference/api-keys/list-api-keys.md): The API keys you created, 10 per page by default (`size` up to 50). Only your own keys are listed, and never the key string itself. Filter by name, id, expiry or creation time, search by name, or by scope (`authscope__*`). `order_by` (for example `["-created_at"]`), `uuid__in` and `name__in` are lis… - [Create API Key](https://stage-docs.getswitch.io/api-reference/api-keys/create-api-key.md): Create an API key for yourself. The response carries the key string in `key`: it is shown **only once**, so store it safely right away; later calls return the key's details but never the key again. Send it as `Authorization: Bearer `. - [Get API Key](https://stage-docs.getswitch.io/api-reference/api-keys/get-api-key.md): One of your API keys: name, expiry, creation time and scopes. The key string itself is never returned. - [Delete API Key](https://stage-docs.getswitch.io/api-reference/api-keys/delete-api-key.md): Delete one of your API keys. It stops working immediately and this cannot be undone. Returns the deleted key's details. - [Get Current User Profile](https://stage-docs.getswitch.io/api-reference/api-keys/get-current-user-profile.md): Who you are authenticated as. With an API key, this is the user who created the key. Returns the user (`id`, `full_name`, `email`), their company (`company_slug` and `company`), and `access`: your level per resource and the locations, fleets, analyses and forecasts your company's data covers. Use it… - [Download Grid File For Single Data Scenario](https://stage-docs.getswitch.io/api-reference/grids/download-grid-file-for-single-data-scenario.md): Downloads the spatial grid your company's forecasts and imbalance are computed on, for one location, grid type and tile size, as a `grid.geojson` file. The file is a GeoJSON FeatureCollection with one Polygon feature per zone; each feature's only property is `zone_id`, the same zone id used as key i… - [Download Grid File For Specific Data Scenario](https://stage-docs.getswitch.io/api-reference/grids/download-grid-file-for-specific-data-scenario.md): Same as `GET /grids/stream`, but checks that `data_scenario_id` is your company's data scenario first. Returns the grid as a `grid.geojson` file: a GeoJSON FeatureCollection with one Polygon feature per zone, whose only property is `zone_id`. - [Get Forecasted Demand](https://stage-docs.getswitch.io/api-reference/forecast/get-forecasted-demand.md): Retrieve demand forecast predictions for your company, for the forecast type enabled for it and the applied filters. This endpoint automatically picks your company's only forecast type and returns time-series predictions aggregated by spatial zones. - [Get Forecasted Demand as GeoJSON](https://stage-docs.getswitch.io/api-reference/forecast/get-forecasted-demand-as-geojson.md): Retrieve demand forecast predictions as GeoJSON format for your company, for the forecast type enabled for it and the applied filters. This endpoint automatically picks your company's only forecast type and returns time-series predictions merged with spatial grid geometries in GeoJSON format. Zero-v… - [Get Forecasted Demand by Type](https://stage-docs.getswitch.io/api-reference/forecast/get-forecasted-demand-by-type.md): Retrieve demand forecast predictions for a specific forecast type within your company's forecasts. This endpoint allows explicit selection of the forecast type when multiple types are configured, providing time-series predictions aggregated by spatial zones for the specified forecast model. - [Get Forecasted Demand by Type as GeoJSON](https://stage-docs.getswitch.io/api-reference/forecast/get-forecasted-demand-by-type-as-geojson.md): Retrieve demand forecast predictions as GeoJSON format for a specific forecast type among your company's forecasts. This endpoint allows explicit selection of the forecast type when multiple types are configured, providing time-series predictions merged with spatial grid geometries in GeoJSON format… - [Get Imbalance Snapshot](https://stage-docs.getswitch.io/api-reference/operations/get-imbalance-snapshot.md): Calculate and retrieve vehicle distribution imbalance for zones within a specified time range. Imbalance is defined as the difference between actual deployed vehicles and forecasted demand per zone, helping identify zones with high demand and low supply for resource allocation optimization. - [Get Imbalance Snapshot as GeoJSON](https://stage-docs.getswitch.io/api-reference/operations/get-imbalance-snapshot-as-geojson.md): Calculate and retrieve vehicle distribution imbalance as GeoJSON format for zones within a specified time range. This endpoint returns the same imbalance calculations as the standard imbalance endpoint but merged with spatial grid geometries in GeoJSON format for visualization purposes. - [Get Rebalancing Suggestions](https://stage-docs.getswitch.io/api-reference/operations/get-rebalancing-suggestions.md): **Deprecated:** use `POST /operations/suggest`, which supports configurable strategies. - [Generate Operations Based on Strategies](https://stage-docs.getswitch.io/api-reference/operations/generate-operations-based-on-strategies.md): Generate a list of tasks based on provided strategies, sorting criteria, and filtering conditions. This endpoint processes multiple strategies to create actionable tasks for vehicle operations and zone management. - [Solve Routing Optimization](https://stage-docs.getswitch.io/api-reference/routing/solve-routing-optimization.md): Generate an optimized routing plan for a vehicle to efficiently execute a pool of operations within specified constraints. This endpoint uses vehicle routing algorithms to determine the best sequence of operations considering capacity limits, time constraints, and geographic locations. - [Solve Multi-Fleet Routing (Two-Phase Greedy)](https://stage-docs.getswitch.io/api-reference/routing/solve-multi-fleet-routing-two-phase-greedy.md): Distribute a pool of operations across multiple vehicles (fleets) and compute an optimized route for each vehicle using a two-phase greedy approach: - [List Sessions](https://stage-docs.getswitch.io/api-reference/routing-sessions/list-sessions.md): List your company's routing sessions, paginated with `page` and `size`, with their status, planned duration and operation counts. Set `include_children_companies` to also list those of your child companies. - [Dispatch Session](https://stage-docs.getswitch.io/api-reference/routing-sessions/dispatch-session.md): Dispatch a routing session: its routes, their operations in order, and the drivers of each route, in one transaction. Typically the body is built from a routing plan (`POST /operations/routing` or `/operations/routing/multi-fleet`). Routes without operations are skipped. Drivers then see their route… - [Get Session Detail](https://stage-docs.getswitch.io/api-reference/routing-sessions/get-session-detail.md): Get a routing session with all its routes, drivers and operations. Sessions of your child companies are included. - [Update Session](https://stage-docs.getswitch.io/api-reference/routing-sessions/update-session.md): Update a routing session. Today only its owning company can be changed. - [Delete Session](https://stage-docs.getswitch.io/api-reference/routing-sessions/delete-session.md): Delete a routing session. It and its routes no longer appear in lists and lookups, and drivers no longer see its routes. - [List Routes in Session](https://stage-docs.getswitch.io/api-reference/routing-sessions/list-routes-in-session.md): List the routes of a routing session, paginated with `page` and `size`, with their status, progress and drivers. Set `include_children_companies` to read a session of one of your child companies. - [List Routes (Cross-Session)](https://stage-docs.getswitch.io/api-reference/routing-sessions/list-routes-cross-session.md): List routes across all sessions, newest first, for a driver app or a dispatch board. `scope` chooses whose routes: `assigned_to_me` (routes you are a driver of, in any company, the default), `my_company`, or `company_tree` (your company and its child companies). `status` filters by route status (see… - [Get Route Detail](https://stage-docs.getswitch.io/api-reference/routing-sessions/get-route-detail.md): Get a route with its operations, drivers, status and progress. Drivers assigned to the route can read it whatever their company. - [Update Route](https://stage-docs.getswitch.io/api-reference/routing-sessions/update-route.md): Update a route's `reroute_enabled`, `routing_parameters` or `operations_parameters`. Only the fields you send change; the two parameter objects are replaced as a whole and cannot be null. - [Assign Drivers to Route](https://stage-docs.getswitch.io/api-reference/routing-sessions/assign-drivers-to-route.md): Assign one or more drivers to a route. Each must be an active user of your company or its child companies; if one fails, none is assigned. - [Remove Driver from Route](https://stage-docs.getswitch.io/api-reference/routing-sessions/remove-driver-from-route.md): Remove a driver from a route. The driver no longer sees the route in `assigned_to_me`. - [List Operations in Route](https://stage-docs.getswitch.io/api-reference/routing-operations/list-operations-in-route.md): List all operations of a route, ordered by step. Drivers assigned to the route can read it whatever their company. - [Complete Operation](https://stage-docs.getswitch.io/api-reference/routing-operations/complete-operation.md): Mark an operation as done: sets `completed_at` to now and clears any cancellation. Some operations change the rest of the route, returned in `side_effects`: completing a `recharge_pickup` adds a `start_charge` right after it, and completing a `start_charge` moves the next open `end_charge` to the sa… - [Undo Operation](https://stage-docs.getswitch.io/api-reference/routing-operations/undo-operation.md): Reopen a completed or cancelled operation: clears `completed_at` and `cancelled`. Operations added by completing it are not removed. - [Cancel Operation](https://stage-docs.getswitch.io/api-reference/routing-operations/cancel-operation.md): Cancel an operation with a reason (1-500 characters), stored in `cancelled`; clears `completed_at`. - [Restore Operation](https://stage-docs.getswitch.io/api-reference/routing-operations/restore-operation.md): Clear the cancellation of an operation. `completed_at` is not changed. - [Generate Reroute Preview](https://stage-docs.getswitch.io/api-reference/routing-operations/generate-reroute-preview.md): Re-plan the open operations of a running route (neither completed nor cancelled) and return the proposed order, without changing the route. The plan uses the route's `routing_parameters` (start and end point, start time, maximum duration, capacities); without a start or end point it starts at the fi… - [Optimize Reroute](https://stage-docs.getswitch.io/api-reference/routing-operations/optimize-reroute.md): Same as `reroute/generate`. The optional `operations_parameters` in the body is not used yet. - [Apply Rerouted Operations](https://stage-docs.getswitch.io/api-reference/routing-operations/apply-rerouted-operations.md): Replace the open operations of a route with `new_operations`, usually from `reroute/generate`. Completed and cancelled operations stay; the new ones follow them in the given order. All or nothing. - [List Cargo Vehicles](https://stage-docs.getswitch.io/api-reference/fleet-management/list-cargo-vehicles.md): List your company's cargo vehicles, paginated with `page` and `size` and filtered with the query parameters below. Set `include_children_companies` to also list those of your child companies. - [Create Cargo Vehicle](https://stage-docs.getswitch.io/api-reference/fleet-management/create-cargo-vehicle.md): Add a cargo vehicle to your fleet: the van or cargo bike your operators drive, with how many items of each kind it carries. - [Get Cargo Vehicle by ID](https://stage-docs.getswitch.io/api-reference/fleet-management/get-cargo-vehicle-by-id.md): Get one cargo vehicle by ID. - [Update Cargo Vehicle](https://stage-docs.getswitch.io/api-reference/fleet-management/update-cargo-vehicle.md): Update a cargo vehicle. Only the fields you send change; `capacities` replaces the whole object. - [Delete Cargo Vehicle](https://stage-docs.getswitch.io/api-reference/fleet-management/delete-cargo-vehicle.md): Delete a cargo vehicle. It no longer appears in lists and lookups. - [List Depots](https://stage-docs.getswitch.io/api-reference/fleet-management/list-depots.md): 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. - [Create Depot](https://stage-docs.getswitch.io/api-reference/fleet-management/create-depot.md): Add a depot: a place where operators start and end their shifts and refill their vehicles. - [Get Depot by ID](https://stage-docs.getswitch.io/api-reference/fleet-management/get-depot-by-id.md): Get one depot by ID. - [Update Depot](https://stage-docs.getswitch.io/api-reference/fleet-management/update-depot.md): Update a depot. Only the fields you send change; send `latitude` and `longitude` together to move it. - [Delete Depot](https://stage-docs.getswitch.io/api-reference/fleet-management/delete-depot.md): Delete a depot. It no longer appears in lists and lookups. - [Synchronize Company Stations](https://stage-docs.getswitch.io/api-reference/fleet-management/synchronize-company-stations.md): Replace all your company's stations with the ones your connected fleet platform publishes, for every location configured for your operations. The import is all or nothing: if any station cannot be read or is invalid (missing name, address or capacity, bad coordinates or polygon), nothing changes. On… - [List Stations](https://stage-docs.getswitch.io/api-reference/fleet-management/list-stations.md): 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. - [Create Station](https://stage-docs.getswitch.io/api-reference/fleet-management/create-station.md): Add a docking station, with its capacity and optionally its area as a polygon. - [Get Station by ID](https://stage-docs.getswitch.io/api-reference/fleet-management/get-station-by-id.md): Get one station by ID. - [Update Station](https://stage-docs.getswitch.io/api-reference/fleet-management/update-station.md): Update a station. Only the fields you send change; send `latitude` and `longitude` together to move it, and `polygon: null` to remove its area. - [Delete Station](https://stage-docs.getswitch.io/api-reference/fleet-management/delete-station.md): Delete a station. It no longer appears in lists and lookups. - [List Drivers](https://stage-docs.getswitch.io/api-reference/fleet-management/list-drivers.md): List your company's drivers, paginated with `page` and `size` and filtered with the query parameters below. Set `include_children_companies` to also list those of your child companies. - [Create Driver](https://stage-docs.getswitch.io/api-reference/fleet-management/create-driver.md): Create a driver profile. If a user with the email exists in your company or a company you manage, the profile is linked to that account; otherwise a new account is created. The account gets the scopes `cargo-vehicles:read`, `depots:read`, `stations:read` and `drivers:read`, which you must hold yours… - [Get Driver by ID](https://stage-docs.getswitch.io/api-reference/fleet-management/get-driver-by-id.md): Get one driver by ID. - [Update Driver](https://stage-docs.getswitch.io/api-reference/fleet-management/update-driver.md): Update a driver's phone, license number, working hours or active status. Only the fields you send change; name and email belong to the user account and cannot be changed here. - [Delete Driver](https://stage-docs.getswitch.io/api-reference/fleet-management/delete-driver.md): Delete a driver profile. It no longer appears in lists and lookups; the user account is kept. - [Get Fleet Settings](https://stage-docs.getswitch.io/api-reference/fleet-management/get-fleet-settings.md): Whether your company runs a station-based (docked) or a free-floating fleet. Companies that never set it are station-based. - [Update Fleet Settings](https://stage-docs.getswitch.io/api-reference/fleet-management/update-fleet-settings.md): Set whether your company runs a station-based (docked) or a free-floating fleet. - [Get Free-Float Trip History](https://stage-docs.getswitch.io/api-reference/free-float-analytics/get-free-float-trip-history.md): Retrieve completed trip history data for a free-floating vehicle provider. Returns spatial start/end events, hourly start/end events, completed trip totals, and calendar-period trip counts. - [Get Live Fleet Status](https://stage-docs.getswitch.io/api-reference/live/get-live-fleet-status.md): Every vehicle of your fleet in one location right now, read live from your connected fleet platform: position, type and model, battery level, status and when it was last seen and last moved. The totals count the vehicles, those whose status is `available` or `ready`, and those with and without a val… - [List Live Deliveries](https://stage-docs.getswitch.io/api-reference/live/list-live-deliveries.md): The deliveries in progress at one point of sale, read live from your connected delivery platform (up to 50): each courier trip with its stops, estimated and actual departure, arrival and return times, and a status. A trip is `completed` when every stop is delivered, and `_but_late` when the courier… - [Get Live Transit Status](https://stage-docs.getswitch.io/api-reference/live/get-live-transit-status.md): The public-transit vehicles in service in one location right now, from the network's realtime feed matched with its timetable: position, line, next stop and delay of each vehicle, a punctuality summary, the five lines with the highest average delay, and active service alerts. - [Get Live Transit Line](https://stage-docs.getswitch.io/api-reference/live/get-live-transit-line.md): One line of the transit network, from its timetable: names and colour, and for each direction its headsign, ordered stops and route shapes (GeoJSON). Use it to draw a line seen in the live transit status. - [Get Station Summary Metrics](https://stage-docs.getswitch.io/api-reference/station-based-analytics/get-station-summary-metrics.md): Retrieve an executive summary of key performance indicators for a station-based mobility provider. Returns system-wide metrics including total station count, average vehicle availability, shortage rate, e-bike ratio, peak shortage hour, and the number of problematic stations. - [Get Vehicle Shortage Mapping](https://stage-docs.getswitch.io/api-reference/station-based-analytics/get-vehicle-shortage-mapping.md): Map station-level vehicle shortage rates and identify chronic shortage locations. Returns hourly shortage patterns by day type (weekday vs weekend), per-station shortage metrics with geographic coordinates, and historical availability time series. - [Get Commuting Station Analysis](https://stage-docs.getswitch.io/api-reference/station-based-analytics/get-commuting-station-analysis.md): Identify stations with strong commuting patterns by analyzing morning versus evening demand differences. Returns station-level classification (Morning Hotspot, Evening Hotspot, or Balanced) along with demand patterns, morning/evening ratios, and a summary by station type. - [Get Missed Demand Estimation](https://stage-docs.getswitch.io/api-reference/station-based-analytics/get-missed-demand-estimation.md): Estimate lost trip opportunities caused by vehicle shortages. Returns hourly missed demand patterns showing when demand could not be served, and per-station metrics identifying which locations have the highest estimated missed demand. - [Get Station Refill Time Analysis](https://stage-docs.getswitch.io/api-reference/station-based-analytics/get-station-refill-time-analysis.md): Analyze how long stations remain empty and identify slow refill patterns. Returns average refill times by hour and station, stations with the longest shortage durations, refill efficiency metrics, and peak-hour refill ratios. - [Get Competitor Opportunity Analysis](https://stage-docs.getswitch.io/api-reference/station-based-analytics/get-competitor-opportunity-analysis.md): Identify underserved areas and expansion opportunities based on shortage patterns and demand variability. Returns a ranked list of stations with opportunity scores, priority categories, shortage rates, and geographic coordinates for competitive analysis. - [Get Deployment Window Optimization](https://stage-docs.getswitch.io/api-reference/station-based-analytics/get-deployment-window-optimization.md): Analyze optimal times to deploy vehicles by identifying hourly shortage patterns across the network. Returns recommended deployment windows, shortage rates by hour, station-level deployment priority metrics, and efficiency scores. - [Get Station Trip Volume Analysis](https://stage-docs.getswitch.io/api-reference/station-based-analytics/get-station-trip-volume-analysis.md): Estimate trip volume and demand patterns using vehicle availability changes as a proxy. Returns daily and hourly trip estimates, stations ranked by activity, demand patterns by time of day, and total system utilization metrics. - [Get Demand Growth Trends](https://stage-docs.getswitch.io/api-reference/station-based-analytics/get-demand-growth-trends.md): Identify stations with growing or declining demand trends over time using linear regression. Returns stations ranked by growth rate, utilization trend coefficients, growing vs declining station lists, and confidence scores for each trend. - [Get Calendar Event Impact Analysis](https://stage-docs.getswitch.io/api-reference/station-based-analytics/get-calendar-event-impact-analysis.md): Measure how local events (concerts, sports, festivals) impact mobility demand. Returns event-day vs baseline comparisons, impact analysis by event type, station-level impact during events, and demand multiplier forecasts for future event planning. - [Get Station Capacity Alerts](https://stage-docs.getswitch.io/api-reference/station-based-analytics/get-station-capacity-alerts.md): Retrieve real-time station capacity status and identify stations at or near full capacity where users cannot return vehicles. Returns lists of full-capacity stations, high-capacity stations (>90% full), current status of all stations, and a feasibility assessment. - [Get E-Bike Usage Pattern Analysis](https://stage-docs.getswitch.io/api-reference/station-based-analytics/get-e-bike-usage-pattern-analysis.md): Examine e-bike versus pedal bike usage patterns and identify fleet optimization opportunities. Returns hourly e-bike availability patterns, station-level e-bike distribution, system-wide e-bike metrics, and deployment opportunity scores for targeted e-bike expansion. - [Get After-Hours Demand Analysis](https://stage-docs.getswitch.io/api-reference/station-based-analytics/get-after-hours-demand-analysis.md): Analyze mobility demand occurring outside the standard operating hours of the station-based system. Returns hour-by-hour demand simulation, 24-hour demand patterns for comparison, station-level after-hours metrics with opportunity scores, summary metrics, and the current service hours configuration. - [Get Zone Trip Volume](https://stage-docs.getswitch.io/api-reference/zone-based-analytics/get-zone-trip-volume.md): Trip starts and ends per zone and per hour of the day for a free-floating service, from recorded trips. Zones are geohash cells (default precision 7, about 150 m) with their centroid, boundary and, when available, population, public-transit stops and top points of interest. Zones are sorted by total… - [Get Commuting Zone Analysis](https://stage-docs.getswitch.io/api-reference/zone-based-analytics/get-commuting-zone-analysis.md): Classify zones as Residential, Commercial or Balanced from their rush-hour flows: a Residential zone sends more trips than it receives in the morning (7-9 UTC) and receives more in the evening (17-19 UTC); a Commercial zone does the opposite. Returns each zone's average morning and evening inflow an… - [Get Zone Shortage Mapping](https://stage-docs.getswitch.io/api-reference/zone-based-analytics/get-zone-shortage-mapping.md): Per-zone shortage rate (share of hours with no vehicle in the zone), the shortage rate by hour for weekdays and weekends, and the average number of vehicles over time, for the network and per zone. - [Get Zone Growth Trends](https://stage-docs.getswitch.io/api-reference/zone-based-analytics/get-zone-growth-trends.md): Zones whose daily trip activity is growing or declining, from a linear regression over the period. `growth_rate` is the weekly change of daily trips and `confidence_score` the R² of the fit; only zones with a clear trend (R² above 0.3) are listed. `feasibility` is `limited` while zones need less tha… - [Get Transit Punctuality](https://stage-docs.getswitch.io/api-reference/transit-analytics/get-transit-punctuality.md): Punctuality of a transit network over a period, from its realtime stop events matched with the timetable. Returns the overall shares of early, on-time and late stop events with average and 90th-percentile delay, and the same figures by hour, line, stop and day. An event is on time inside `definition… - [Get Transit Line Details](https://stage-docs.getswitch.io/api-reference/transit-analytics/get-transit-line-details.md): One line of the transit network, from its timetable: names and colour, and for each direction its headsign, ordered stops and route shapes (GeoJSON). Use it to draw a line from the punctuality or service delivery results. - [Get Transit Service Delivery](https://stage-docs.getswitch.io/api-reference/transit-analytics/get-transit-service-delivery.md): Scheduled versus operated trips of a transit network over a period. A scheduled trip counts as operated when realtime data shows it ran; otherwise it is `cancelled` when the feed says so (only some feeds do) or `missing` (no realtime data: not necessarily cancelled). Returns the totals, the figures… - [List Fleet Vehicles](https://stage-docs.getswitch.io/api-reference/integrations/list-fleet-vehicles.md): Vehicles of your fleet in one location, live from your fleet platform: position, battery, platform status and last activity. Filtering, sorting and pagination (`filter`, `sort`, `limit`, `cursor`) apply to the whole list; follow `next_cursor` while `has_more` is true. The list is cached for up to 30… - [Get Fleet Vehicle](https://stage-docs.getswitch.io/api-reference/integrations/get-fleet-vehicle.md): One vehicle of your fleet, read live from your fleet platform (not cached). - [List Fleet Stations](https://stage-docs.getswitch.io/api-reference/integrations/list-fleet-stations.md): Stations and parking areas of your fleet in one location, from your fleet platform: position, capacity, current vehicle count and, when the platform has it, the area boundary. Filtering, sorting and pagination (`filter`, `sort`, `limit`, `cursor`) apply to the whole list; follow `next_cursor` while… - [List Fleet Tasks](https://stage-docs.getswitch.io/api-reference/integrations/list-fleet-tasks.md): Open tasks (work orders such as battery swaps, pickups or maintenance) that your fleet platform holds for vehicles in one location, with priority and validity window. Filtering, sorting and pagination (`filter`, `sort`, `limit`, `cursor`) apply to the whole list; follow `next_cursor` while `has_more… - [List Vehicle Statuses](https://stage-docs.getswitch.io/api-reference/integrations/list-vehicle-statuses.md): The vehicle statuses your fleet platform accepts, for every location: use a `slug` with `POST /integrations/statuses/{vehicle_id}/set`. `role` marks the status to set while a vehicle is being moved (`repositioning`) and once it is back in service (`available`). Filtering, sorting and pagination (`fi… - [List Allowed Actions by Vehicle Type](https://stage-docs.getswitch.io/api-reference/integrations/list-allowed-actions-by-vehicle-type.md): For each vehicle type of your fleet, which remote actions (lock, unlock, horn...) your fleet platform allows. For the actions of one vehicle use `GET /integrations/actions/{vehicle_id}`. Filtering, sorting and pagination (`filter`, `sort`, `limit`, `cursor`) apply to the whole list; follow `next_cur… - [List Vehicle Actions](https://stage-docs.getswitch.io/api-reference/integrations/list-vehicle-actions.md): The remote actions your fleet platform offers for one vehicle: use a `slug` with `POST /integrations/actions/{vehicle_id}/trigger`. Filtering, sorting and pagination (`filter`, `sort`, `limit`, `cursor`) apply to the whole list; follow `next_cursor` while `has_more` is true. The list is cached for u… - [List Remote Operations](https://stage-docs.getswitch.io/api-reference/integrations/list-remote-operations.md): Operations assigned to vehicles on your fleet platform in one location (pickups, maintenance...), which you can complete, reopen or delete with the routes below. Filtering, sorting and pagination (`filter`, `sort`, `limit`, `cursor`) apply to the whole list; follow `next_cursor` while `has_more` is… - [List Custom Vehicle States](https://stage-docs.getswitch.io/api-reference/integrations/list-custom-vehicle-states.md): The extra vehicle states your fleet platform defines (for example `INSPECT` or `RELOCATE`), with a display colour, for every location: use a `slug` with `POST /integrations/custom-states/{vehicle_id}/set`. Filtering, sorting and pagination (`filter`, `sort`, `limit`, `cursor`) apply to the whole lis… - [Set Vehicle Status](https://stage-docs.getswitch.io/api-reference/integrations/set-vehicle-status.md): Set a vehicle's status on your fleet platform, e.g. take it out of service for maintenance. `success` is false when the platform refused the change or does not support it. On success the cached vehicle and status lists are refreshed. - [Trigger Vehicle Action](https://stage-docs.getswitch.io/api-reference/integrations/trigger-vehicle-action.md): Run a remote action on a vehicle through your fleet platform, e.g. lock it or sound the horn. `success` is false when the platform refused the action or does not support it. - [Complete Remote Operation](https://stage-docs.getswitch.io/api-reference/integrations/complete-remote-operation.md): Mark a remote operation as completed on your fleet platform. `success` is false when the platform refused it or does not support it. - [Reopen Remote Operation](https://stage-docs.getswitch.io/api-reference/integrations/reopen-remote-operation.md): Undo the completion of a remote operation: the fleet platform puts it back in progress. `success` is false when the platform refused it or does not support it. - [Delete Remote Operation](https://stage-docs.getswitch.io/api-reference/integrations/delete-remote-operation.md): Delete a remote operation on your fleet platform. This cannot be undone. `success` is false when the platform refused it or does not support it. - [Set Vehicle Custom State](https://stage-docs.getswitch.io/api-reference/integrations/set-vehicle-custom-state.md): Set one of your fleet platform's custom states on a vehicle, e.g. flag it for inspection. `success` is false when the platform refused the change or does not support it. - [Get Integration Availability](https://stage-docs.getswitch.io/api-reference/integrations/get-integration-availability.md): Which kinds of fleet data and operations (vehicles, stations, tasks, statuses, actions, remote operations) the connector of your fleet platform supports, and the scope each one needs to read or change it. Call it first to know which `/integrations` routes your company can use; an unsupported kind an… - [Myles in your AI assistant](https://stage-docs.getswitch.io/guides/myles-mcp.md): Connect Claude, ChatGPT, Cursor, VS Code or any MCP client to Myles and ask about your fleet without leaving your tools. ## OpenAPI Specs - [openapi](/api-reference/openapi.json) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.