---
title: "List agreement signatures"
---

> 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 agreement signatures

Path: Nicer API › identity

`GET /identity/company/{companyName}/agreements`

URL: `https://api.nicer.travel/identity/company/{companyName}/agreements`

Lists the agreement acceptances of an agency, each with the signer's name and email and a short-lived link to the signed PDF. Agency admins for their own agency, and Nicer staff for any.

## Authentication

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

## Path parameters

- `companyName` (`identity.company.agreements.list.path.companyName`; string, required)

## Query parameters

- `limit` (`identity.company.agreements.list.query.limit`; string, optional) — The most signatures a page holds; 1000 when absent.
- `nextToken` (`identity.company.agreements.list.query.nextToken`; string, optional) — The nextToken of the previous page, to read the next one.

## Header parameters

- `x-nicer-company` (`identity.company.agreements.list.header.x-nicer-company`; string, optional) — Company context for an agency admin who belongs to several companies. Optional when the caller belongs to one.

## 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.company.agreements.list({
  "companyName": "string"
});
```

### Nicer CLI

```bash
nicer identity company agreements list --company-name 'string'
```

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "items": [
    {
      "acceptedAt": "string",
      "companyName": "string",
      "metadata": {
        "property1": null,
        "property2": null
      },
      "signature": "string",
      "status": "accepted",
      "versionNumber": 0,
      "agreementId": "string",
      "userId": "string",
      "createdAt": "string",
      "type": "AgreementAcceptance",
      "updatedAt": "string",
      "documentUrl": "string",
      "email": "string",
      "familyName": "string",
      "givenName": "string"
    }
  ],
  "nextToken": "string"
}
```

- `items` (`identity.company.agreements.list.response.200.items`; array of object, required) — The items of this page.
  - `acceptedAt` (`identity.company.agreements.list.response.200.items.acceptedAt`; string, required)
  - `companyName` (`identity.company.agreements.list.response.200.items.companyName`; string, required)
  - `signature` (`identity.company.agreements.list.response.200.items.signature`; string, required)
  - `status` (`identity.company.agreements.list.response.200.items.status`; string, required)
    - one of `"accepted"`, `"updateRequired"`
  - `versionNumber` (`identity.company.agreements.list.response.200.items.versionNumber`; number, required)
  - `agreementId` (`identity.company.agreements.list.response.200.items.agreementId`; string, required)
  - `userId` (`identity.company.agreements.list.response.200.items.userId`; string, required)
  - `createdAt` (`identity.company.agreements.list.response.200.items.createdAt`; string, required)
  - `type` (`identity.company.agreements.list.response.200.items.type`; string, required)
  - `updatedAt` (`identity.company.agreements.list.response.200.items.updatedAt`; string, required)
  - `documentUrl` (`identity.company.agreements.list.response.200.items.documentUrl`; any of, required)
    - any of the following: `string`, `null`
  - `email` (`identity.company.agreements.list.response.200.items.email`; any of, required)
    - any of the following: `string`, `null`
  - `familyName` (`identity.company.agreements.list.response.200.items.familyName`; any of, required)
    - any of the following: `string`, `null`
  - `givenName` (`identity.company.agreements.list.response.200.items.givenName`; any of, required)
    - any of the following: `string`, `null`
  - `metadata` (`identity.company.agreements.list.response.200.items.metadata`; map of unknown, optional)
- `nextToken` (`identity.company.agreements.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` (`identity.company.agreements.list.response.400.errorCode`; string, required)
- `errorMessage` (`identity.company.agreements.list.response.400.errorMessage`; string, required)

### 401

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

#### Example

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

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

### 403

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

#### Example

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

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


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