Guardrail Run

Run guardrules. Accepts application/json (text-only) or multipart/form-data (with optional images, up to MAX_IMAGES).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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

Responses

401

Unauthorized

413

Request Entity Too Large

422

Unprocessable Entity

500

Internal Server Error

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json