> ## Documentation Index
> Fetch the complete documentation index at: https://stage-docs.getswitch.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Live Fleet Status

> 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 valid position.

**Failure Modes:**
- **401**: Token is missing or invalid
- **403**: Insufficient permissions, or the location is not configured for live fleet
- **404**: `no_data_binding`: no live fleet is configured for your company
- **422**: `location` is missing or empty
- **502**: The fleet platform did not answer

**Required Auth Scopes:**
- `copilot:live`



## OpenAPI

````yaml /api-reference/openapi.json get /copilot/live/fleet-status
openapi: 3.1.0
info:
  title: SWITCH API
  version: '1.0'
  description: >-
    The SWITCH API gives mobility and logistics teams programmatic access to
    SWITCH forecasts, fleet operations, routing and analytics. Every request is
    authenticated with an API key sent as a bearer token.
servers:
  - url: https://stage-api.getswitch.io
    description: Stage
security: []
tags:
  - name: Forecast
    description: Demand forecasts per zone and time window.
  - name: Operations
    description: Fleet imbalance, rebalancing suggestions and generated tasks.
  - name: Routing
    description: Route optimisation for single and multiple fleets.
  - name: Routing Sessions
    description: Saved routing sessions, their routes and drivers.
  - name: Routing Operations
    description: Complete, undo and re-route the stops of a route.
  - name: Fleet Management
    description: Your depots, stations, drivers and cargo vehicles.
  - name: Integrations
    description: Vehicles, statuses and commands on your fleet platform.
  - name: Station Based Analytics
    description: Analytics for station-based (docked) services.
  - name: Zone Based Analytics
    description: Analytics for free-floating services, by zone.
  - name: Free Float Analytics
    description: Trip history for free-floating services.
  - name: Transit Analytics
    description: Punctuality and service delivery for public transit.
  - name: Live
    description: Real-time fleet, delivery and transit status.
  - name: Grids
    description: Spatial grids used by forecasts and analytics.
  - name: API Keys
    description: Create and manage the API keys you call this API with.
paths:
  /copilot/live/fleet-status:
    get:
      tags:
        - Live
      summary: Get Live Fleet Status
      description: >-
        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 valid position.


        **Failure Modes:**

        - **401**: Token is missing or invalid

        - **403**: Insufficient permissions, or the location is not configured
        for live fleet

        - **404**: `no_data_binding`: no live fleet is configured for your
        company

        - **422**: `location` is missing or empty

        - **502**: The fleet platform did not answer


        **Required Auth Scopes:**

        - `copilot:live`
      operationId: fleet_status_copilot_live_fleet_status_get
      parameters:
        - name: location
          in: query
          required: true
          schema:
            type: string
            minLength: 1
            description: >-
              Location of your fleet, e.g. `milan`: one of the locations
              configured for your company's live fleet.
            title: Location
          description: >-
            Location of your fleet, e.g. `milan`: one of the locations
            configured for your company's live fleet.
      responses:
        '200':
          description: Fleet status retrieved. Totals and every vehicle.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FleetStatusResponse'
        '401':
          description: Unauthorized. Token is missing or invalid.
        '403':
          description: Forbidden. Location not configured for live fleet.
        '404':
          description: Not Found. No live fleet configured.
        '422':
          description: Unprocessable Entity. Validation failed.
        '502':
          description: Bad Gateway. Live fleet provider unavailable.
      security:
        - HTTPBearer: []
        - HTTPBearer: []
components:
  schemas:
    FleetStatusResponse:
      properties:
        location:
          type: string
          title: Location
        total_vehicles:
          type: integer
          title: Total Vehicles
        available_vehicles:
          type: integer
          title: Available Vehicles
        mapped_vehicles:
          type: integer
          title: Mapped Vehicles
        missing_position_vehicles:
          type: integer
          title: Missing Position Vehicles
        vehicles:
          items:
            $ref: '#/components/schemas/LiveVehicle'
          type: array
          title: Vehicles
      type: object
      required:
        - location
        - total_vehicles
        - available_vehicles
        - mapped_vehicles
        - missing_position_vehicles
        - vehicles
      title: FleetStatusResponse
      examples:
        - available_vehicles: 2
          location: milan
          mapped_vehicles: 2
          missing_position_vehicles: 1
          total_vehicles: 3
          vehicles:
            - battery_level: 82
              id: veh-1042
              last_moved: '2026-11-29T08:31:40Z'
              last_seen: '2026-11-29T09:14:05Z'
              lat: 45.4642
              licence_plate: GA123BC
              lon: 9.19
              status: available
              vehicle_model: Fiat 500e
              vehicle_type: car
            - battery_level: 34
              id: veh-1043
              last_moved: '2026-11-29T09:13:52Z'
              last_seen: '2026-11-29T09:13:52Z'
              lat: 45.4859
              licence_plate: GA124BC
              lon: 9.2045
              status: in_use
              vehicle_model: Fiat 500e
              vehicle_type: car
            - battery_level: 67
              id: veh-1051
              last_moved: '2026-11-28T19:02:33Z'
              last_seen: '2026-11-28T22:47:10Z'
              status: ready
              vehicle_type: scooter
    LiveVehicle:
      properties:
        id:
          type: string
          title: Id
        licence_plate:
          type:
            - string
            - 'null'
          title: Licence Plate
        lat:
          type:
            - number
            - 'null'
          title: Lat
        lon:
          type:
            - number
            - 'null'
          title: Lon
        vehicle_type:
          type:
            - string
            - 'null'
          title: Vehicle Type
        vehicle_model:
          type:
            - string
            - 'null'
          title: Vehicle Model
        battery_level:
          type:
            - integer
            - 'null'
          title: Battery Level
        status:
          type:
            - string
            - 'null'
          title: Status
        last_seen:
          type:
            - string
            - 'null'
          format: date-time
          title: Last Seen
        last_moved:
          type:
            - string
            - 'null'
          format: date-time
          title: Last Moved
      type: object
      required:
        - id
      title: LiveVehicle
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
      description: >-
        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.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.