---
title: "List a traveler's timeline"
---

> 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 a traveler's timeline

Path: Nicer API › Notes and tasks

`GET /crm/activity`

URL: `https://api.nicer.travel/crm/activity`

Returns what happened to one traveler (travelerId), newest first: changes in the CRM, notes and tasks, trips, bookings, payments, invitations, emails and itineraries sent. Each entry has its type, a one-line summary and the ids it is about in data, never the values that changed. 50 a page unless limit says otherwise; send the answer's nextToken back to read the next page, until it is null. Errors: 400 ERROR_INVALID_QUERY for a missing travelerId, a limit out of range or a nextToken of another list; 404 ERROR_ITEM_NOT_FOUND for a traveler the caller may not see.

## Authentication

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

## Query parameters

- `travelerId` (`crm.activity.list.query.travelerId`; string, required) — The traveler (TRV…) whose timeline to list.
  - maxLength: `64` · minLength: `1`
- `limit` (`crm.activity.list.query.limit`; integer, optional) — How many entries a page holds, 1 to 100; 50 when left out.
  - maximum: `100` · minimum: `1`
- `nextToken` (`crm.activity.list.query.nextToken`; string, optional) — The nextToken of the page before, to read the next one; left out for the first page.
  - minLength: `1`

## Header parameters

- `x-nicer-company` (`crm.activity.list.header.x-nicer-company`; string, required) — Company context. Authentication and tenant membership are validated by the API.
- `X-Nicer-CRM-Contract` (`crm.activity.list.header.X-Nicer-CRM-Contract`; string, required)
  - one of `"resource"` · example: `"resource"`

## Code samples

### JavaScript SDK

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

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

await nicer.crm.activity.list({
  "travelerId": "string"
});
```

### Nicer CLI

```bash
nicer crm activity list --traveler-id 'string' --company "$NICER_COMPANY"
```

### cURL

```bash
curl --request GET \
  --url 'https://api.nicer.travel/crm/activity?travelerId=string' \
  --header 'Authorization: Bearer <token>' \
  --header 'X-Nicer-CRM-Contract: resource' \
  --header 'x-nicer-company: string'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/crm/activity?travelerId=string';
const options = {
  method: 'GET',
  headers: {
    'x-nicer-company': 'string',
    'X-Nicer-CRM-Contract': 'resource',
    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/crm/activity?travelerId=string"

headers = {
    "x-nicer-company": "string",
    "X-Nicer-CRM-Contract": "resource",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "items": [
    {
      "activityId": "string",
      "actorUserId": "string",
      "data": {
        "property1": null,
        "property2": null
      },
      "occurredAt": "2019-08-24T14:15:22Z",
      "summary": "string",
      "travelerId": "string",
      "travelersTripId": "string",
      "type": "app.TravelersTrip.created"
    }
  ],
  "nextToken": "string"
}
```

- `items` (`crm.activity.list.response.200.items`; array of object, required) — The items of this page.
  - `activityId` (`crm.activity.list.response.200.items.activityId`; string, required) — The event's id; the same entry is never recorded twice.
  - `actorUserId` (`crm.activity.list.response.200.items.actorUserId`; any of, required) — The user id of who did it; null for the system and other domains' automations.
    - any of the following: `string`, `null`
  - `data` (`crm.activity.list.response.200.items.data`; map of unknown, required) — Ids, section names and counts the entry is about, as the event of its type gives them.
  - `occurredAt` (`crm.activity.list.response.200.items.occurredAt`; string, required) — When it happened.
    - format: `date-time` · pattern: `^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$`
  - `summary` (`crm.activity.list.response.200.items.summary`; string, required) — One readable line, e.g. "Hotel booked" or "Passport updated".
  - `travelerId` (`crm.activity.list.response.200.items.travelerId`; any of, required) — The traveler whose timeline holds the entry.
    - any of the following: `TravelerId`, `null`
  - `travelersTripId` (`crm.activity.list.response.200.items.travelersTripId`; any of, required) — The trip (TT…) the entry is about, when it is about one.
    - any of the following: `string`, `null`
  - `type` (`crm.activity.list.response.200.items.type`; string, required) — The event the entry was written from.
    - one of `"app.TravelersTrip.created"`, `"app.TravelersTrip.user.added"`, `"app.TripItinerary.Send"`, `"app.TripItinerary.approved"`, `"commerce.order-confirmation-requested.v1"`, `"commerce.order-projection-changed.v1"`, `"commerce.payment-receipt-requested.v1"`, `"crm.note-changed.v1"`, `"crm.task-changed.v1"`, `"crm.traveler-advisors-changed.v1"`, `"crm.traveler-created.v1"`, `"crm.traveler-documents-changed.v1"`, `"crm.traveler-invitation-requested.v1"`, `"crm.traveler-linked.v1"`, `"crm.traveler-unlinked.v1"`, `"crm.traveler-updated.v1"`, `"crm.travelers-merged.v1"`, `"crm.trip-updated.v1"`, `"notifications.traveler-email-sent.v1"`
- `nextToken` (`crm.activity.list.response.200.nextToken`; any of, required) — Send it back as nextToken to read the next page; null on the last page.
  - any of the following: `string`, `null`

### 400

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

#### Example

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

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

### 401

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

#### Example

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

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

### 403

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

#### Example

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

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


Source: https://docs.nicer.travel/api/Notes-and-tasks/crm.activity.list/index.md
