AgentMessage
Guardrails

List guardrail profiles

GET
/v1/guardrails/profiles

Returns your organization's guardrail profiles, newest first, with cursor pagination. The next-page token is returned in meta.next_cursor and is null on the last page.

A profile is a named bundle of per-tool guardrail settings. Each tool field is tri-state: null means INHERIT (fall through to a lower scope), *_disabled: false means the tool is ON, and *_disabled: true means it is OFF.

Requires the org:read scope.

AuthorizationBearer <token>

Authenticate by sending your API key as a bearer token: Authorization: Bearer am_live_.... Every request is automatically scoped to the organization that owns the key and to the scopes granted to that key.

In: header

Query Parameters

cursor?string
limit?integer
Default50
Range1 <= value <= 100

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/v1/guardrails/profiles"
{
  "success": true,
  "error": {
    "code": "string",
    "message": "string",
    "request_id": "string",
    "details": {
      "property1": "string",
      "property2": "string"
    }
  },
  "meta": {
    "total": 0,
    "limit": 0,
    "offset": 0,
    "next_cursor": "eyJjcmVhdGVkX2F0IjoiMjAyNi0wNC0yNlQxMjowMDowMFoiLCJpZCI6IjAxOTAwMDAwLTAwMDAtMDAwMC0wMDAwLTAwMDAwMDAwMDAwMSJ9",
    "last_event_at": "2019-08-24T14:15:22Z"
  },
  "data": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",
      "name": "string",
      "source": "platform_default",
      "template_key": "string",
      "quiet_hours_disabled": true,
      "quiet_hours_start_minute": 0,
      "quiet_hours_end_minute": 0,
      "quiet_hours_mode": "reject",
      "freq_cap_disabled": true,
      "freq_cap_window_minutes": 1,
      "freq_cap_max_in_window": 1,
      "consent_freshness_disabled": true,
      "consent_freshness_max_age_days": 1,
      "autostamp_disabled": true,
      "autostamp_sender_id_text": "string",
      "autostamp_cadence": "every",
      "suppression_disabled": true,
      "branded_link_advisory_disabled": true,
      "created_at": "2019-08-24T14:15:22Z",
      "updated_at": "2019-08-24T14:15:22Z"
    }
  ]
}
{
  "success": false,
  "error": {
    "code": "UNAUTHORIZED",
    "message": "authentication failed",
    "request_id": "01JTBQH2FZ8K1RXC0WJ4Z9P3VM"
  }
}
{
  "success": false,
  "error": {
    "code": "FORBIDDEN",
    "message": "missing required scope",
    "request_id": "01JTBQH2FZ8K1RXC0WJ4Z9P3VM"
  }
}
{
  "success": false,
  "error": {
    "code": "VALIDATION_FAILED",
    "message": "validation failed",
    "request_id": "01JTBQH2FZ8K1RXC0WJ4Z9P3VM",
    "details": {
      "to": "must be E.164",
      "body": "must be 1..1600 chars"
    }
  }
}