Get a guardrail
GET
https://novapai.ai/api/v1/guardrails/:id
GET
/api/v1/guardrails/:id
cURL
$curl https://novapai.ai/api/v1/guardrails/550e8400-e29b-41d4-a716-446655440000 \
>-H "Authorization: Bearer <token>"200 Retrieved
reference-guardrails-get-guardrail-01.json
{
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Production Guardrail",
"created_at": "2025-08-24T10:30:00Z",
"description": "Guardrail for production environment",
"limit_usd": 100,
"reset_interval": "monthly",
"allowed_providers": ["openai", "anthropic", "google"],
"enforce_zdr": false,
"updated_at": "2025-08-24T15:45:00Z"
}
}Get a single guardrail by ID. Management key required.
Authentication
Authorization Bearer
API key as bearer token in Authorization header
Path parameters
id string Requiredformat: "uuid"
The unique identifier of the guardrail to retrieve
Response
Guardrail details
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
| data | object | - | The guardrail |
Errors
| 状态码 | 说明 |
|---|---|
| 401 | Unauthorized Error |
| 404 | Not Found Error |
| 500 | Internal Server Error |