cURL
curl --request GET \ --url https://api.enkryptai.com/guardrails/get-policy \ --header 'X-Enkrypt-Policy: <x-enkrypt-policy>' \ --header 'apikey: <api-key>'
{ "name": "<string>", "description": "<string>", "detectors": {}, "created_at": "2024-10-07T11:23:03.695943+00:00", "updated_at": "2024-10-07T11:23:03.695943+00:00", "policy_id": 1234567890, "project_name": "default" }
Retrieve a policy by name
The policy name
"Test Guardrails Policy"
Refresh the cache if data is stale
false
Successful Response
Show child attributes
"2024-10-07T11:23:03.695943+00:00"
1234567890
"default"