Run guardrules. Accepts application/json (text-only) or multipart/form-data (with optional images, up to MAX_IMAGES).
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Runs guardrules and returns a result for each rule. Send application/json for text only, or multipart/form-data to include images. A request that is too large returns 413.
When to use it
Use it to run guardrules from your own code. To run published guardrail versions by ID, use Run guardrail versions.
Required parameters
This call takes no required parameters.
Response
A successful call returns 200 OK with a JSON array of rule results. Each has the rule name, its type, whether the input is valid, and a message.
Related: Run guardrail versions, Validate guardrules, Get the guardrule JSON schema
401Unauthorized
413Request Entity Too Large
422Unprocessable Entity
500Internal Server Error