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=, ?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 (tenant 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.

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
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"
}

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"
}
}

See also