# List tenant policies

GET

/v1/policies

```sh
curl --request GET \
  --url 'https://example.com/v1/policies?limit=25&kind=access-control' \
  --header 'Authorization: Bearer <token>'
```

Cursor-paginated. Optional `?kind=` narrows to a single policy kind (exact match); optional `?name=` is a prefix match on `Policy.id`. Sort order: policy id ascending. Latest version per id.

## Authorizations

- **[bearerAuth](https://docs.kindgi.com/v0.1.10/reference/api.md#bearerauth)**

## Parameters

### Query Parameters

**limit**

integer

default: 25 >= 1 <= 100

1..100. Default 25.

**cursor**

string

Where the previous page ended: its `nextCursor`, as it came. A runtime that seals cursors takes one only for the same list, filters and caller, within a day; otherwise `400 bad-input`, and the list starts again without it. Absent → first page.

**kind**

string

Allowed values: access-control model-routing adapter-allowlist rate-limit retention compliance tool-errors hitl

Filter to policies of a single kind. Values: `access-control | model-routing | adapter-allowlist | rate-limit | retention | compliance | tool-errors | hitl`.

**name**

string

Prefix match on `Policy.id`. Dotted namespaces are the natural filter shape.

## Responses

### 200

Page of policies.

application/json

object

**data**

required

Array\<object>

object

**id**

required

string

\>= 1 characters

**tenantId**

required

string format: uuid

**version**

required

Semver — publishing a modified policy produces a new version.

string

/^\d+\\.\d+\\.\d+$/

**kind**

required

string

Allowed values: access-control model-routing adapter-allowlist rate-limit retention compliance tool-errors hitl

**description**

string

**spec**

required

Kind-specific policy body. For `access-control`, matches `@kindgi/specs/policy.schema.json` (rules + defaults). For `model-routing`, matches `TenantPolicy` from `@kindgi/capabilities` (providers.allow / providers.deny / models.allow / models.deny / regionAllow / maxCostPerCallUsd / maxTokensPerCall). For `tool-errors`, `ToolErrorsSpec` (maxRetries / retryOn). For `hitl`, `HitlSpec` from `@kindgi/policy-contract` (maxTimeoutMs / minReviewerRole / tools — per tool id a mode or `{ mode, requiredRole }`); it only tightens an agent’s approvals. For `retention`, `{ v: 1, doc: RetentionSpec }` from `@kindgi/policy-contract` (domain / graceSeconds / mode, which must be `purge`); a tenant has one retention policy per domain, plus one for `*`. `tool-errors`, `hitl` and `retention` specs are validated on publish. For other kinds, the shape is defined by the runtime consumer.

object

**_key_**

additional properties

any

**nextCursor**

string

**hasMore**

required

boolean

##### Example

```json
{
  "data": [
    {
      "kind": "access-control"
    }
  ]
}
```

### 400

Malformed query parameter (unknown `kind`).

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

### 401

Missing / malformed / expired / revoked bearer token.

application/json

object

**error**

required

object

**code**

required

Stable machine-readable discriminant. Values match domain error codes (see `docs/API-ROUTE-CONVENTIONS.md` §4.3).

string

**message**

required

string

**details**

Optional, kind-specific.

object

**_key_**

additional properties

any

**requestId**

required

Server-assigned request id; also echoed via `X-Request-Id` header.

string

##### Examplegenerated

```json
{
  "error": {
    "code": "example",
    "message": "example",
    "details": {},
    "requestId": "example"
  }
}
```

## See also

- [`POST /v1/policies`: Publish a policy](https://docs.kindgi.com/v0.1.10/reference/api/operations/policiespublish.md)
- [Set approval rules for every agent](https://docs.kindgi.com/v0.1.10/guides/approvals/approval-rules-for-every-agent.md)
- [Every error code](https://docs.kindgi.com/v0.1.10/reference/errors.md)
