<!-- dev-portal
method: GET
title: Trips
path: /v3/vehicles/:vehicleId/trips
-->

### GET /v3/vehicles/:vehicleId/trips

Retrieves a paged list of Trip History for vehicle(s) in your fleet between a start time and end time. 

#### Request Parameters

| Name      | Type     | Required | Description                                                                                      |
|-----------|----------|----------|--------------------------------------------------------------------------------------------------|
| vehicleId | UUID     | Yes      | Unique identifier of the vehicle.                                                                |
| startAt   | string   | Yes      | ISO 8601 UTC timestamp representing the earliest time for which to return trip data. (inclusive) |
| endAt     | string   | Yes      | ISO 8601 UTC timestamp representing the latest time for which to return trip data. (inclusive)   |
| page      | integer  | No       | The index of the page to return. This starts at and defaults to 1.                               |
| size      | integer  | No       | The number of results to return per page. This defaults to 500.                                  |

#### Response

| Name    | Type                                         | Description                                                         |
|---------|----------------------------------------------|---------------------------------------------------------------------|
| content | Array[[TripSummary](../Schemas#tripsummary)] | A list of Trip Summaries. Will return empty list if no trips found. |
| page    | [OffsetPage](../Schemas#offsetPage)          | Object detailing the page information for the current request.      |


##### Response Codes

| Name | Description                                                                                                                                 |
|------|---------------------------------------------------------------------------------------------------------------------------------------------|
| 200  | Ok.                                                                                                                                         |

#### Example

```bash
curl -X GET \
  -H "Authorization: Bearer ${AUTH_TOKEN}" \
  "https://${HOST}/vehicle-status-api/v3/vehicles/${VEHICLE_ID}/trips?startAt=2023-01-01T00:00:00Z&endAt=2023-02-01T00:00:00Z"
```
Response:
```Json
{
  "content": [
    {
      "vin": "1FMEU111111111111",
      "vehicleName": "My New Vehicle",
      "startedAt": "2023-01-01T11:00:00Z",
      "startPosition": {
        "latitude": 42.3601,
        "longitude": -71.0589
      },
      "startOdometer": 15234.5,
      "endedAt": "2023-01-01T12:00:00Z",
      "endPosition": {
        "latitude": 42.4153,
        "longitude": -71.1564
      },
      "endOdometer": 15276.8,
      "tripDistance": 42.3
    }
  ],
  "page": {
    "number": 1,
    "size": 500,
    "totalElements": 1,
    "totalPages": 1
  }
}
```
