---
title: "GET /scoped-tokens"
method: GET
path: "/scoped-tokens"
---

# GET /scoped-tokens

`GET /scoped-tokens`

## Request

- Base URL: `https://api.useanima.sh/v1`
- URL: `https://api.useanima.sh/v1/scoped-tokens`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-API-Key`

## Query parameters

- `cursor` string: Opaque cursor from a previous response to fetch the next page
- `limit` integer: Maximum number of items to return per page (1–100, default 20)
- `agentId` string: Filter by issuing agent
- `includeExpired` boolean: Include expired tokens

## Response `200`

OK

- object: Paginated list of scoped tokens
  - `items` object[], required
    - `id` string, required: Database id (cuid)
    - `jti` string, required: JWT id (matches the token's jti claim)
    - `agentId` string, required: Issuing agent id
    - `orgId` string, required: Organization id
    - `scopes` string[], required: Granted scopes
    - `audience` string, required: Audience (aud claim)
    - `parentJti` string, nullable, required: Parent token jti, null for root
    - `expiresAt` string, date-time, required: Token expiry (ISO 8601)
    - `revokedAt` string, date-time, nullable, required: Revocation timestamp, null if active
    - `createdAt` string, date-time, required: Creation timestamp
  - `pagination` object, required: Pagination metadata returned with list responses
    - `nextCursor` string, nullable, required: Cursor to pass as the `cursor` parameter to retrieve the next page, or null if no more results
    - `hasMore` boolean, required: Whether additional pages of results are available

---

[API](https://skmtc.dev/useanima/apis/anima-api.md) · [All operations](https://skmtc.dev/useanima/apis/anima-api/llms.txt) · [OpenAPI document](https://skmtc.dev/useanima/apis/anima-api/revisions/aaa148188980?raw)
