---
title: "List ad serving hosts"
type: reference
method: GET
path: /rest-api/adsHosts.do
tag: "Sites"
---

# List ad serving hosts

`GET https://YOUR-NETWORK-DOMAIN/rest-api/adsHosts.do`

Returns the complete set of configured ad serving host names available in the current system. These hosts can be used with the changeAdServingDomain endpoint to configure per-site ad delivery domains.

## Responses

- `200` — Successful operation
- `400` — Bad request — invalid or missing parameters
- `401` — Unauthorized — authentication failed or missing credentials
- `403` — Forbidden — insufficient permissions

## Example request

```bash
curl --request GET \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/adsHosts.do' \
  --header 'X-Api-Key: YOUR_API_KEY'
```

Source: https://epom.com/ad-server/docs/api/sites/get-adshosts