Skip to main content
GET
Get one Rule.
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.

rule_id
string<uuid>
required

Rule id.

Response

OK

A Rule that decides whether an agent action is allowed, needs approval or is refused.

id
string<uuid>
required
status
enum<string>
required
Available options:
proposed,
active,
dismissed,
withdrawn,
replaced
effect
enum<string>
required
Available options:
allow,
require_approval,
deny
sentence
string
required

The Rule in one plain sentence.

description
string
required
connector
string
required

Connection prefix, or * for any.

operations
string[]
required
access_classes
string[]
required
connection_aliases
string[]
required
applies_to
enum<string>[]
required

Run types this Rule covers. Empty covers all.

Available options:
chat,
resolve,
optimize,
automations,
review
expires_at
string<date-time> | null
required
source
enum<string>
required
Available options:
human,
agent_proposal,
runbook,
legacy,
system,
grant,
template
proposal_reason
string | null
required

Why an agent proposed this Rule, if one did.

replaces
string<uuid> | null
required

The Rule this one replaced, if any.

accepted_by
string<uuid> | null
required
created_at
string<date-time>
required
updated_at
string<date-time>
required