curl --request GET \
--url https://api.enkryptai.com/guardrails/list-policies \
--header 'apikey: <api-key>'
{
"policies": [
{
"policy_id": "1234567890",
"name": "Test Guardrails Policy",
"description": "This is a test policy",
"created_at": "2025-02-21T09:28:52.651201+00:00",
"updated_at": "2025-02-21T09:28:52.651201+00:00",
"project_name": "default"
}
]
}
List all policies
curl --request GET \
--url https://api.enkryptai.com/guardrails/list-policies \
--header 'apikey: <api-key>'
{
"policies": [
{
"policy_id": "1234567890",
"name": "Test Guardrails Policy",
"description": "This is a test policy",
"created_at": "2025-02-21T09:28:52.651201+00:00",
"updated_at": "2025-02-21T09:28:52.651201+00:00",
"project_name": "default"
}
]
}
Successful Response
The response is of type object
.