Skip to content

List provenance records

View as Markdown
GET
/v1/provenance
curl --request GET \
--url 'https://example.com/v1/provenance?limit=25&scopeKind=tenant' \
--header 'Authorization: Bearer <token>'

Cursor-paginated. Metadata rows only — clients fetch the DAG payload via GET /v1/provenance/{runId}. Fixed sort: createdAt desc, id desc. Filters: ?runId=, ?agentId=, ?flowId=, ?createdAfter=, and scopeKind/scopeId for one project’s records, or every project’s in an org (records from before Kindgi 0.1.3 have no project and are listed only without a scope).

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.

scopeKind

Discriminator for the ?scopeKind + ?scopeId + ?inherit triplet. Tenant carries no id (implicit from session); org/project require scopeId.

string
Allowed values: tenant org project

Optional scope discriminator. If absent, no scope filter is applied.

scopeId
string
>= 1 characters

Required IF scopeKind is org or project. MUST be absent if scopeKind=tenant (the workspace is implicit from the session). Malformed combinations return 400 scope-invalid.

runId
string format: uuid

Filter records to this run id (exact match).

agentId
string

Only the records of this agent’s turns, at any version: the agent the record’s run names, as GET /v1/runs?agentId= matches it. Turns that ran before Kindgi 0.1.3 don’t name their agent and aren’t matched.

flowId
string
>= 1 characters

Only the records of this flow’s runs, at any version (flowRef.id, exact match). An agent’s turns aren’t matched: use agentId for those.

createdAfter
string format: date-time

ISO 8601 timestamp; return records created strictly after this.

Page of records.

Media typeapplication/json
object
data
required
Array<object>

Lightweight metadata row returned by list. Excludes the full DAG payload — clients fetch the DAG via GET /v1/provenance/{runId}.

object
id
required
string format: uuid
runId
required
string format: uuid
tenantId
required
string format: uuid
version
required

Schema version of the record document (semver).

string
flowRef
object
id
required
string
version
required
string
signed
required

True when the emission-time signature is present. Independent of whether the export route can produce a signed bundle.

boolean
createdAt
required
string format: date-time
projectId

The project of the record’s run. Absent on records from before Kindgi 0.1.3; those are listed only without a scope.

string format: uuid
hasMore
required
boolean
nextCursor
string
flowId

The flow, on every page of a list asked for with ?flowId=, an empty one too: it holds only that flow’s runs’ records. Absent from a runtime that doesn’t list records by flow, which ignores flowId and lists them all.

string
Examplegenerated
{
"data": [
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"runId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"tenantId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"version": "example",
"flowRef": {
"id": "example",
"version": "example"
},
"signed": true,
"createdAt": "2026-04-15T12:00:00Z",
"projectId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}
],
"hasMore": true,
"nextCursor": "example",
"flowId": "example"
}

Malformed cursor, createdAfter timestamp or scope.

Media typeapplication/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
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}

Missing / malformed / expired / revoked bearer token.

Media typeapplication/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
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}

rate-limit-exceeded with details.limit: "api-requests", on a runtime that sets workspace limits (Kindgi Cloud): this workspace’s limit on API requests a minute is reached, so the request wasn’t run; Retry-After says when to send it again.

Media typeapplication/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
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}
Retry-After
integer
>= 1

Whole seconds to wait before sending the request again, at least 1. Sent with the codes the answer names as sending it, so it may be absent.

The database was too busy to answer in time (database-busy), or the authorization store couldn’t be reached (authz-backend-unavailable); Retry-After (whole seconds) says when to try again.

Media typeapplication/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
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}
Retry-After
integer
>= 1

Whole seconds to wait before sending the request again, at least 1. Sent with the codes the answer names as sending it, so it may be absent.

See also