# List domains

Lists available domains

Required permission: Account > Networking > Domains > Read

**Query parameters:**

{object}
- `per_page`: (integer) The number of results to display per request. Maximum of 100 results per page.
- `page`: (integer) The page number to access.
- `cursor`: (string) The cursor returned from the previous page of results, used to request the next page.

**Response body:**

{object}
- `data`: {object}
  - `domains`: [array of] {object}
     - `name`: (string) (required) The domain name.
     - `status`: (string) (required) The status of the domain verification. (enum: pending, verified)
     - `hostname`: (string) (required) The hostname to add to your domain's DNS records as a TXT record to verify the domain.
     - `token`: (string) (required) The token to add as the content of the TXT record to verify the domain.
     - `options`: {object}
       - `minTlsProtocolVersion`: (string) Minimum TLS protocol version configured at the domain level. (enum: TLSV1_1, TLSV1_2, TLSV1_3)
       - `tlsMode`: (string) TLS mode configured at the domain level. (enum: default, passthrough)
- `pagination`: {object}
  - `hasNextPage`: (boolean) (required) Is there another page of results available?
  - `cursor`: (string) The cursor to access the next page of results.
  - `count`: (number) (required) The number of results returned by this request. (format: float)

## API reference

GET /v1/domains

GET /v1/teams/{teamId}/domains

### Example Response

200 OK: A list of domains registered to this account.

```json
{
  "data": {
    "domains": [
      {
        "name": "example.com",
        "status": "verified",
        "hostname": "nfverify1608026055",
        "token": "e596987b52855a4a773ef580ce2985d7746b37ce8b2a443d20fa27b913d8f57"
      }
    ]
  },
  "pagination": {
    "hasNextPage": false,
    "count": 1
  }
}
```

## CLI reference

$ northflank list domains

Options:

- `--per_page <per_page>`: The number of results to display per request. Maximum of 100 results per page.

- `--page <page>`: The page number to access.

- `--cursor <cursor>`: The cursor returned from the previous page of results, used to request the next page.

- `--verbose `: Verbose output

- `--quiet `: No console output

- `-o --output <format>`: Output formatting - custom-columns only applies for list commands

### Example Response

 A list of domains registered to this account.

```json
{
  "domains": [
    {
      "name": "example.com",
      "status": "verified",
      "hostname": "nfverify1608026055",
      "token": "e596987b52855a4a773ef580ce2985d7746b37ce8b2a443d20fa27b913d8f57"
    }
  ]
}
```

## JavaScript client reference

### Example request



```javascript
await apiClient.list.domains({
  options: {
    "per_page": 50,
    "page": 1
  }
});
```

### Example Response

 A list of domains registered to this account.

```json
{
  "data": {
    "domains": [
      {
        "name": "example.com",
        "status": "verified",
        "hostname": "nfverify1608026055",
        "token": "e596987b52855a4a773ef580ce2985d7746b37ce8b2a443d20fa27b913d8f57"
      }
    ]
  },
  "pagination": {
    "hasNextPage": false,
    "count": 1
  },
  "rawResponse": "...",
  "request": "...",
  "error": "..."
}
```

Previous: [Get DNS ID](/docs/v1/api/team/miscellaneous/get-dns-id)

Next: [Create new domain](/docs/v1/api/team/domains/create-new-domain)