> ## 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 Fleet Vehicle

> One vehicle of your fleet, read live from your fleet platform (not cached).

Integrations talk to the fleet platform your company is linked to (for example Wunder, ATOM or an MDS feed) and return its data in one common format, whatever the platform. They need a fleet integration configured for your company; `GET /integrations/availability` shows which kinds of data and operations your platform supports.

**Failure Modes:**
- **401**: Token is missing or invalid
- **403**: `access_denied` when your role or API key lacks the permission below
- **404**: `no_data_binding` (`kind: fleet`) when no fleet integration is configured for your company
- **404**: `Vehicle not found` when the platform has no vehicle with this id
- **422**: Invalid parameters, or your fleet platform does not support this (`Unknown provider: ...`)
- **502**: The fleet platform returned an error (`Upstream provider error: ...`)

**Required Auth Scopes:**
- `integrations:vehicles:read`



## OpenAPI

````yaml /api-reference/openapi.json get /integrations/vehicles/{vehicle_id}
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:
  /integrations/vehicles/{vehicle_id}:
    get:
      tags:
        - Integrations
      summary: Get Fleet Vehicle
      description: >-
        One vehicle of your fleet, read live from your fleet platform (not
        cached).


        Integrations talk to the fleet platform your company is linked to (for
        example Wunder, ATOM or an MDS feed) and return its data in one common
        format, whatever the platform. They need a fleet integration configured
        for your company; `GET /integrations/availability` shows which kinds of
        data and operations your platform supports.


        **Failure Modes:**

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

        - **403**: `access_denied` when your role or API key lacks the
        permission below

        - **404**: `no_data_binding` (`kind: fleet`) when no fleet integration
        is configured for your company

        - **404**: `Vehicle not found` when the platform has no vehicle with
        this id

        - **422**: Invalid parameters, or your fleet platform does not support
        this (`Unknown provider: ...`)

        - **502**: The fleet platform returned an error (`Upstream provider
        error: ...`)


        **Required Auth Scopes:**

        - `integrations:vehicles:read`
      operationId: get_vehicle_integrations_vehicles__vehicle_id__get
      parameters:
        - name: vehicle_id
          in: path
          required: true
          schema:
            type: string
            description: >-
              Vehicle id on your fleet platform: the `id` returned by `GET
              /integrations/vehicles`.
            title: Vehicle Id
          description: >-
            Vehicle id on your fleet platform: the `id` returned by `GET
            /integrations/vehicles`.
        - name: config_source
          in: query
          required: false
          schema:
            $ref: '#/components/schemas/ConfigSource'
            description: >-
              Legacy parameter, kept for compatibility and ignored: the
              integration is always the one configured for your company.
            default: mobile
          description: >-
            Legacy parameter, kept for compatibility and ignored: the
            integration is always the one configured for your company.
      responses:
        '200':
          description: Vehicle retrieved.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationVehicle'
        '401':
          description: Unauthorized. Token is missing or invalid.
        '403':
          description: Forbidden. Insufficient permissions.
        '404':
          description: Not Found. No fleet integration configured, or vehicle not found.
        '422':
          description: >-
            Unprocessable Entity. Invalid parameters, or not supported by your
            fleet platform.
        '502':
          description: Bad Gateway. The fleet platform returned an error.
      security:
        - HTTPBearer: []
        - HTTPBearer: []
components:
  schemas:
    ConfigSource:
      type: string
      enum:
        - mobile
        - ops
      title: ConfigSource
      description: Accepted for compatibility (``?config_source=``) and ignored.
    IntegrationVehicle:
      properties:
        id:
          type: string
          title: Id
          description: Provider-specific unique identifier
        licence_plate:
          type: string
          title: Licence Plate
          description: Vehicle licence plate
        lat:
          type: number
          title: Lat
          description: Current latitude
        lon:
          type: number
          title: Lon
          description: Current longitude
        vehicle_type:
          $ref: '#/components/schemas/VehicleType'
          description: Normalized vehicle type
        vehicle_model:
          type:
            - string
            - 'null'
          title: Vehicle Model
          description: Make/model string
        propulsion_types:
          items:
            $ref: '#/components/schemas/PropulsionType'
          type: array
          title: Propulsion Types
          description: Propulsion types (MDS spec). Empty if not reported.
        battery_level:
          type:
            - integer
            - 'null'
          title: Battery Level
          description: Primary battery percentage 0-100
        batteries:
          items:
            $ref: '#/components/schemas/IntegrationBatteryInfo'
          type: array
          title: Batteries
          description: Individual batteries for multi-battery vehicles
        status:
          type:
            - string
            - 'null'
          title: Status
          description: Provider-native status string
        last_seen:
          type:
            - string
            - 'null'
          format: date-time
          title: Last Seen
          description: Last telemetry timestamp
        last_moved:
          type:
            - string
            - 'null'
          format: date-time
          title: Last Moved
          description: Last movement timestamp
        provider:
          type:
            - string
            - 'null'
          title: Provider
          description: Provider/company slug for multi-tenant
        labels:
          items:
            type: string
          type: array
          title: Labels
          description: Freeform tags/labels for filtering and grouping
        extra_params:
          additionalProperties: true
          type: object
          title: Extra Params
          description: Provider-specific fields not covered by the schema
      type: object
      required:
        - id
        - licence_plate
        - lat
        - lon
      title: IntegrationVehicle
      description: Normalized vehicle from any upstream provider.
      examples:
        - batteries:
            - level: 18
              name: main
          battery_level: 18
          extra_params: {}
          id: veh-1042
          labels:
            - centro
          last_moved: '2026-11-30T07:41:00Z'
          last_seen: '2026-11-30T08:12:00Z'
          lat: 45.4642
          licence_plate: AB123CD
          lon: 9.19
          propulsion_types:
            - electric
          provider: acme-mobility
          status: available
          vehicle_model: E-Moped 45
          vehicle_type: moped
    VehicleType:
      type: string
      enum:
        - scooter
        - bike
        - car
        - motorscooter
        - moped
        - other
      title: VehicleType
      description: Normalized vehicle types across all providers.
    PropulsionType:
      type: string
      enum:
        - electric
        - electric_assist
        - human
        - combustion
        - plug_in_hybrid
        - hydrogen_fuel_cell
        - other
      title: PropulsionType
      description: Propulsion types from the MDS spec.
    IntegrationBatteryInfo:
      properties:
        name:
          type: string
          title: Name
          description: Battery identifier or slot name
        level:
          type:
            - integer
            - 'null'
          title: Level
          description: Charge percentage 0-100
      type: object
      required:
        - name
      title: IntegrationBatteryInfo
      description: Individual battery in a multi-battery vehicle.
  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.