APIWebhooks
Validate a webhook condition
Validate a condition expression without saving it.
POST
Validate a condition expression without saving it.
ApiKeyAuthheader
AuthorizationBearer <token>Bearer token authentication. Send an API key (a saai_api_-prefixed token) as Authorization: Bearer <token>.
Required permission
view_webhooksapplication/json- body
Request body for validating a condition without saving it.
expression*stringCEL expression to validate.
Length
1 <= lengthevents?array<string>Actions the webhook subscribes to, which decide the payload fields the expression may reference. Defaults to every action.
The 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/webhooks/cel/validate" \ -H "Content-Type: application/json" \ -d '{ "expression": "string" }'{ "valid": true, "error": "string", "position": 0}