---
title: "Resolve a 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.

# Resolve a booking site

Path: Nicer API › identity

`GET /identity/public/site/{host}`

URL: `https://api.nicer.travel/identity/public/site/{host}`

Resolves a live hostname to the app it opens (booking site, portal or Pay), its agency, theme, addresses and, on a booking site, its advisor. With `ref`, a booking site also returns that advisor's card when they are an active member of the site's agency. Anyone may call it, without a token; the answer is cached at the edge.

## Path parameters

- `host` (`identity.public.site.get.path.host`; string, required)

## Query parameters

- `ref` (`identity.public.site.get.query.ref`; string, optional)
  - maxLength: `64`

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

### Nicer CLI

```bash
nicer identity public site get --host 'string'
```

### cURL

```bash
curl --request GET \
  --url 'https://api.nicer.travel/identity/public/site/<host>'
```

### TypeScript

```typescript
const url = 'https://api.nicer.travel/identity/public/site/<host>';
const options = {method: 'GET'};

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/public/site/<host>"

response = requests.get(url)

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "advisor": {
    "avatarUrl": "string",
    "biography": "string",
    "instagram": "string",
    "name": "string",
    "userId": "string",
    "username": "string"
  },
  "advisorSites": true,
  "app": "BOOKING",
  "canonicalHost": "string",
  "company": {
    "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"
    },
    "companyName": "string",
    "displayName": "string",
    "urls": {
      "payUrl": "http://example.com",
      "portalUrl": "http://example.com",
      "siteUrl": "http://example.com"
    }
  },
  "host": "string",
  "refAdvisor": {
    "avatarUrl": "string",
    "biography": "string",
    "instagram": "string",
    "name": "string",
    "userId": "string",
    "username": "string"
  }
}
```

- `advisorSites` (`identity.public.site.get.response.200.advisorSites`; boolean, required)
- `canonicalHost` (`identity.public.site.get.response.200.canonicalHost`; string, required)
- `company` (`identity.public.site.get.response.200.company`; object, required)
  - `branding` (`identity.public.site.get.response.200.company.branding`; object, required)
    - `accentColor` (`identity.public.site.get.response.200.company.branding.accentColor`; string, optional)
      - pattern: `^#[0-9a-fA-F]{6}$`
    - `backgroundColor` (`identity.public.site.get.response.200.company.branding.backgroundColor`; string, optional)
      - pattern: `^#[0-9a-fA-F]{6}$`
    - `bodyFont` (`identity.public.site.get.response.200.company.branding.bodyFont`; string, optional)
      - one of `"Inter"`, `"DM Sans"`, `"Manrope"`, `"Poppins"`, `"Montserrat"`, `"Lato"`, `"Nunito"`, `"Work Sans"`, `"Playfair Display"`, `"Merriweather"`, `"Lora"`, `"Cormorant Garamond"`
    - `borderColor` (`identity.public.site.get.response.200.company.branding.borderColor`; string, optional)
      - pattern: `^#[0-9a-fA-F]{6}$`
    - `contact` (`identity.public.site.get.response.200.company.branding.contact`; object, optional)
      - `email` (`identity.public.site.get.response.200.company.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.public.site.get.response.200.company.branding.contact.instagram`; string, optional)
        - maxLength: `64`
      - `phone` (`identity.public.site.get.response.200.company.branding.contact.phone`; string, optional)
        - maxLength: `32`
      - `whatsapp` (`identity.public.site.get.response.200.company.branding.contact.whatsapp`; string, optional)
        - maxLength: `32`
    - `faviconUrl` (`identity.public.site.get.response.200.company.branding.faviconUrl`; string, optional)
    - `headingFont` (`identity.public.site.get.response.200.company.branding.headingFont`; string, optional)
      - one of `"Inter"`, `"DM Sans"`, `"Manrope"`, `"Poppins"`, `"Montserrat"`, `"Lato"`, `"Nunito"`, `"Work Sans"`, `"Playfair Display"`, `"Merriweather"`, `"Lora"`, `"Cormorant Garamond"`
    - `hero` (`identity.public.site.get.response.200.company.branding.hero`; object, optional)
      - `imageUrl` (`identity.public.site.get.response.200.company.branding.hero.imageUrl`; string, optional)
        - format: `uri` · maxLength: `2048`
      - `subtitle` (`identity.public.site.get.response.200.company.branding.hero.subtitle`; string, optional)
        - maxLength: `160`
      - `title` (`identity.public.site.get.response.200.company.branding.hero.title`; string, optional)
        - maxLength: `80`
    - `logoDarkUrl` (`identity.public.site.get.response.200.company.branding.logoDarkUrl`; string, optional)
      - format: `uri` · maxLength: `2048`
    - `logoUrl` (`identity.public.site.get.response.200.company.branding.logoUrl`; string, optional)
    - `mode` (`identity.public.site.get.response.200.company.branding.mode`; string, optional)
      - one of `"light"`, `"dark"`, `"system"`
    - `mutedTextColor` (`identity.public.site.get.response.200.company.branding.mutedTextColor`; string, optional)
      - pattern: `^#[0-9a-fA-F]{6}$`
    - `primaryColor` (`identity.public.site.get.response.200.company.branding.primaryColor`; string, optional)
    - `privacyUrl` (`identity.public.site.get.response.200.company.branding.privacyUrl`; string, optional)
      - format: `uri` · maxLength: `2048`
    - `radius` (`identity.public.site.get.response.200.company.branding.radius`; integer, optional)
      - maximum: `24` · minimum: `0`
    - `seo` (`identity.public.site.get.response.200.company.branding.seo`; object, optional)
      - `description` (`identity.public.site.get.response.200.company.branding.seo.description`; string, optional)
        - maxLength: `160`
      - `title` (`identity.public.site.get.response.200.company.branding.seo.title`; string, optional)
        - maxLength: `60`
    - `surfaceColor` (`identity.public.site.get.response.200.company.branding.surfaceColor`; string, optional)
      - pattern: `^#[0-9a-fA-F]{6}$`
    - `textColor` (`identity.public.site.get.response.200.company.branding.textColor`; string, optional)
      - pattern: `^#[0-9a-fA-F]{6}$`
  - `companyName` (`identity.public.site.get.response.200.company.companyName`; string, required)
  - `displayName` (`identity.public.site.get.response.200.company.displayName`; string, required)
  - `urls` (`identity.public.site.get.response.200.company.urls`; object, optional)
    - `payUrl` (`identity.public.site.get.response.200.company.urls.payUrl`; string, required)
      - format: `uri` · maxLength: `2048`
    - `portalUrl` (`identity.public.site.get.response.200.company.urls.portalUrl`; string, required)
      - format: `uri` · maxLength: `2048`
    - `siteUrl` (`identity.public.site.get.response.200.company.urls.siteUrl`; string, required)
      - format: `uri` · maxLength: `2048`
- `host` (`identity.public.site.get.response.200.host`; string, required)
- `advisor` (`identity.public.site.get.response.200.advisor`; object, optional)
  - `name` (`identity.public.site.get.response.200.advisor.name`; string, required)
  - `userId` (`identity.public.site.get.response.200.advisor.userId`; string, required)
  - `username` (`identity.public.site.get.response.200.advisor.username`; string, required)
  - `avatarUrl` (`identity.public.site.get.response.200.advisor.avatarUrl`; string, optional)
  - `biography` (`identity.public.site.get.response.200.advisor.biography`; string, optional)
  - `instagram` (`identity.public.site.get.response.200.advisor.instagram`; string, optional)
- `app` (`identity.public.site.get.response.200.app`; string, optional)
  - one of `"BOOKING"`, `"PORTAL"`, `"PAY"`
- `refAdvisor` (`identity.public.site.get.response.200.refAdvisor`; object, optional)
  - `name` (`identity.public.site.get.response.200.refAdvisor.name`; string, required)
  - `userId` (`identity.public.site.get.response.200.refAdvisor.userId`; string, required)
  - `username` (`identity.public.site.get.response.200.refAdvisor.username`; string, required)
  - `avatarUrl` (`identity.public.site.get.response.200.refAdvisor.avatarUrl`; string, optional)
  - `biography` (`identity.public.site.get.response.200.refAdvisor.biography`; string, optional)
  - `instagram` (`identity.public.site.get.response.200.refAdvisor.instagram`; string, optional)

### 400

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

#### Example

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

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


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