# List compliance-evidence records

GET

/v1/compliance/evidence

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

Cursor-paginated. Filters: `?runId=` / `?agentId=` / `?flowId=` / `?kind=` / `?from=` / `?to=` (all AND-composed). Fixed sort: `timestamp asc, id asc` — deterministic even when two records share a timestamp. Only mounted when `CreateAppInput.auditEvents` + `CreateAppInput.complianceClassifier` are both wired.

## Authorizations

- **[bearerAuth](https://docs.kindgi.com/v0.1.9/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.

**runId**

string

Filter to evidence records tied to this run id (exact match on `provenanceRef.runId`).

**agentId**

string

Filter to evidence records whose payload references this agent id.

**flowId**

string

Filter to evidence records whose payload references this flow id.

**kind**

Compliance-relevant event class. Open set: evidence is a classifier lens over the audit stream, and a deployment can mark any audit-event kind exportable. `examples` lists the built-in kinds; clients must tolerate kinds they do not know.

string

\>= 1 characters

Filter by evidence kind (any `EvidenceKind`). A kind the classifier does not mark exportable yields an empty page.

**from**

string format: date-time

ISO 8601 lower bound (inclusive) on `timestamp`.

**to**

string format: date-time

ISO 8601 upper bound (inclusive) on `timestamp`.

## Responses

### 200

Page of compliance-evidence records.

application/json

object

**data**

required

Array\<object>

One evidence record — matches `@kindgi/specs/compliance-evidence.schema.json` (`payload` is a versioned document opaque to the wire schema).

object

**id**

required

string

**tenantId**

required

string format: uuid

**projectId**

The project the underlying audit event belongs to. Absent for tenant-level events (e.g. authz decisions).

string format: uuid

**kind**

required

Compliance-relevant event class. Open set: evidence is a classifier lens over the audit stream, and a deployment can mark any audit-event kind exportable. `examples` lists the built-in kinds; clients must tolerate kinds they do not know.

string

\>= 1 characters

**timestamp**

required

string format: date-time

**actor**

object

**kind**

string

Allowed values: user agent system admin external

**id**

string

**ipAddress**

string

**userAgent**

string

**subject**

object

**kind**

string

**id**

string

**outcome**

string

Allowed values: allowed denied succeeded failed escalated

**payload**

required

Kind-specific payload document. Always carries `version` for on-read migration; other fields vary by kind.

object

**_key_**

additional properties

any

**provenanceRef**

object

**runId**

string

**nodeId**

string

**recordId**

string

**signature**

object

**algorithm**

required

string

Allowed value: ed25519

**keyId**

required

string

**value**

required

Base64-encoded signature bytes.

string

**signedAt**

required

string format: date-time

**hasMore**

required

boolean

**nextCursor**

string

##### Example

```json
{
  "data": [
    {
      "kind": "access-event",
      "actor": {
        "kind": "user"
      },
      "outcome": "allowed",
      "signature": {
        "algorithm": "ed25519"
      }
    }
  ]
}
```

### 400

Malformed cursor, `from`, or `to`.

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

- [`GET /v1/compliance/evidence/{evidenceId}`: Fetch one compliance-evidence record](https://docs.kindgi.com/v0.1.9/reference/api/operations/complianceevidenceget.md)
- [`POST /v1/compliance/evidence/export`: Export a signed compliance-evidence bundle](https://docs.kindgi.com/v0.1.9/reference/api/operations/complianceevidenceexport.md)
- [Keep and purge deleted data](https://docs.kindgi.com/v0.1.9/deploy/retention.md)
- [Every error code](https://docs.kindgi.com/v0.1.9/reference/errors.md)
