> ## 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.

# List Live Deliveries

> 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 came back, or is still out, after the estimated return time.

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

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



## OpenAPI

````yaml /api-reference/openapi.json get /copilot/live/deliveries
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/deliveries:
    get:
      tags:
        - Live
      summary: List Live Deliveries
      description: >-
        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 came back, or is still out, after the
        estimated return time.


        **Failure Modes:**

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

        - **403**: Insufficient permissions, or live deliveries are not
        configured for the location

        - **404**: `no_data_binding`: no live deliveries are configured for your
        company

        - **422**: `location` is missing, empty or longer than 100 characters

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


        **Required Auth Scopes:**

        - `copilot:live`
      operationId: deliveries_copilot_live_deliveries_get
      parameters:
        - name: location
          in: query
          required: true
          schema:
            type: string
            minLength: 1
            maxLength: 100
            description: >-
              Point of sale to read, by the location name configured for your
              company's live deliveries, e.g. `milan-centrale`.
            title: Location
          description: >-
            Point of sale to read, by the location name configured for your
            company's live deliveries, e.g. `milan-centrale`.
      responses:
        '200':
          description: Deliveries retrieved. One item per courier trip.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/LiveDelivery'
                title: Response Deliveries Copilot Live Deliveries Get
              example:
                - id: dlv-88213
                  steps:
                    - id: ord-55120
                      estimated_arrival: '2026-11-29T19:42:00Z'
                      actual_arrival: '2026-11-29T19:45:10Z'
                      customer: Mario Rossi
                      address: Via Torino 21, Milano
                      latitude: 45.461
                      longitude: 9.185
                    - id: ord-55124
                      estimated_arrival: '2026-11-29T19:55:00Z'
                      customer: Giulia Bianchi
                      address: Corso di Porta Ticinese 40, Milano
                      latitude: 45.4566
                      longitude: 9.1812
                  exit_estimated_at: '2026-11-29T19:30:00Z'
                  exit_actual_at: '2026-11-29T19:31:20Z'
                  return_estimated_at: '2026-11-29T20:10:00Z'
                  courier: Luca Verdi
                  status: pending
        '401':
          description: Unauthorized. Token is missing or invalid.
        '403':
          description: Forbidden. Location not configured for deliveries.
        '404':
          description: Not Found. No live deliveries configured.
        '422':
          description: Unprocessable Entity. Validation failed.
        '502':
          description: Bad Gateway. Live deliveries provider unavailable.
      security:
        - HTTPBearer: []
        - HTTPBearer: []
components:
  schemas:
    LiveDelivery:
      properties:
        id:
          type: string
          title: Id
        steps:
          items:
            $ref: '#/components/schemas/LiveDeliveryStop'
          type: array
          title: Steps
        exit_estimated_at:
          type:
            - string
            - 'null'
          format: date-time
          title: Exit Estimated At
        exit_actual_at:
          type:
            - string
            - 'null'
          format: date-time
          title: Exit Actual At
        return_estimated_at:
          type:
            - string
            - 'null'
          format: date-time
          title: Return Estimated At
        return_actual_at:
          type:
            - string
            - 'null'
          format: date-time
          title: Return Actual At
        courier:
          type:
            - string
            - 'null'
          title: Courier
        status:
          type: string
          enum:
            - completed
            - completed_but_late
            - pending
            - pending_but_late
          title: Status
      type: object
      required:
        - id
        - steps
        - status
      title: LiveDelivery
    LiveDeliveryStop:
      properties:
        id:
          type: string
          title: Id
        estimated_arrival:
          type:
            - string
            - 'null'
          format: date-time
          title: Estimated Arrival
        actual_arrival:
          type:
            - string
            - 'null'
          format: date-time
          title: Actual Arrival
        customer:
          type: string
          title: Customer
        address:
          type: string
          title: Address
        latitude:
          type: number
          title: Latitude
        longitude:
          type: number
          title: Longitude
      type: object
      required:
        - id
        - customer
        - address
        - latitude
        - longitude
      title: LiveDeliveryStop
  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.