# Your CLI sign-ins.

> https://koi.dog/docs/api/cli-sign-in/list-cli-grants/

`GET /api/v1/auth/cli-grants` · Key: `session only`

Use the `koidog_session` cookie at `https://app.koi.dog/api/v1`.

## Query parameters.

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `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
# The dashboard session only: an API key is refused (403 session_required).
curl https://app.koi.dog/api/v1/auth/cli-grants \
    -H "Cookie: koidog_session=$KOIDOG_SESSION"
```

```js
// The dashboard session only: an API key is refused (403 session_required).
const res = await fetch("https://app.koi.dog/api/v1/auth/cli-grants", {
  headers: {
    Cookie: `koidog_session=${process.env.KOIDOG_SESSION}`,
  },
});
console.log(await res.json());
```

```python
import os

import requests

# The dashboard session only: an API key is refused (403 session_required).
r = requests.get(
    "https://app.koi.dog/api/v1/auth/cli-grants",
    headers={
        "Cookie": f"koidog_session={os.environ['KOIDOG_SESSION']}",
    },
)
r.raise_for_status()
print(r.json())
```

## Response example.

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