APIPolicies

Get policy schema

Get the policy evaluation schema — available variables and their fields.

GET
/policies/schema

Get the policy evaluation schema — available variables and their fields.

Authorization

ApiKeyAuth
headerAuthorizationBearer <token>

Bearer token authentication. Send an API key (a saai_api_-prefixed token) as Authorization: Bearer <token>.

Required permission

view_policies

Response Body

The request has succeeded.

application/json
  1. response
variables*

Available variables and their fields.

curl -X GET "https://example.com/policies/schema"
{  "variables": {    "property1": {      "description": "string",      "fields": {        "property1": {          "type": "string",          "description": "string",          "fields": {            "property1": {},            "property2": {}          }        },        "property2": {          "type": "string",          "description": "string",          "fields": {            "property1": {},            "property2": {}          }        }      },      "dynamic": true    },    "property2": {      "description": "string",      "fields": {        "property1": {          "type": "string",          "description": "string",          "fields": {            "property1": {},            "property2": {}          }        },        "property2": {          "type": "string",          "description": "string",          "fields": {            "property1": {},            "property2": {}          }        }      },      "dynamic": true    }  }}