Skip to main content
GET
Get Policy
Archived: This endpoint is legacy. Use the new Get Guardrail endpoint instead, which supports separate input/output detector configurations.

Authorizations

apikey
string
header
required

Headers

X-Enkrypt-Policy
string
required

The policy name

Example:

"Test Guardrails Policy"

X-Enkrypt-Refresh-Cache
boolean

Refresh the cache if data is stale

Example:

false

Response

200 - application/json

Successful Response

name
string
required
description
string
required
detectors
GuardrailsDetectorsObject ยท object
created_at
string
Example:

"2024-10-07T11:23:03.695943+00:00"

updated_at
string
Example:

"2024-10-07T11:23:03.695943+00:00"

policy_id
integer
Example:

1234567890

project_name
string
Example:

"default"