---
title: "Get an agency"
---

> 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.

# Get an agency

Path: Nicer API › identity

`GET /identity/company/{companyName}`

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

Returns an agency's company record: display name, status and configuration (locale, timezone, branding, booking-site switches, and for its admins and Nicer staff the email sending domain). Any active member of the agency, and Nicer staff.

## Authentication

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

## Path parameters

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

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

### Nicer CLI

```bash
nicer identity company get --company-name 'string'
```

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "companyName": "string",
  "config": {},
  "createdAt": "string",
  "createdBy": "string",
  "displayName": "string",
  "status": "active",
  "updatedAt": "string",
  "type": "Company"
}
```

- `companyName` (`identity.company.get.response.200.companyName`; string, required)
  - minLength: `1`
- `config` (`identity.company.get.response.200.config`; object, required)
  - default: `{}`
  - `bookingSite` (`identity.company.get.response.200.config.bookingSite`; object, optional)
    - `advisorSites` (`identity.company.get.response.200.config.bookingSite.advisorSites`; boolean, optional)
    - `enabled` (`identity.company.get.response.200.config.bookingSite.enabled`; boolean, optional)
    - `handle` (`identity.company.get.response.200.config.bookingSite.handle`; string, optional)
  - `branding` (`identity.company.get.response.200.config.branding`; object, optional)
    - `accentColor` (`identity.company.get.response.200.config.branding.accentColor`; string, optional)
      - pattern: `^#[0-9a-fA-F]{6}$`
    - `backgroundColor` (`identity.company.get.response.200.config.branding.backgroundColor`; string, optional)
      - pattern: `^#[0-9a-fA-F]{6}$`
    - `bodyFont` (`identity.company.get.response.200.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.get.response.200.config.branding.borderColor`; string, optional)
      - pattern: `^#[0-9a-fA-F]{6}$`
    - `contact` (`identity.company.get.response.200.config.branding.contact`; object, optional)
      - `email` (`identity.company.get.response.200.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.get.response.200.config.branding.contact.instagram`; string, optional)
        - maxLength: `64`
      - `phone` (`identity.company.get.response.200.config.branding.contact.phone`; string, optional)
        - maxLength: `32`
      - `whatsapp` (`identity.company.get.response.200.config.branding.contact.whatsapp`; string, optional)
        - maxLength: `32`
    - `faviconUrl` (`identity.company.get.response.200.config.branding.faviconUrl`; string, optional)
    - `headingFont` (`identity.company.get.response.200.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.get.response.200.config.branding.hero`; object, optional)
      - `imageUrl` (`identity.company.get.response.200.config.branding.hero.imageUrl`; string, optional)
        - format: `uri` · maxLength: `2048`
      - `subtitle` (`identity.company.get.response.200.config.branding.hero.subtitle`; string, optional)
        - maxLength: `160`
      - `title` (`identity.company.get.response.200.config.branding.hero.title`; string, optional)
        - maxLength: `80`
    - `logoDarkUrl` (`identity.company.get.response.200.config.branding.logoDarkUrl`; string, optional)
      - format: `uri` · maxLength: `2048`
    - `logoUrl` (`identity.company.get.response.200.config.branding.logoUrl`; string, optional)
    - `mode` (`identity.company.get.response.200.config.branding.mode`; string, optional)
      - one of `"light"`, `"dark"`, `"system"`
    - `mutedTextColor` (`identity.company.get.response.200.config.branding.mutedTextColor`; string, optional)
      - pattern: `^#[0-9a-fA-F]{6}$`
    - `primaryColor` (`identity.company.get.response.200.config.branding.primaryColor`; string, optional)
    - `privacyUrl` (`identity.company.get.response.200.config.branding.privacyUrl`; string, optional)
      - format: `uri` · maxLength: `2048`
    - `radius` (`identity.company.get.response.200.config.branding.radius`; integer, optional)
      - maximum: `24` · minimum: `0`
    - `seo` (`identity.company.get.response.200.config.branding.seo`; object, optional)
      - `description` (`identity.company.get.response.200.config.branding.seo.description`; string, optional)
        - maxLength: `160`
      - `title` (`identity.company.get.response.200.config.branding.seo.title`; string, optional)
        - maxLength: `60`
    - `surfaceColor` (`identity.company.get.response.200.config.branding.surfaceColor`; string, optional)
      - pattern: `^#[0-9a-fA-F]{6}$`
    - `textColor` (`identity.company.get.response.200.config.branding.textColor`; string, optional)
      - pattern: `^#[0-9a-fA-F]{6}$`
  - `emailSending` (`identity.company.get.response.200.config.emailSending`; object, optional)
    - `checkedAt` (`identity.company.get.response.200.config.emailSending.checkedAt`; string, required)
    - `dkimTokens` (`identity.company.get.response.200.config.emailSending.dkimTokens`; array of string, required)
      - minLength: `1`
    - `domain` (`identity.company.get.response.200.config.emailSending.domain`; string, required)
      - maxLength: `253` · minLength: `1`
    - `status` (`identity.company.get.response.200.config.emailSending.status`; string, required)
      - one of `"FAILED"`, `"PENDING"`, `"VERIFIED"`
    - `tenant` (`identity.company.get.response.200.config.emailSending.tenant`; string, required)
      - maxLength: `64` · minLength: `1`
  - `locale` (`identity.company.get.response.200.config.locale`; string, optional)
  - `timezone` (`identity.company.get.response.200.config.timezone`; string, optional)
- `createdAt` (`identity.company.get.response.200.createdAt`; string, required)
- `createdBy` (`identity.company.get.response.200.createdBy`; string, required)
  - minLength: `1`
- `displayName` (`identity.company.get.response.200.displayName`; string, required)
  - minLength: `1`
- `status` (`identity.company.get.response.200.status`; string, required)
  - one of `"active"`, `"suspended"`
- `updatedAt` (`identity.company.get.response.200.updatedAt`; string, required)
- `type` (`identity.company.get.response.200.type`; string, required)

### 400

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

#### Example

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

- `errorCode` (`identity.company.get.response.400.errorCode`; string, required)
- `errorMessage` (`identity.company.get.response.400.errorMessage`; string, required)

### 401

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

#### Example

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

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

### 403

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

#### Example

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

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


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