GET
/
v1
/
applications
/
{application_id}
/
policies
curl --request GET \
  --url https://guard-api.metatext.ai/v1/applications/{application_id}/policies \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "<string>",
    "definition": "<string>",
    "rules": [
      {
        "type": "factuality",
        "expected": "pass",
        "value": "<string>",
        "threshold": 123,
        "flagged": [
          "<string>"
        ]
      }
    ],
    "target": [
      "input"
    ],
    "override_response": "<string>"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

application_id
string
required

Response

200
application/json
Successful Response
id
string
required
rules
object[]
required
target
required
Available options:
input,
output,
user,
assistant,
system,
context
definition
string | null
override_response
string | null