---
title: "List trips"
---

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

# List trips

Path: Nicer API › Trips

`GET /travelers-trip`

URL: `https://api.nicer.travel/travelers-trip`

Returns one page of the trips the caller belongs to, newest first — 20 by default, at most 100, with `nextToken` for the next page. Travelers see their own trips; advisors and staff see the trips of the company they are signed in to. Each item carries the same derived `status` and `isArchived` as the single-trip endpoint, and trips whose end date has passed are archived as they are listed.

## Authentication

- `bearerAuth`, http bearer, header `Authorization`, format `JWT`

## Query parameters

- `fields` (`travelersTrip.list.query.fields`; string, optional) — Comma-separated item fields to return, dotted for nested ones — for example `travelersTripId,tripTitle,destinations.name`; a leading `-` removes a path from what is kept. `nextToken` is always answered. Omitted, an item carries every projected field except the destination photo galleries, which are more than half the body: ask for `destinations.photos` to get them.
- `filter` (`travelersTrip.list.query.filter`; string, optional) — URL-encoded `field=value` expressions joined by `&`, applied to the page after it is read — for example `status=PROPOSAL&isArchived=false`.
- `limit` (`travelersTrip.list.query.limit`; string, optional) — Trips per page. Defaults to 20, at most 100.
- `nextToken` (`travelersTrip.list.query.nextToken`; string, optional) — Cursor from the previous response. Omit for the first page.
- `sort` (`travelersTrip.list.query.sort`; string, optional) — Order by creation time. Defaults to newest first.
  - one of `"asc"`, `"desc"`

## Code samples

### JavaScript SDK

```javascript
import { createClient } from "@nicertravel/sdk";

const nicer = createClient({
  baseUrl: "https://api.nicer.travel",
  token: process.env.NICER_TOKEN,
});

await nicer.travelersTrip.list();
```

### Nicer CLI

```bash
nicer travelers-trip list
```

### cURL

```bash
curl --request GET \
  --url https://api.nicer.travel/travelers-trip \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/travelers-trip';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.nicer.travel/travelers-trip"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "items": [
    {
      "assignedAdvisorUserId": "string",
      "associatedChatId": "string",
      "associatedTripItineraryId": "string",
      "associatedUserIds": [
        "string"
      ],
      "companyName": "string",
      "createdAt": "string",
      "destinations": [
        {
          "address": "string",
          "amenities": [
            "string"
          ],
          "city": "string",
          "country": "string",
          "countryCode": "string",
          "description": "string",
          "distanceFromSearch": {
            "unit": "km",
            "value": 0
          },
          "features": [
            "string"
          ],
          "fullAddress": "string",
          "gate": "string",
          "iataCode": "string",
          "internovaId": "string",
          "latitude": 0,
          "longitude": 0,
          "name": "string",
          "photos": [
            {
              "key": "string",
              "name": "string",
              "url": "string"
            }
          ],
          "placeId": "string",
          "region": "string",
          "source": "string",
          "state": "string",
          "terminal": "string",
          "timeZone": "string",
          "zipCode": "string",
          "endDateTime": "string",
          "headerImageUrl": "string",
          "startDateTime": "string"
        }
      ],
      "hasActivity": true,
      "isArchived": true,
      "primaryTravelerUserId": "string",
      "status": "PROPOSAL",
      "travelers": {
        "adults": 0,
        "children": 0
      },
      "travelersTripId": "string",
      "tripEndDate": "string",
      "tripStartDate": "string",
      "tripTitle": "string",
      "updatedAt": "string"
    }
  ],
  "nextToken": "string"
}
```

- `items` (`travelersTrip.list.response.200.items`; array of object, required)
  - `associatedUserIds` (`travelersTrip.list.response.200.items.associatedUserIds`; array of string, required)
  - `companyName` (`travelersTrip.list.response.200.items.companyName`; string, required)
  - `createdAt` (`travelersTrip.list.response.200.items.createdAt`; string, required)
  - `destinations` (`travelersTrip.list.response.200.items.destinations`; array of object, required)
    - `endDateTime` (`travelersTrip.list.response.200.items.destinations.endDateTime`; string, required)
      - pattern: `^\d{4}-\d{2}-\d{2}$`
    - `startDateTime` (`travelersTrip.list.response.200.items.destinations.startDateTime`; string, required)
      - pattern: `^\d{4}-\d{2}-\d{2}$`
    - `address` (`travelersTrip.list.response.200.items.destinations.address`; any of, optional)
      - any of the following: `string`, `null`
    - `amenities` (`travelersTrip.list.response.200.items.destinations.amenities`; array of string, optional)
    - `city` (`travelersTrip.list.response.200.items.destinations.city`; any of, optional)
      - any of the following: `string`, `null`
    - `country` (`travelersTrip.list.response.200.items.destinations.country`; string, optional)
    - `countryCode` (`travelersTrip.list.response.200.items.destinations.countryCode`; string, optional)
    - `description` (`travelersTrip.list.response.200.items.destinations.description`; string, optional)
    - `distanceFromSearch` (`travelersTrip.list.response.200.items.destinations.distanceFromSearch`; object, optional)
      - `unit` (`travelersTrip.list.response.200.items.destinations.distanceFromSearch.unit`; string, required)
        - one of `"km"`, `"mi"`
      - `value` (`travelersTrip.list.response.200.items.destinations.distanceFromSearch.value`; number, required)
    - `features` (`travelersTrip.list.response.200.items.destinations.features`; array of string, optional)
    - `fullAddress` (`travelersTrip.list.response.200.items.destinations.fullAddress`; string, optional)
    - `gate` (`travelersTrip.list.response.200.items.destinations.gate`; any of, optional)
      - any of the following: `string`, `null`
    - `iataCode` (`travelersTrip.list.response.200.items.destinations.iataCode`; any of, optional)
      - any of the following: `string`, `null`
    - `internovaId` (`travelersTrip.list.response.200.items.destinations.internovaId`; string, optional)
    - `latitude` (`travelersTrip.list.response.200.items.destinations.latitude`; number, optional)
    - `longitude` (`travelersTrip.list.response.200.items.destinations.longitude`; number, optional)
    - `name` (`travelersTrip.list.response.200.items.destinations.name`; string, optional)
    - `photos` (`travelersTrip.list.response.200.items.destinations.photos`; array of object, optional)
      - `name` (`travelersTrip.list.response.200.items.destinations.photos.name`; string, required)
      - `key` (`travelersTrip.list.response.200.items.destinations.photos.key`; string, optional)
      - `url` (`travelersTrip.list.response.200.items.destinations.photos.url`; string, optional)
    - `placeId` (`travelersTrip.list.response.200.items.destinations.placeId`; string, optional)
    - `region` (`travelersTrip.list.response.200.items.destinations.region`; string, optional)
    - `source` (`travelersTrip.list.response.200.items.destinations.source`; string, optional)
    - `state` (`travelersTrip.list.response.200.items.destinations.state`; any of, optional)
      - any of the following: `string`, `null`
    - `terminal` (`travelersTrip.list.response.200.items.destinations.terminal`; any of, optional)
      - any of the following: `string`, `null`
    - `timeZone` (`travelersTrip.list.response.200.items.destinations.timeZone`; string, optional)
    - `zipCode` (`travelersTrip.list.response.200.items.destinations.zipCode`; any of, optional)
      - any of the following: `string`, `null`
    - `headerImageUrl` (`travelersTrip.list.response.200.items.destinations.headerImageUrl`; string, optional)
  - `isArchived` (`travelersTrip.list.response.200.items.isArchived`; boolean, required)
  - `primaryTravelerUserId` (`travelersTrip.list.response.200.items.primaryTravelerUserId`; string, required)
  - `status` (`travelersTrip.list.response.200.items.status`; string, required)
    - one of `"PROPOSAL"`, `"IN_PROGRESS"`, `"TRAVELING"`
  - `travelersTripId` (`travelersTrip.list.response.200.items.travelersTripId`; string, required)
  - `tripEndDate` (`travelersTrip.list.response.200.items.tripEndDate`; string, required)
  - `tripStartDate` (`travelersTrip.list.response.200.items.tripStartDate`; string, required)
  - `tripTitle` (`travelersTrip.list.response.200.items.tripTitle`; string, required)
  - `updatedAt` (`travelersTrip.list.response.200.items.updatedAt`; string, required)
  - `assignedAdvisorUserId` (`travelersTrip.list.response.200.items.assignedAdvisorUserId`; any of, optional)
    - any of the following: `string`, `null`
  - `associatedChatId` (`travelersTrip.list.response.200.items.associatedChatId`; any of, optional)
    - any of the following: `string`, `null`
  - `associatedTripItineraryId` (`travelersTrip.list.response.200.items.associatedTripItineraryId`; any of, optional)
    - any of the following: `string`, `null`
  - `hasActivity` (`travelersTrip.list.response.200.items.hasActivity`; boolean, optional)
  - `travelers` (`travelersTrip.list.response.200.items.travelers`; object, optional)
    - `adults` (`travelersTrip.list.response.200.items.travelers.adults`; number, optional)
    - `children` (`travelersTrip.list.response.200.items.travelers.children`; number, optional)
- `nextToken` (`travelersTrip.list.response.200.nextToken`; any of, optional)
  - any of the following:
    - `Option 1`
      - any of the following:
        - `string`
        - `number`
    - `null`

### 400

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`travelersTrip.list.response.400.errorCode`; string, required)
- `errorMessage` (`travelersTrip.list.response.400.errorMessage`; string, required)

### 401

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`travelersTrip.list.response.401.errorCode`; string, required)
- `errorMessage` (`travelersTrip.list.response.401.errorMessage`; string, required)

### 403

Request failed. `errorCode` is stable; `errorMessage` is for humans.

#### Example

```json
{
  "errorCode": "string",
  "errorMessage": "string"
}
```

- `errorCode` (`travelersTrip.list.response.403.errorCode`; string, required)
- `errorMessage` (`travelersTrip.list.response.403.errorMessage`; string, required)


Source: https://docs.nicer.travel/api/Trips/travelersTrip.list/index.md
