Skip to main content
POST
Dry-run or revoke stale agent-runtime contexts left by old turn-scoped issuance

Body

application/json
agent
string

Filter by agent ID

olderThan
string

Only include contexts whose last use or creation is older than this duration (default: 1h)

reason
string

Revocation reason for audit metadata

revoke
boolean

Actually revoke matching contexts; omitted means dry-run

session
string

Filter by session key

Response

Success — body conforms to the @Returns schema.

candidates
object[]
required
candidatesCount
number
required
cutoffAt
number
required
dryRun
boolean
required
olderThan
string
required
olderThanMs
number
required
reason
string | null
required
revoked
object[]
required
revokedCount
number
required
scanned
object
required