API reference · Rulesets
List current validated rulesets
GET
/v1/orgs/{org}/rules- Permission
rules.rulesets.read- Operation
rules.rulesets.list
Parameters
| Name | In | Type | Required | Notes |
|---|---|---|---|---|
org | path | string | yes | for example "org_01h455vb4pex5vsknk084sn02q" |
limit | query | integer | no | 1 to 100; default 50 |
cursor | query | string | no | for example "rul_01h455vb4pex5vsknk084sn02q" |
x-obhut-management-assignment | header | string | no | Select one staff assignment. Direct membership remains the default. Bound API tokens use their stored source and ignore this selector. For example "masg_01h455vb4pex5vsknk084sn02q" |
Response 200
| Field | Type | Required | Notes |
|---|---|---|---|
items | array of object | yes | |
items[].id | string | yes | for example "rul_01h455vb4pex5vsknk084sn02q" |
items[].orgId | string | yes | for example "org_01h455vb4pex5vsknk084sn02q" |
items[].name | string | yes | |
items[].revision | string | yes | |
items[].definition | object | yes | |
items[].definition.phase | string | yes | one of "access", "rate_limit" |
items[].definition.languageVersion | 1 | yes | |
items[].definition.rules | array of object or object | yes | 0 to 64 items |
items[].estimatedCosts | array of integer | yes | 0 to 64 items |
items[].createdAt | string (date-time) | yes | UTC, ISO 8601. |
items[].updatedAt | string (date-time) | yes | UTC, ISO 8601. |
nextCursor | string or null | yes |