Get Guardrail Versions

Get all guardrail versions.

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

Returns guardrail versions. Filter by guardrail_id or by a list of version ids. Set with_deleted to include versions of deleted guardrails, and model_provider_with_deleted to include deleted model providers.

When to use it

Use it to review a guardrail's version history, or to find the version IDs to pass to Run guardrail versions.

Required parameters

This call takes no required parameters.

Optional query parameters: guardrail_id, ids, with_deleted, model_provider_with_deleted.

Response

A successful call returns 200 OK with a JSON array of GuardrailVersionSchema objects, each with its id, guardrail_id, name, and guardrules.

Related: Create a guardrail version, Run guardrail versions, Get a guardrail

Query Params

Guardrail ID

array | null

Guardrail version IDs

boolean
Defaults to false

Include deleted guardrails' versions

boolean
Defaults to false

Include deleted model providers

Responses

401

Unauthorized

404

Not Found

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