---
title: "Retrieve journey segments for a vehicle on a specific date."
url: "https://developers.vzconnect.com/apis/vehicle-segment-data-api-v1/versions/ff312cd1-d8ba-464a-9a56-cfc6adc7d18b/operations/getVehicleSegments"
---

> Full API specification: https://developers.vzconnect.com/apis/vehicle-segment-data-api-v1/versions/ff312cd1-d8ba-464a-9a56-cfc6adc7d18b.md

# Retrieve journey segments for a vehicle on a specific date.

`GET` `/rad/v1/vehicles/{vehiclenumber}/segments`

Operation ID: `getVehicleSegments`

Retrieve start and stop level segment information for the given Vehicle Number for a particular day. The response includes the segments for a 24 hour period starting with the date/time value entered. One entry is returned for each driver who drove the vehicle in the period, plus one entry with a null Driver for segments without an assigned driver. Segments is null when the vehicle has no tracking data in the period.

## Path parameters

- `vehiclenumber` (string, required) - The Vehicle Number; the unique identifier used to reference the vehicle within the API.

## Query parameters

- `startdateutc` (string, date-time, required) - Start date and time (UTC) in ISO 8601 format. The response includes segments for the 24 hour period starting with this value. Must be within the account's data plan (at most 365 days before the current date).

## Responses

- `200` - Successfully retrieved segment data for the vehicle.
- `400` - Bad request. Invalid parameters.
- `401` - Unauthorized. Authentication credentials are missing or invalid.
- `404` - Vehicle not found with the specified vehicle number.
- `500` - Internal server error.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: Vehicle Segment Data API
  version: "1.0"
servers:
  - url: https://api.us.vzconnect.com
paths:
  /rad/v1/vehicles/{vehiclenumber}/segments:
    get:
      summary: Retrieve journey segments for a vehicle on a specific date.
      description: Retrieve start and stop level segment information for the given
        Vehicle Number for a particular day. The response includes the segments
        for a 24 hour period starting with the date/time value entered. One
        entry is returned for each driver who drove the vehicle in the period,
        plus one entry with a null Driver for segments without an assigned
        driver. Segments is null when the vehicle has no tracking data in the
        period.
      operationId: getVehicleSegments
      x-vzc-portal:
        webhook-note: true
      parameters:
        - name: vehiclenumber
          in: path
          required: true
          description: The Vehicle Number; the unique identifier used to reference the
            vehicle within the API.
          schema:
            type: string
            example: "95000"
        - name: startdateutc
          in: query
          required: true
          description: Start date and time (UTC) in ISO 8601 format. The response includes
            segments for the 24 hour period starting with this value. Must be
            within the account's data plan (at most 365 days before the current
            date).
          schema:
            type: string
            format: date-time
            example: 2026-11-01T00:00:00Z
      responses:
        "200":
          description: Successfully retrieved segment data for the vehicle.
          content:
            application/xml:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/SegmentResult"
            application/json:
              schema:
                type: array
                items:
                  $ref: "#/components/schemas/SegmentResult"
              example:
                - Driver:
                    Number: "204"
                    FirstName: Cameron
                    LastName: Potvin
                  Vehicle:
                    Number: "95000"
                    Name: FD 0095
                  Segments:
                    - StartDateUtc: 2026-11-01T20:31:59
                      StartLocation:
                        Latitude: 33.008785
                        Longitude: -97.35084
                        AddressLine1: null
                        AddressLine2: null
                        Locality: null
                        AdministrativeArea: null
                        PostalCode: null
                        Country: USA
                      StartLocationIsPrivate: false
                      EndLocation:
                        Latitude: 33.025673
                        Longitude: -97.271193
                        AddressLine1: 13200 Raceway Dr
                        AddressLine2: ""
                        Locality: Roanoke
                        AdministrativeArea: TX
                        PostalCode: "76262"
                        Country: USA
                      EndDateUtc: 2026-11-02T00:42:38
                      EndLocationIsPrivate: false
                      IsComplete: true
                      DistanceKilometers: 25
        "400":
          description: Bad request. Invalid parameters.
          content:
            application/xml:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
        "401":
          description: Unauthorized. Authentication credentials are missing or invalid.
        "404":
          description: Vehicle not found with the specified vehicle number.
          content:
            application/xml:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
            application/json:
              schema:
                $ref: "#/components/schemas/ErrorResponse"
        "500":
          description: Internal server error.
          content:
            application/xml:
              schema:
                type: object
            application/json:
              schema:
                type: object
      x-kong-route-defaults:
        strip_path: false
        paths:
          - ~/rad/v1/vehicles/[^/]+/segments/?$
        response_buffering: false
      tags:
        - Vehicle Segment Data API
components:
  schemas:
    SegmentResult:
      type: object
      description: A segment result grouping the driver, vehicle, and list of segments
        for the requested period.
      properties:
        Driver:
          allOf:
            - $ref: "#/components/schemas/SegmentDriver"
          nullable: true
          description: Driver associated with the segments. Null when no driver is
            assigned to the vehicle for the segments.
        Vehicle:
          allOf:
            - $ref: "#/components/schemas/SegmentVehicle"
          nullable: true
          description: Vehicle associated with the segments. Null when the driver has no
            vehicle assigned in the period.
        Segments:
          type: array
          nullable: true
          description: The segments for the selected driver/vehicle. Each segment includes
            start/end dates, locations, privacy flags, completeness, and
            distance. Null when the vehicle has no tracking data in the period;
            empty when the driver has no vehicle assigned.
          items:
            $ref: "#/components/schemas/Segment"
    ErrorResponse:
      type: object
      description: Error body returned with 400 and 404 responses.
      properties:
        Message:
          type: string
          description: A message describing the error.
          example: Unable to locate vehicle 95000
    SegmentDriver:
      type: object
      description: Driver details for the segment result.
      properties:
        Number:
          type: string
          nullable: true
          description: Driver Number, the unique identifier for Drivers created within
            REVEAL. Null if the Driver record has no Driver Number.
          example: "204"
        FirstName:
          type: string
          nullable: true
          description: The first name of the driver.
          example: Cameron
        LastName:
          type: string
          nullable: true
          description: The last name of the driver.
          example: Potvin
    SegmentVehicle:
      type: object
      description: Vehicle details for the segment result.
      properties:
        Number:
          type: string
          description: The Vehicle Number called in the request, returned within the
            response.
          example: "95000"
        Name:
          type: string
          description: The Vehicle Name as displayed within the REVEAL account.
          example: FD 0095
    Segment:
      type: object
      description: A single journey/stop segment. Vehicle Start is an Ignition On
        event; Vehicle End is an Ignition Off event.
      properties:
        StartDateUtc:
          type: string
          format: date-time
          description: "The date and time stamp (UTC) when the Ignition On start event
            occurred for the segment. Format:
            YEAR-MONTH-DAYTHOURS-MINUTES-SECONDS."
          example: 2026-11-01T20:31:59
        StartLocation:
          allOf:
            - $ref: "#/components/schemas/SegmentLocation"
          nullable: true
          description: The start location of the segment. Null when StartLocationIsPrivate
            is TRUE.
        StartLocationIsPrivate:
          type: boolean
          nullable: true
          description: TRUE when the plot is flagged as private (Privacy feature). When
            TRUE, the corresponding location is returned as null.
          example: false
        EndLocation:
          allOf:
            - $ref: "#/components/schemas/SegmentLocation"
          nullable: true
          description: The end location of the segment. Null when EndLocationIsPrivate is
            TRUE or the segment is not complete.
        EndDateUtc:
          type: string
          format: date-time
          nullable: true
          description: "The date and time stamp (UTC) when the Ignition Off end event
            occurred for the segment. Null when IsComplete is FALSE. Format:
            YEAR-MONTH-DAYTHOURS-MINUTES-SECONDS."
          example: 2026-11-02T00:42:38
        EndLocationIsPrivate:
          type: boolean
          nullable: true
          description: TRUE when the plot is flagged as private (Privacy feature). When
            TRUE, the corresponding location is returned as null.
          example: false
        IsComplete:
          type: boolean
          description: False when only a starting segment event occurs within the queried
            24 hour window (no ending segment details are available); otherwise
            true.
          example: true
        DistanceKilometers:
          type: number
          format: double
          nullable: true
          description: The number of kilometers traveled between the Start and End
            Location for the segment, calculated from the odometer readings.
            Null when IsComplete is FALSE.
          example: 25
    SegmentLocation:
      type: object
      description: Location elements for a segment start or end, including coordinates
        and address components (global standards).
      properties:
        Latitude:
          type: number
          format: double
          nullable: true
          description: The Latitude coordinate for the location.
          example: 33.008785
        Longitude:
          type: number
          format: double
          nullable: true
          description: The Longitude coordinate for the location.
          example: -97.35084
        AddressLine1:
          type: string
          nullable: true
          description: Location specific identification such as a house number.
          example: 13200 Raceway Dr
        AddressLine2:
          type: string
          nullable: true
          description: Additional information to identify location such as an apartment
            number.
          example: ""
        Locality:
          type: string
          nullable: true
          description: City, town, etc.
          example: Roanoke
        AdministrativeArea:
          type: string
          nullable: true
          description: State, province, etc.
          example: TX
        PostalCode:
          type: string
          nullable: true
          description: Postal code.
          example: "76262"
        Country:
          type: string
          nullable: true
          description: Country.
          example: USA
```
