cURL
curl --request GET \ --url https://guard-api.metatext.ai/v1/applications/{application_id}/policies \ --header 'Authorization: Bearer <token>'
[ { "id": "<string>", "rules": [ { "type": "factuality", "expected": "pass", "value": "<string>", "threshold": 123, "flagged": [ "<string>" ] } ], "target": [ "input" ], "definition": "<string>", "override_response": "<string>" } ]
List all policies for a specific application.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successful Response
Show child attributes
factuality
rubric
classifier
similarity
regex
contains
pii
jailbreak
jailbreak@07c18e4
jailbreak@47ffb2e
pass
fail
input
output
user
assistant
system
context