get
https://api.superwise.ai/v1/guardrails/
Get guardrail by id.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Returns one guardrail by its ID, including its current_version. Set with_deleted to true to return a deleted guardrail.
When to use it
Use it to read a guardrail's settings and the rules in its current version.
Required parameters
guardrail_id(path): the ID of the guardrail.
Optional query parameters: with_deleted.
Response
A successful call returns 200 OK with the GuardrailSchema object: id, name, description, observability_enabled, dataset_id, current_version, tags, and timestamps.
Related: List guardrails, Update a guardrail, List guardrail versions
401Unauthorized
404Not Found
500Internal Server Error