Skip to main content
API reference sections

Schema

AuthorityView

GET /v1/artifacts/authorities/{run} and the answer to a revocation: the record without its token and without its path.

Type object

Shape

FieldTypeDescription
runrequiredRunId
workspacerequiredWorkspaceId
generationrequiredAttemptGeneration

Which attempt of a run is current - the fence §7.5 and §7.6 rely on.

A monotonic counter per run, starting at [AttemptGeneration::FIRST]. An event, an MCP call or a session lookup carrying an older generation may not touch status, control or authority; see [crate::AttemptGeneration::admits]. It is a counter rather than an id so "older" is a comparison, not a lookup.

grantsrequiredarray of WorkspaceId
staterequiredAuthorityState

Whether the authority still stands. A closed domain, CHECKed by the database as well; a revoked record stays, marked.

created_at_msrequiredinteger (int64)
revoked_at_msinteger (int64) or null
Example
{
  "run": "00000000-0000-4000-8000-000000000000",
  "workspace": "00000000-0000-4000-8000-000000000000",
  "generation": 0,
  "grants": [
    "00000000-0000-4000-8000-000000000000"
  ],
  "state": "active",
  "created_at_ms": 0,
  "revoked_at_ms": 0
}

The contract has no example values, so example bodies are generated from each schema: every field is shown with a placeholder of its type.

Used by

Generated from contract version 1. Last updated .

Privacy choices

Choose which optional tools Koru may use on this site. Your choice is saved in a cookie in this browser for 12 months. Privacy policy

Privacy choices

Keep you signed in, protect forms and remember your language and this choice.

Always on

PostHog and Google Analytics 4 measure page views and actions such as downloads, using cookies or local storage.

PostHog records how pages are used, with form inputs masked and private pages excluded. Needs Analytics.

Ahrefs Web Analytics measures visits and where they come from, and Google Ads measures whether our ads led to a visit or download.