# Where a preview can run today, and why not where it cannot.

> https://koi.dog/docs/api/previews/get-preview-availability/

`GET /api/v1/previews/availability` · Scope: `read`

Experimental: this route may change inside v1. No path or query parameters.

## Response.

200 OK: a JSON object. The example has placeholder values.

## Request.

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

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

```python
import os

import requests

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

## Response example.

```json
{
  "boat": {
    "available": false,
    "reason": "string"
  },
  "mac": {
    "available": false,
    "status": "planned",
    "reason": "string"
  }
}
```
