# An agent's moves and model switches, newest first.

> https://koi.dog/docs/api/agents/list-agent-moves/

`GET /api/v1/agents/{id}/moves` · Scope: `read`

## Path parameters.

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

## Query parameters.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | `1–200` | no | How many items to return, 1 to 200. Default 50. |
| `cursor` | `string` | no | The `nextCursor` of the previous page. Only valid with the same filters and order. At least 1 character. |
| `order` | `enum` | no | `desc` is newest first; `asc` is oldest first. Collections sort by creation time, then id. One of `asc`, `desc`. Default `desc`. |

## Response.

One page of a list: `data` holds the items (object); `nextCursor` and `hasMore` lead to the next page. The example has placeholder values.

## Request.

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

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

```python
import os

import requests

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

## Response example.

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