---
title: "List the published advisor agreements"
---

> 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 the published advisor agreements

Path: Nicer API › identity

`GET /identity/agreement`

URL: `https://api.nicer.travel/identity/agreement`

Returns the published advisor agreement of the agency the caller acts for, with its text and version; items is empty while the agency has none. Any signed-in member of the agency the request acts for may read it.

## Authentication

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

## 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.identity.agreement.list();
```

### Nicer CLI

```bash
nicer identity agreement list
```

### cURL

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

### TypeScript

```typescript
const url = 'https://api.nicer.travel/identity/agreement';
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/identity/agreement"

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

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "items": [
    {
      "companyName": "string",
      "content": "string",
      "customFields": {
        "property1": null,
        "property2": null
      },
      "endDate": "string",
      "publishedAt": "string",
      "startDate": "string",
      "status": "draft",
      "versionNumber": 0,
      "agreementId": "string",
      "createdAt": "string",
      "type": "Agreement",
      "updatedAt": "string"
    }
  ]
}
```

- `items` (`identity.agreement.list.response.200.items`; array of object, required)
  - `companyName` (`identity.agreement.list.response.200.items.companyName`; string, required)
  - `content` (`identity.agreement.list.response.200.items.content`; string, required)
  - `publishedAt` (`identity.agreement.list.response.200.items.publishedAt`; string, required)
  - `startDate` (`identity.agreement.list.response.200.items.startDate`; string, required)
  - `status` (`identity.agreement.list.response.200.items.status`; string, required)
    - one of `"draft"`, `"published"`, `"terminated"`
  - `versionNumber` (`identity.agreement.list.response.200.items.versionNumber`; number, required)
  - `agreementId` (`identity.agreement.list.response.200.items.agreementId`; string, required)
  - `createdAt` (`identity.agreement.list.response.200.items.createdAt`; string, required)
  - `type` (`identity.agreement.list.response.200.items.type`; string, required)
  - `updatedAt` (`identity.agreement.list.response.200.items.updatedAt`; string, required)
  - `customFields` (`identity.agreement.list.response.200.items.customFields`; map of unknown, optional)
  - `endDate` (`identity.agreement.list.response.200.items.endDate`; string, optional)

### 400

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

#### Example

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

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

### 401

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

#### Example

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

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

### 403

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

#### Example

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

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


Source: https://docs.nicer.travel/api/identity/identity.agreement.list/index.md
