---
title: "List my agencies"
---

> 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 my agencies

Path: Nicer API › identity

`GET /identity/company`

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

Lists the agencies the caller is an active member of, each with their role in it and its company record, and names the agency the request acts for. The record carries the email sending domain only for the agencies where the caller is an admin; Nicer staff get every agency, each whole.

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

### Nicer CLI

```bash
nicer identity company list
```

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "activeCompanyName": "string",
  "companies": [
    {
      "company": {
        "companyName": "string",
        "config": {},
        "createdAt": "string",
        "createdBy": "string",
        "displayName": "string",
        "status": "active",
        "updatedAt": "string",
        "type": "Company"
      },
      "role": "advisor"
    }
  ]
}
```

- `activeCompanyName` (`identity.company.list.response.200.activeCompanyName`; any of, required)
  - any of the following: `string`, `null`
- `companies` (`identity.company.list.response.200.companies`; array of object, required)
  - `company` (`identity.company.list.response.200.companies.company`; object, required)
    - `companyName` (`identity.company.list.response.200.companies.company.companyName`; string, required)
      - minLength: `1`
    - `config` (`identity.company.list.response.200.companies.company.config`; object, required)
      - default: `{}`
      - `bookingSite` (`identity.company.list.response.200.companies.company.config.bookingSite`; object, optional)
        - `advisorSites` (`identity.company.list.response.200.companies.company.config.bookingSite.advisorSites`; boolean, optional)
        - `enabled` (`identity.company.list.response.200.companies.company.config.bookingSite.enabled`; boolean, optional)
        - `handle` (`identity.company.list.response.200.companies.company.config.bookingSite.handle`; string, optional)
      - `branding` (`identity.company.list.response.200.companies.company.config.branding`; object, optional)
        - `accentColor` (`identity.company.list.response.200.companies.company.config.branding.accentColor`; string, optional)
          - pattern: `^#[0-9a-fA-F]{6}$`
        - `backgroundColor` (`identity.company.list.response.200.companies.company.config.branding.backgroundColor`; string, optional)
          - pattern: `^#[0-9a-fA-F]{6}$`
        - `bodyFont` (`identity.company.list.response.200.companies.company.config.branding.bodyFont`; string, optional)
          - one of `"Inter"`, `"DM Sans"`, `"Manrope"`, `"Poppins"`, `"Montserrat"`, `"Lato"`, `"Nunito"`, `"Work Sans"`, `"Playfair Display"`, `"Merriweather"`, `"Lora"`, `"Cormorant Garamond"`
        - `borderColor` (`identity.company.list.response.200.companies.company.config.branding.borderColor`; string, optional)
          - pattern: `^#[0-9a-fA-F]{6}$`
        - `contact` (`identity.company.list.response.200.companies.company.config.branding.contact`; object, optional)
          - `email` (`identity.company.list.response.200.companies.company.config.branding.contact.email`; string, optional)
            - format: `email` · maxLength: `254` · pattern: `^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$`
          - `instagram` (`identity.company.list.response.200.companies.company.config.branding.contact.instagram`; string, optional)
            - maxLength: `64`
          - `phone` (`identity.company.list.response.200.companies.company.config.branding.contact.phone`; string, optional)
            - maxLength: `32`
          - `whatsapp` (`identity.company.list.response.200.companies.company.config.branding.contact.whatsapp`; string, optional)
            - maxLength: `32`
        - `faviconUrl` (`identity.company.list.response.200.companies.company.config.branding.faviconUrl`; string, optional)
        - `headingFont` (`identity.company.list.response.200.companies.company.config.branding.headingFont`; string, optional)
          - one of `"Inter"`, `"DM Sans"`, `"Manrope"`, `"Poppins"`, `"Montserrat"`, `"Lato"`, `"Nunito"`, `"Work Sans"`, `"Playfair Display"`, `"Merriweather"`, `"Lora"`, `"Cormorant Garamond"`
        - `hero` (`identity.company.list.response.200.companies.company.config.branding.hero`; object, optional)
          - `imageUrl` (`identity.company.list.response.200.companies.company.config.branding.hero.imageUrl`; string, optional)
            - format: `uri` · maxLength: `2048`
          - `subtitle` (`identity.company.list.response.200.companies.company.config.branding.hero.subtitle`; string, optional)
            - maxLength: `160`
          - `title` (`identity.company.list.response.200.companies.company.config.branding.hero.title`; string, optional)
            - maxLength: `80`
        - `logoDarkUrl` (`identity.company.list.response.200.companies.company.config.branding.logoDarkUrl`; string, optional)
          - format: `uri` · maxLength: `2048`
        - `logoUrl` (`identity.company.list.response.200.companies.company.config.branding.logoUrl`; string, optional)
        - `mode` (`identity.company.list.response.200.companies.company.config.branding.mode`; string, optional)
          - one of `"light"`, `"dark"`, `"system"`
        - `mutedTextColor` (`identity.company.list.response.200.companies.company.config.branding.mutedTextColor`; string, optional)
          - pattern: `^#[0-9a-fA-F]{6}$`
        - `primaryColor` (`identity.company.list.response.200.companies.company.config.branding.primaryColor`; string, optional)
        - `privacyUrl` (`identity.company.list.response.200.companies.company.config.branding.privacyUrl`; string, optional)
          - format: `uri` · maxLength: `2048`
        - `radius` (`identity.company.list.response.200.companies.company.config.branding.radius`; integer, optional)
          - maximum: `24` · minimum: `0`
        - `seo` (`identity.company.list.response.200.companies.company.config.branding.seo`; object, optional)
          - `description` (`identity.company.list.response.200.companies.company.config.branding.seo.description`; string, optional)
            - maxLength: `160`
          - `title` (`identity.company.list.response.200.companies.company.config.branding.seo.title`; string, optional)
            - maxLength: `60`
        - `surfaceColor` (`identity.company.list.response.200.companies.company.config.branding.surfaceColor`; string, optional)
          - pattern: `^#[0-9a-fA-F]{6}$`
        - `textColor` (`identity.company.list.response.200.companies.company.config.branding.textColor`; string, optional)
          - pattern: `^#[0-9a-fA-F]{6}$`
      - `emailSending` (`identity.company.list.response.200.companies.company.config.emailSending`; object, optional)
        - `checkedAt` (`identity.company.list.response.200.companies.company.config.emailSending.checkedAt`; string, required)
        - `dkimTokens` (`identity.company.list.response.200.companies.company.config.emailSending.dkimTokens`; array of string, required)
          - minLength: `1`
        - `domain` (`identity.company.list.response.200.companies.company.config.emailSending.domain`; string, required)
          - maxLength: `253` · minLength: `1`
        - `status` (`identity.company.list.response.200.companies.company.config.emailSending.status`; string, required)
          - one of `"FAILED"`, `"PENDING"`, `"VERIFIED"`
        - `tenant` (`identity.company.list.response.200.companies.company.config.emailSending.tenant`; string, required)
          - maxLength: `64` · minLength: `1`
      - `locale` (`identity.company.list.response.200.companies.company.config.locale`; string, optional)
      - `timezone` (`identity.company.list.response.200.companies.company.config.timezone`; string, optional)
    - `createdAt` (`identity.company.list.response.200.companies.company.createdAt`; string, required)
    - `createdBy` (`identity.company.list.response.200.companies.company.createdBy`; string, required)
      - minLength: `1`
    - `displayName` (`identity.company.list.response.200.companies.company.displayName`; string, required)
      - minLength: `1`
    - `status` (`identity.company.list.response.200.companies.company.status`; string, required)
      - one of `"active"`, `"suspended"`
    - `updatedAt` (`identity.company.list.response.200.companies.company.updatedAt`; string, required)
    - `type` (`identity.company.list.response.200.companies.company.type`; string, required)
  - `role` (`identity.company.list.response.200.companies.role`; string, required)
    - one of `"advisor"`, `"traveler"`, `"admin"`, `"superadmin"`

### 400

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

#### Example

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

- `errorCode` (`identity.company.list.response.400.errorCode`; string, required)
- `errorMessage` (`identity.company.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.list.response.401.errorCode`; string, required)
- `errorMessage` (`identity.company.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.list.response.403.errorCode`; string, required)
- `errorMessage` (`identity.company.list.response.403.errorMessage`; string, required)


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