v1

latestOpenAPI 3.0.32026-07-1761731.6 KB

Execute a policy

get/v1/data/{path}

Path parameters

pathstring urlPath required
Example:app/rbac

The path separator is used to access values inside object and array documents. If the path indexes into an array, the server will attempt to convert the array index to an integer. If the path element cannot be converted to an integer, the server will respond with 404.

Query parameters

prettyboolean

If parameter is true, response will formatted for humans.

provenanceboolean

If parameter is true, response will include build/version info in addition to the result.

explain'notes' | 'fails' | 'full' | 'debug'

Return query explanation in addition to result.

metricsboolean

Return query performance metrics in addition to result.

instrumentboolean

Instrument query evaluation and return a superset of performance metrics in addition to result.

strict-builtin-errorsboolean

Treat built-in function call errors as fatal and return an error immediately.

Headers

Accept-Encoding'gzip'

Indicates the server should respond with a gzip encoded body. The server will send the compressed response only if its length is above server.encoding.gzip.min_length value. See the configuration section

Response

Success. The server also returns 200 if the path refers to an undefined document. In this case, the response will not contain a result property.

metricsobject

If query metrics are enabled, this field contains query performance metrics collected during the parse, compile, and evaluation steps.

decision_idstring

If decision logging is enabled, this field contains a string that uniquely identifies the decision. The identifier will be included in the decision log event for this decision. Callers can use the identifier for correlation purposes.

Example response

{
  "result": {
    "allow": true,
    "user_is_admin": true,
    "user_is_granted": []
  }
}