Skip to main content
GET
/
v1
/
policies
List Control Loop Policies (TRU-67 Phase 1)
curl --request GET \
  --url https://api.trulayer.ai/v1/policies \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "tenant_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "description": "<string>",
      "status": "draft",
      "rule_yaml": "<string>",
      "trigger_type": "eval_score",
      "action_type": "retry",
      "rollout_pct": 50,
      "dry_run": true,
      "created_by": "<string>",
      "max_retry_depth": 5,
      "max_cascade_depth": 10
    }
  ],
  "total": 123,
  "limit": 123,
  "offset": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.trulayer.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

SDK API key (tl_...) or Clerk session JWT

Query Parameters

status
enum<string>

Filter by lifecycle status.

Available options:
draft,
active,
paused,
archived
limit
integer
default:50

Page size (1–200, default 50).

Required range: 1 <= x <= 200
offset
integer
default:0

Offset into the result set (default 0).

Required range: x >= 0

Response

Page of policies

items
object[]
required
total
integer<int64>
required
limit
integer
required
offset
integer
required