# Questions from every crew.

> As `GET /crews/{id}/questions`, across all crews, newest first, so an inbox reads them in one call.
> https://koi.dog/docs/api/questions/list-questions/

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

Filters: `state` (`open,timed_out` is everything not answered yet), `projectId`, `crewId`, `agentId` and `answerer`. `GET /overview` carries the count not answered yet as `openQuestions`.

## Query parameters.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `state` | `array` | no | One or more states, comma-separated. Any of `open`, `answered`, `timed_out`, `canceled`. At least 1 item. |
| `projectId` | `string` | no | Filter by project. At least 5 characters. |
| `crewId` | `string` | no | Filter by crew. At least 5 characters. |
| `agentId` | `string` | no | Filter by agent. At least 5 characters. |
| `answerer` | `enum` | no | Only questions expected to be answered by `founder` or by the crew's `manager`. One of `founder`, `manager`. |
| `limit` | `1–200` | no | Page size. Default `50`. |
| `cursor` | `string` | no | Previous page’s `nextCursor`. Keep filters and order. At least 1 character. |
| `order` | `enum` | no | Sort by creation time, then ID. `desc` newest, `asc` oldest. One of `asc`, `desc`. Default `desc`. |
| `createdAfter` | `string` | no | From this UTC timestamp, inclusive (e.g. `2027-01-01T00:00:00Z`). Uses run start, node pairing, move request, event or log time, otherwise creation. |
| `createdBefore` | `string` | no | Through this UTC timestamp, inclusive. See `createdAfter`. |

## Response.

200 OK · `data`: `object[]`. Pass `nextCursor` as `cursor` when `hasMore` is true.

## Request.

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

```js
const res = await fetch("https://api.koi.dog/api/v1/questions", {
  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/questions",
    headers={
        "Authorization": f"Bearer {os.environ['KOIDOG_API_KEY']}",
    },
)
r.raise_for_status()
print(r.json())
```

## Response example.

```json
{
  "data": [],
  "nextCursor": "string",
  "hasMore": false
}
```
