# The hosts a project's runs may reach.

> Beside Koidog's default list of official package registries, the hosts this project's agents, checks and previews may reach through the egress proxy on cloud workers and Linux slot users.
> https://koi.dog/docs/api/projects/get-project-egress-hosts/

`GET /api/v1/projects/{id}/egress-hosts` · Scope: `read`

Set by the workspace's owner; never read from the repository.

## Path parameters.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | yes | The project's id. |

## Response.

200 OK · JSON object

## Request.

```sh
curl "https://api.koi.dog/api/v1/projects/$ID/egress-hosts" \
    -H "Authorization: Bearer $KOIDOG_API_KEY"
```

```js
const res = await fetch(`https://api.koi.dog/api/v1/projects/${process.env.ID}/egress-hosts`, {
  headers: {
    Authorization: `Bearer ${process.env.KOIDOG_API_KEY}`,
  },
});
console.log(await res.json());
```

```python
import os

import requests

r = requests.get(
    f"https://api.koi.dog/api/v1/projects/{os.environ['ID']}/egress-hosts",
    headers={
        "Authorization": f"Bearer {os.environ['KOIDOG_API_KEY']}",
    },
)
r.raise_for_status()
print(r.json())
```

## Response example.

```json
{
  "projectId": "string",
  "hosts": []
}
```
