Skip to content

List policies

GET
/v1/policies
curl --request GET \
--url 'https://example.com/v1/policies?limit=50' \
--header 'X-API-Key: <X-API-Key>' \
--header 'X-Tenant-ID: 2489E9AD-2EE2-8E00-8EC9-32D5F69181C0'
X-Tenant-ID
required
string format: uuid

Tenant identifier. Must match the tenant associated with the credential. Returns 403 tenant_mismatch if the credential and header belong to different tenants.

limit
integer
default: 50 <= 250

Maximum number of items to return.

cursor
string

Opaque pagination cursor from a previous response. Omit for the first page.

OK

Media type application/json

Paginated list of policy summaries.

object
data
required
Array<object>

Policy summary for list responses (without nested rules).

object
id
required
string format: uuid
name
required
string
description
string
nullable
enabled
required
boolean
priority
required
integer
max_duration_seconds
required
integer
default_duration_seconds
integer
nullable
notification_channel
string
nullable
rule_count
required

Number of rules in this policy.

integer
created_at
required
string format: date-time
updated_at
required
string format: date-time
next_cursor
string
nullable
has_more
required
boolean
Example generated
{
"data": [
{
"id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0",
"name": "example",
"description": "example",
"enabled": true,
"priority": 1,
"max_duration_seconds": 1,
"default_duration_seconds": 1,
"notification_channel": "example",
"rule_count": 1,
"created_at": "2026-04-15T12:00:00Z",
"updated_at": "2026-04-15T12:00:00Z"
}
],
"next_cursor": "example",
"has_more": true
}

Unauthenticated

Media type application/json
object
code
required

Machine-readable error code (e.g. “not_found”, “tenant_mismatch”).

string
message
required

Human-readable description of the error.

string
details

Optional additional context about the error.

object
key
additional properties
any
notices

Policy notices from determining Cedar rules, if applicable.

Array<string>
Example generated
{
"code": "example",
"message": "example",
"details": {},
"notices": [
"example"
]
}

Forbidden

Media type application/json
object
code
required

Machine-readable error code (e.g. “not_found”, “tenant_mismatch”).

string
message
required

Human-readable description of the error.

string
details

Optional additional context about the error.

object
key
additional properties
any
notices

Policy notices from determining Cedar rules, if applicable.

Array<string>
Example generated
{
"code": "example",
"message": "example",
"details": {},
"notices": [
"example"
]
}