Skip to content

List policy presets

GET/api/public/v1/policy-presets

Every preset in scope (builtin, organization, both when absent): organization presets by name, then built-in presets, each with its title, one-line description and rules. A built-in preset is read-only; an organization preset carries its creator and revision. Choose rules with POST /aip/drafts and preset.

Terminal window
curl --fail-with-body -X GET 'https://app.openlatch.ai/api/public/v1/policy-presets?scope=builtin' \
-H "Authorization: Bearer $OPENLATCH_API_KEY"
Role in the organizationThis endpoint
ownerAllowed
adminAllowed
editorAllowed
viewerAllowed

A key carries the role its owner holds in the organization. See Authentication.

API key scope: presets:read

ParameterTypeDescription
scopestring or null
FieldTypeDescription
dataobjectRequired.
data.presetsarray of objectRequired.
data.presets[].created_byobject or null
data.presets[].default_selectedbooleanRequired. False for a framework preset, otherwise true.
data.presets[].descriptionstringRequired.
data.presets[].frameworkobject or nullRequired. Set on a framework preset; null on every other.
data.presets[].keystringRequired.
data.presets[].kindstring — one of builtin, organizationRequired.
data.presets[].revisionobject or null
data.presets[].rulesarray of objectRequired.
data.presets[].titlestringRequired.
{
"data": {
"presets": [
{
"created_by": {
"name": "release-bot"
},
"default_selected": false,
"description": "string",
"framework": {
"notice": "string",
"source": {}
},
"key": "string",
"kind": "builtin",
"revision": 3,
"rules": [
{
"capability": "enforce",
"citation": {},
"dimension": "quality",
"intent_key": "string",
"sentence": "string"
}
],
"title": "string"
}
]
}
}