> This page is for version v1 (default).
> For other versions, use one of these documentation indexes:
> - v1 (default): https://docs.butterix.com/en/llms.txt
> - v0: https://docs.butterix.com/en/v0/llms.txt

> For the MDX source of any page, append .mdx to the page URL.
> For a complete documentation index, see https://docs.butterix.com/en/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.butterix.com/_mcp/server.
> If something on this page is wrong or missing, POST JSON {"page": "<page URL>", "message": "<what is wrong>"} to https://docs.butterix.com/_biti/feedback/agent.

# Ask AI questions

`GET /sites/{site}/questions`

Newest first. Filters can be combined; for the next page, pass the `ts` of the last item as `before`.

Base URL: https://api.butterix.com/v1

Authentication: bearer token in Authorization header or API key in cookie `biti_session`

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `site` | string | yes | Site slug or id |

## Query parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `days` | integer | no | How many days back; no limit by default |
| `before` | integer | no | Only items before this time (Unix milliseconds) |
| `outcome` | string | no | Outcomes, separated by commas |
| `rating` | enum | no | The reader's rating; `none` for unrated ones Allowed: `up`, `down`, `none`. |
| `sources` | enum | no | `none` returns only answers without any source Allowed: `none`. |
| `page` | string | no | Page the reader asked from |
| `limit` | integer | no | Number of items, 500 at most |

## Example request

```bash
curl https://api.butterix.com/v1/sites/acme-payments/questions \
     -H "Authorization: Bearer <token>"
```

## Responses

### 200

Questions readers asked in Ask AI, with the answers

Content type: `application/json`

| Field | Type | Required | Description |
|---|---|---|---|
| `[].id` | integer | no |  |
| `[].ts` | integer | no |  |
| `[].question` | string | no |  |
| `[].answer` | string | no |  |
| `[].model` | string | no |  |
| `[].provider` | enum | no | Allowed: `anthropic`, `deepseek`, `openrouter`. |
| `[].sources` | list of strings | no |  |
| `[].outcome` | enum | no | Whether it was answered: `answered`, `partial`, `missing` (not in the docs), `declined` (unrelated to the site), `stray` (the answer left the site's subject), or `failed` (incomplete) Allowed: `answered`, `partial`, `missing`, `declined`, `stray`, `failed`. |
| `[].rating` | enum | no | The reader's rating May be null. Allowed: `up`, `down`. |
| `[].page` | string | no | Page the reader asked from May be null. |
| `[].country` | string | no | Country code (looked up from the IP) May be null. |
| `[].net` | string | no | Masked network (first three parts of the IP) May be null. |
| `[].agent` | string | no | Browser and system May be null. |
| `[].visitor` | string | no | Anonymous visitor id (changes daily) May be null. |

### Example response (200)

```json
[
  {
    "id": 1,
    "ts": 1,
    "question": "How do I set up a custom domain?",
    "answer": "string",
    "model": "deepseek-flash",
    "provider": "anthropic",
    "sources": [
      "/guides/deploy/custom-domains"
    ],
    "outcome": "answered",
    "rating": "up",
    "page": "/guides/deploy/platform",
    "country": "CN",
    "net": "203.0.113.*",
    "agent": "Chrome 158 · macOS",
    "visitor": "string"
  }
]
```
