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

# Get Integration Availability

> 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 answers 422.

**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
- **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/availability
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://api.getswitch.io
    description: Production
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/availability:
    get:
      tags:
        - Integrations
      summary: Get Integration Availability
      description: >-
        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 answers 422.


        **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

        - **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_availability_integrations_availability_get
      parameters:
        - 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: Availability retrieved. One entry per kind of data or operation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntegrationAvailability'
        '401':
          description: Unauthorized. Token is missing or invalid.
        '403':
          description: Forbidden. Insufficient permissions.
        '404':
          description: Not Found. No fleet integration configured for your company.
        '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.
    IntegrationAvailability:
      properties:
        connector_slug:
          type: string
          title: Connector Slug
          description: Connector of the fleet platform your company is linked to.
        entities:
          items:
            $ref: '#/components/schemas/EntityAvailability'
          type: array
          title: Entities
          description: One entry per kind of data or operation.
      type: object
      required:
        - connector_slug
        - entities
      title: IntegrationAvailability
      description: Full availability response for the company.
      examples:
        - connector_slug: wunder_v1
          entities:
            - entity_type: vehicles
              manage_scope: integrations:vehicles:manage
              read_scope: integrations:vehicles:read
              supported: true
            - entity_type: stations
              read_scope: integrations:stations:read
              supported: false
            - entity_type: tasks
              read_scope: integrations:tasks:read
              supported: false
            - entity_type: statuses
              manage_scope: integrations:statuses:manage
              read_scope: integrations:statuses:read
              supported: true
            - entity_type: actions
              manage_scope: integrations:actions:manage
              read_scope: integrations:actions:read
              supported: true
            - entity_type: remote_operations
              manage_scope: integrations:remote-ops:manage
              read_scope: integrations:remote-ops:read
              supported: true
    EntityAvailability:
      properties:
        entity_type:
          $ref: '#/components/schemas/EntityType'
          description: Kind of data or operation.
        supported:
          type: boolean
          title: Supported
          description: >-
            True when your fleet platform's connector provides it; the matching
            `/integrations` routes answer 422 otherwise.
        read_scope:
          type: string
          title: Read Scope
          description: Scope needed to read it.
        manage_scope:
          type:
            - string
            - 'null'
          title: Manage Scope
          description: Scope needed to change it, for kinds that can be changed.
      type: object
      required:
        - entity_type
        - supported
        - read_scope
      title: EntityAvailability
      description: Availability of a single entity type for the company's connector.
    EntityType:
      type: string
      enum:
        - vehicles
        - stations
        - tasks
        - statuses
        - actions
        - remote_operations
        - custom_states
        - allowed_actions
        - dispatch_jobs
      title: EntityType
      description: Entity types supported by the integrations layer.
  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.