APIPolicies
Validate CEL expression
Validate a CEL expression.
POST
Validate a CEL expression.
ApiKeyAuthheader
AuthorizationBearer <token>Bearer token authentication. Send an API key (a saai_api_-prefixed token) as Authorization: Bearer <token>.
Required permission
view_policiesapplication/json- body
expression*stringCEL expression to validate
Length
1 <= lengthThe request has succeeded.
application/json- response
valid*booleanWhether the expression is valid
error?stringHuman-readable error message if invalid
position?integerCharacter offset of the error in the expression
Format
int32curl -X POST "https://example.com/policies/cel/validate" \ -H "Content-Type: application/json" \ -d '{ "expression": "string" }'{ "valid": true, "error": "string", "position": 0}