# The shortest path from here to a launch.

> Never runs a paid or live probe.
> https://koi.dog/docs/api/setup/get-setup/

`GET /api/v1/setup` · Scope: `read`

## Query parameters.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `projectId` | `string` | no | Filter by project. At least 5 characters. |
| `connectionId` | `string` | no | Filter by connection. At least 5 characters. |
| `nodeId` | `string` | no | Filter by machine. At least 5 characters. |

## Response.

200 OK · JSON object

## Request.

```sh
curl https://api.koi.dog/api/v1/setup \
    -H "Authorization: Bearer $KOIDOG_API_KEY"
```

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

```python
import os

import requests

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

## Response example.

```json
{
  "projectId": "string",
  "next": {
    "action": "connect",
    "resourceId": "string",
    "reason": "not_configured"
  },
  "remaining": [],
  "prefill": {
    …
  },
  "machines": []
}
```
