Skip to main content
GET
List Rules: what agents may do, must ask for, or may not do.
Scope: policy:rules:read. See API Tokens.

Authorizations

Authorization
string
header
required

CloudThinker token: a personal access token ct_pat_… (fine-grained scopes, created in Settings) or an OAuth access token ct_oat_… (1 hour, from the OAuth flow). Send Authorization: Bearer <token>. Scopes have the form module:resource:read|write; write includes read.

Path Parameters

workspace_id
string<uuid>
required

Workspace to act in. Every call names it.

Query Parameters

status
enum<string>[]

Only these statuses.

Available options:
proposed,
active,
dismissed,
withdrawn,
replaced
effect
enum<string>[]

Only these effects.

Available options:
allow,
require_approval,
deny
source
enum<string>[]

Only these sources.

Available options:
human,
agent_proposal,
runbook,
legacy,
system,
grant,
template

Text in the Rule.

Maximum string length: 200
limit
integer
default:20

Items per page.

Required range: 1 <= x <= 100
cursor
string

next_cursor from the previous page.

Maximum string length: 512

Response

OK

Rules, newest first.

items
PolicyRule · object[]
required
next_cursor
string | null
required

Pass back as cursor for the next page. Null on the last page.