Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.truthlocks.com/llms.txt

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

List MAIP Policies

GET /v1/maip/policies Returns all MAIP agent policies configured for the authenticated tenant. Policies define runtime enforcement rules that govern what agents can do based on trust scores, scopes, delegation depth, and agent type.

Authentication

Requires X-API-Key header or Bearer JWT token. Tenant-scoped via cookie or JWT claim.

Response

Returns an array of policy objects.
id
string
UUID primary key of the policy.
tenant_id
string
UUID of the owning tenant.
name
string
Human-readable policy name. Used in denial messages and audit logs.
description
string
Detailed description of what the policy enforces.
category
string
Policy category. One of: "scope", "trust", "rate", "custom".
status
string
Policy lifecycle status. One of: "active", "disabled", "archived". Only active policies are evaluated during policy checks.
priority
integer
Evaluation priority. Lower numbers are evaluated first. Default: 100.
rules
object
JSON array of policy rules. Each rule contains conditions, an effect ("allow", "deny", "require_approval"), and an optional requires_approval flag. See Create Policy for the full rule schema.
created_at
string
ISO 8601 creation timestamp.
updated_at
string
ISO 8601 last-updated timestamp.

Example

curl https://api.truthlocks.com/v1/maip/policies \
  -H "X-API-Key: tl_live_..."
const response = await fetch("https://api.truthlocks.com/v1/maip/policies", {
  headers: { "X-API-Key": "tl_live_..." },
});
const policies = await response.json();
import requests

response = requests.get(
    "https://api.truthlocks.com/v1/maip/policies",
    headers={"X-API-Key": "tl_live_..."},
)
policies = response.json()