Create Guardrail

Create a new guardrail.

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

Creates a guardrail with a name, an optional description, and an observability setting. The rules themselves are added as a version.

When to use it

Use it to start a new guardrail, then publish its rules with Create a guardrail version.

Required parameters

  • name (body): the name of the guardrail.

Optional body fields: description, observability_enabled.

Response

A successful call returns 201 Created with the GuardrailSchema object: id, name, description, observability_enabled, dataset_id, current_version, tags, and timestamps.

Related: Create a guardrail version, List guardrails, Update a guardrail, Delete a guardrail

Body Params
string
required
length between 1 and 95
boolean
Defaults to true
Responses

401

Unauthorized

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