List Rules
List rules with optional filters.
GET
/
v1
/
rules
/
List Rules
curl --request GET \
--url https://api.example.com/v1/rules/import requests
url = "https://api.example.com/v1/rules/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/rules/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/rules/"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"results": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policy_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rule_id": "<string>",
"action": "<string>",
"consequence": {
"action": "warn",
"severity": "medium",
"message": "<string>"
},
"natural_language": "<string>",
"created_at": 123,
"updated_at": 123,
"target": "<string>",
"assignee": "agent",
"constraints": [],
"constraint_logic": "all",
"provenance": {
"extracted_by": "manual",
"model_used": "<string>",
"confidence_score": 123,
"source_location": {
"section": "<string>",
"paragraph": 123,
"char_start": 123,
"char_end": 123,
"source_text": "<string>"
}
},
"tags": [
"<string>"
],
"status": "draft",
"reviewed_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reviewed_at": 123,
"review_notes": "<string>"
}
],
"count": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Query Parameters
Review status of a policy rule.
Available options:
draft, approved, rejected, modified Category of policy document.
Available options:
privacy, ethics, security, compliance, operational, brand, custom Required range:
1 <= x <= 1000Required range:
x >= 0Response
Successful Response
Response model for list endpoints with pagination.
Hide child attributes
Hide child attributes
Type of policy rule (ODRL-inspired).
Available options:
permission, prohibition, obligation, recommendation Consequence when rule is triggered.
Constraint for conditional rule application.
Provenance information for rule extraction.
- RuleProvenance
- Provenance
Hide child attributes
Hide child attributes
Available options:
llm, manual Location in source document where rule was extracted from.
Hide child attributes
Hide child attributes
Category of policy document.
Available options:
privacy, ethics, security, compliance, operational, brand, custom Review status of a policy rule.
Available options:
draft, approved, rejected, modified Last modified on April 21, 2026
Was this page helpful?
⌘I
List Rules
curl --request GET \
--url https://api.example.com/v1/rules/import requests
url = "https://api.example.com/v1/rules/"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/rules/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/rules/"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"results": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"policy_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rule_id": "<string>",
"action": "<string>",
"consequence": {
"action": "warn",
"severity": "medium",
"message": "<string>"
},
"natural_language": "<string>",
"created_at": 123,
"updated_at": 123,
"target": "<string>",
"assignee": "agent",
"constraints": [],
"constraint_logic": "all",
"provenance": {
"extracted_by": "manual",
"model_used": "<string>",
"confidence_score": 123,
"source_location": {
"section": "<string>",
"paragraph": 123,
"char_start": 123,
"char_end": 123,
"source_text": "<string>"
}
},
"tags": [
"<string>"
],
"status": "draft",
"reviewed_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reviewed_at": 123,
"review_notes": "<string>"
}
],
"count": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}