---
title: "Get the booking site"
---

> 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 the booking site

Path: Nicer API › identity

`GET /identity/booking-site`

URL: `https://api.nicer.travel/identity/booking-site`

The active agency's booking site: theme, switches, advisor-pages policy, the link the caller shares, and the agency's hostnames, each with the app it opens (booking site, portal or Pay). Advisors and admins of the agency: an admin sees every hostname and every advisor page, an advisor the agency's booking-site hostnames and their own page's.

## Authentication

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

## Header parameters

- `x-nicer-company` (`identity.bookingSite.list.header.x-nicer-company`; string, required) — Company context. Authentication and tenant membership are validated by the API.

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

### Nicer CLI

```bash
nicer identity booking-site list --company "$NICER_COMPANY"
```

### cURL

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

### TypeScript

```typescript
const url = 'https://api.nicer.travel/identity/booking-site';
const options = {
  method: 'GET',
  headers: {'x-nicer-company': 'string', 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/booking-site"

headers = {
    "x-nicer-company": "string",
    "Authorization": "Bearer <token>"
}

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "advisorSites": true,
  "branding": {
    "accentColor": "string",
    "backgroundColor": "string",
    "bodyFont": "Inter",
    "borderColor": "string",
    "contact": {
      "email": "user@example.com",
      "instagram": "string",
      "phone": "string",
      "whatsapp": "string"
    },
    "faviconUrl": "string",
    "headingFont": "Inter",
    "hero": {
      "imageUrl": "http://example.com",
      "subtitle": "string",
      "title": "string"
    },
    "logoDarkUrl": "http://example.com",
    "logoUrl": "string",
    "mode": "light",
    "mutedTextColor": "string",
    "primaryColor": "string",
    "privacyUrl": "http://example.com",
    "radius": 24,
    "seo": {
      "description": "string",
      "title": "string"
    },
    "surfaceColor": "string",
    "textColor": "string"
  },
  "canManage": true,
  "companyName": "string",
  "displayName": "string",
  "dnsTargetZone": "string",
  "enabled": true,
  "envDomain": "string",
  "handle": "string",
  "hosts": [
    {
      "advisorUserId": "string",
      "aliasOf": "string",
      "app": "BOOKING",
      "attempt": 9007199254740991,
      "canonical": true,
      "companyName": "string",
      "createdAt": "string",
      "createdBy": "string",
      "dnsTarget": "string",
      "kind": "SUBDOMAIN",
      "lastError": "string",
      "status": "PENDING_DNS",
      "updatedAt": "string",
      "validationMode": "cloudfront",
      "validationRedirectFrom": "string",
      "validationRedirectTo": "string",
      "host": "string",
      "certificateIssued": true,
      "hasTenant": true
    }
  ],
  "myShareUrl": "string",
  "pages": [
    {
      "advisorUserId": "string",
      "enabled": true
    }
  ],
  "platformHost": "string"
}
```

- `advisorSites` (`identity.bookingSite.list.response.200.advisorSites`; boolean, required)
- `branding` (`identity.bookingSite.list.response.200.branding`; object, required)
  - `accentColor` (`identity.bookingSite.list.response.200.branding.accentColor`; string, optional)
    - pattern: `^#[0-9a-fA-F]{6}$`
  - `backgroundColor` (`identity.bookingSite.list.response.200.branding.backgroundColor`; string, optional)
    - pattern: `^#[0-9a-fA-F]{6}$`
  - `bodyFont` (`identity.bookingSite.list.response.200.branding.bodyFont`; string, optional)
    - one of `"Inter"`, `"DM Sans"`, `"Manrope"`, `"Poppins"`, `"Montserrat"`, `"Lato"`, `"Nunito"`, `"Work Sans"`, `"Playfair Display"`, `"Merriweather"`, `"Lora"`, `"Cormorant Garamond"`
  - `borderColor` (`identity.bookingSite.list.response.200.branding.borderColor`; string, optional)
    - pattern: `^#[0-9a-fA-F]{6}$`
  - `contact` (`identity.bookingSite.list.response.200.branding.contact`; object, optional)
    - `email` (`identity.bookingSite.list.response.200.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.bookingSite.list.response.200.branding.contact.instagram`; string, optional)
      - maxLength: `64`
    - `phone` (`identity.bookingSite.list.response.200.branding.contact.phone`; string, optional)
      - maxLength: `32`
    - `whatsapp` (`identity.bookingSite.list.response.200.branding.contact.whatsapp`; string, optional)
      - maxLength: `32`
  - `faviconUrl` (`identity.bookingSite.list.response.200.branding.faviconUrl`; string, optional)
  - `headingFont` (`identity.bookingSite.list.response.200.branding.headingFont`; string, optional)
    - one of `"Inter"`, `"DM Sans"`, `"Manrope"`, `"Poppins"`, `"Montserrat"`, `"Lato"`, `"Nunito"`, `"Work Sans"`, `"Playfair Display"`, `"Merriweather"`, `"Lora"`, `"Cormorant Garamond"`
  - `hero` (`identity.bookingSite.list.response.200.branding.hero`; object, optional)
    - `imageUrl` (`identity.bookingSite.list.response.200.branding.hero.imageUrl`; string, optional)
      - format: `uri` · maxLength: `2048`
    - `subtitle` (`identity.bookingSite.list.response.200.branding.hero.subtitle`; string, optional)
      - maxLength: `160`
    - `title` (`identity.bookingSite.list.response.200.branding.hero.title`; string, optional)
      - maxLength: `80`
  - `logoDarkUrl` (`identity.bookingSite.list.response.200.branding.logoDarkUrl`; string, optional)
    - format: `uri` · maxLength: `2048`
  - `logoUrl` (`identity.bookingSite.list.response.200.branding.logoUrl`; string, optional)
  - `mode` (`identity.bookingSite.list.response.200.branding.mode`; string, optional)
    - one of `"light"`, `"dark"`, `"system"`
  - `mutedTextColor` (`identity.bookingSite.list.response.200.branding.mutedTextColor`; string, optional)
    - pattern: `^#[0-9a-fA-F]{6}$`
  - `primaryColor` (`identity.bookingSite.list.response.200.branding.primaryColor`; string, optional)
  - `privacyUrl` (`identity.bookingSite.list.response.200.branding.privacyUrl`; string, optional)
    - format: `uri` · maxLength: `2048`
  - `radius` (`identity.bookingSite.list.response.200.branding.radius`; integer, optional)
    - maximum: `24` · minimum: `0`
  - `seo` (`identity.bookingSite.list.response.200.branding.seo`; object, optional)
    - `description` (`identity.bookingSite.list.response.200.branding.seo.description`; string, optional)
      - maxLength: `160`
    - `title` (`identity.bookingSite.list.response.200.branding.seo.title`; string, optional)
      - maxLength: `60`
  - `surfaceColor` (`identity.bookingSite.list.response.200.branding.surfaceColor`; string, optional)
    - pattern: `^#[0-9a-fA-F]{6}$`
  - `textColor` (`identity.bookingSite.list.response.200.branding.textColor`; string, optional)
    - pattern: `^#[0-9a-fA-F]{6}$`
- `canManage` (`identity.bookingSite.list.response.200.canManage`; boolean, required)
- `companyName` (`identity.bookingSite.list.response.200.companyName`; string, required)
- `displayName` (`identity.bookingSite.list.response.200.displayName`; string, required)
- `dnsTargetZone` (`identity.bookingSite.list.response.200.dnsTargetZone`; string, required)
- `enabled` (`identity.bookingSite.list.response.200.enabled`; boolean, required)
- `envDomain` (`identity.bookingSite.list.response.200.envDomain`; string, required)
- `hosts` (`identity.bookingSite.list.response.200.hosts`; array of object, required)
  - `canonical` (`identity.bookingSite.list.response.200.hosts.canonical`; boolean, required)
  - `companyName` (`identity.bookingSite.list.response.200.hosts.companyName`; string, required)
    - minLength: `1`
  - `createdAt` (`identity.bookingSite.list.response.200.hosts.createdAt`; string, required)
  - `createdBy` (`identity.bookingSite.list.response.200.hosts.createdBy`; string, required)
    - minLength: `1`
  - `kind` (`identity.bookingSite.list.response.200.hosts.kind`; string, required)
    - one of `"SUBDOMAIN"`, `"CUSTOM"`, `"ALIAS"`
  - `status` (`identity.bookingSite.list.response.200.hosts.status`; string, required)
    - one of `"PENDING_DNS"`, `"ISSUING"`, `"ACTIVE"`, `"FAILED_DNS"`, `"FAILED_CERT"`, `"REMOVING"`
  - `updatedAt` (`identity.bookingSite.list.response.200.hosts.updatedAt`; string, required)
  - `host` (`identity.bookingSite.list.response.200.hosts.host`; string, required)
    - minLength: `1`
  - `certificateIssued` (`identity.bookingSite.list.response.200.hosts.certificateIssued`; boolean, required)
  - `hasTenant` (`identity.bookingSite.list.response.200.hosts.hasTenant`; boolean, required)
  - `advisorUserId` (`identity.bookingSite.list.response.200.hosts.advisorUserId`; string, optional)
    - minLength: `1`
  - `aliasOf` (`identity.bookingSite.list.response.200.hosts.aliasOf`; string, optional)
  - `app` (`identity.bookingSite.list.response.200.hosts.app`; string, optional)
    - one of `"BOOKING"`, `"PORTAL"`, `"PAY"`
  - `attempt` (`identity.bookingSite.list.response.200.hosts.attempt`; integer, optional)
    - maximum: `9007199254740991` · minimum: `0`
  - `dnsTarget` (`identity.bookingSite.list.response.200.hosts.dnsTarget`; string, optional)
  - `lastError` (`identity.bookingSite.list.response.200.hosts.lastError`; string, optional)
  - `validationMode` (`identity.bookingSite.list.response.200.hosts.validationMode`; string, optional)
    - one of `"cloudfront"`, `"self-hosted"`
  - `validationRedirectFrom` (`identity.bookingSite.list.response.200.hosts.validationRedirectFrom`; string, optional)
  - `validationRedirectTo` (`identity.bookingSite.list.response.200.hosts.validationRedirectTo`; string, optional)
- `pages` (`identity.bookingSite.list.response.200.pages`; array of object, required)
  - `advisorUserId` (`identity.bookingSite.list.response.200.pages.advisorUserId`; string, required)
  - `enabled` (`identity.bookingSite.list.response.200.pages.enabled`; boolean, required)
- `handle` (`identity.bookingSite.list.response.200.handle`; string, optional)
- `myShareUrl` (`identity.bookingSite.list.response.200.myShareUrl`; string, optional)
- `platformHost` (`identity.bookingSite.list.response.200.platformHost`; string, optional)

### 400

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

#### Example

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

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

### 401

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

#### Example

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

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

### 403

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

#### Example

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

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


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