---
title: "List booking-site hostnames"
---

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

Path: Nicer API › identity

`GET /identity/admin/hosts`

URL: `https://api.nicer.travel/identity/admin/hosts`

Every agency hostname on the platform (booking sites, portals and Pay), for support, filtered by app and status when they are sent. Nicer staff only.

## Authentication

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

## Query parameters

- `app` (`identity.admin.hosts.list.query.app`; string, optional)
  - one of `"BOOKING"`, `"PORTAL"`, `"PAY"`
- `status` (`identity.admin.hosts.list.query.status`; string, optional)
  - one of `"PENDING_DNS"`, `"ISSUING"`, `"ACTIVE"`, `"FAILED_DNS"`, `"FAILED_CERT"`, `"REMOVING"`

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

### Nicer CLI

```bash
nicer identity admin hosts list
```

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

OK

#### Example

```json
{
  "items": [
    {
      "advisorUserId": "string",
      "aliasOf": "string",
      "app": "BOOKING",
      "attempt": 9007199254740991,
      "canonical": true,
      "certificateArn": "string",
      "companyName": "string",
      "createdAt": "string",
      "createdBy": "string",
      "dnsElsewhereSince": "string",
      "dnsTarget": "string",
      "kind": "SUBDOMAIN",
      "lastError": "string",
      "status": "PENDING_DNS",
      "tenantId": "string",
      "tenantName": "string",
      "updatedAt": "string",
      "validationMode": "cloudfront",
      "validationRedirectFrom": "string",
      "validationRedirectTo": "string",
      "host": "string"
    }
  ]
}
```

- `items` (`identity.admin.hosts.list.response.200.items`; array of object, required)
  - `canonical` (`identity.admin.hosts.list.response.200.items.canonical`; boolean, required)
  - `companyName` (`identity.admin.hosts.list.response.200.items.companyName`; string, required)
    - minLength: `1`
  - `createdAt` (`identity.admin.hosts.list.response.200.items.createdAt`; string, required)
  - `createdBy` (`identity.admin.hosts.list.response.200.items.createdBy`; string, required)
    - minLength: `1`
  - `kind` (`identity.admin.hosts.list.response.200.items.kind`; string, required)
    - one of `"SUBDOMAIN"`, `"CUSTOM"`, `"ALIAS"`
  - `status` (`identity.admin.hosts.list.response.200.items.status`; string, required)
    - one of `"PENDING_DNS"`, `"ISSUING"`, `"ACTIVE"`, `"FAILED_DNS"`, `"FAILED_CERT"`, `"REMOVING"`
  - `updatedAt` (`identity.admin.hosts.list.response.200.items.updatedAt`; string, required)
  - `host` (`identity.admin.hosts.list.response.200.items.host`; string, required)
    - minLength: `1`
  - `advisorUserId` (`identity.admin.hosts.list.response.200.items.advisorUserId`; string, optional)
    - minLength: `1`
  - `aliasOf` (`identity.admin.hosts.list.response.200.items.aliasOf`; string, optional)
  - `app` (`identity.admin.hosts.list.response.200.items.app`; string, optional)
    - one of `"BOOKING"`, `"PORTAL"`, `"PAY"`
  - `attempt` (`identity.admin.hosts.list.response.200.items.attempt`; integer, optional)
    - maximum: `9007199254740991` · minimum: `0`
  - `certificateArn` (`identity.admin.hosts.list.response.200.items.certificateArn`; string, optional)
  - `dnsElsewhereSince` (`identity.admin.hosts.list.response.200.items.dnsElsewhereSince`; string, optional)
  - `dnsTarget` (`identity.admin.hosts.list.response.200.items.dnsTarget`; string, optional)
  - `lastError` (`identity.admin.hosts.list.response.200.items.lastError`; string, optional)
  - `tenantId` (`identity.admin.hosts.list.response.200.items.tenantId`; string, optional)
  - `tenantName` (`identity.admin.hosts.list.response.200.items.tenantName`; string, optional)
  - `validationMode` (`identity.admin.hosts.list.response.200.items.validationMode`; string, optional)
    - one of `"cloudfront"`, `"self-hosted"`
  - `validationRedirectFrom` (`identity.admin.hosts.list.response.200.items.validationRedirectFrom`; string, optional)
  - `validationRedirectTo` (`identity.admin.hosts.list.response.200.items.validationRedirectTo`; string, optional)

### 400

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

#### Example

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

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

### 401

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

#### Example

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

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

### 403

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

#### Example

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

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


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