Skip to main content
POST
/
v1
/
policies
Create a new security policy
curl --request POST \
  --url https://api.guardion.ai/v1/policies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "definition": "<string>",
  "threshold": 0.8,
  "detectors": [
    {
      "model": "<string>",
      "target": "user"
    }
  ]
}
'

Authorizations

Authorization
string
header
required

Use your Guardion API Key as a Bearer token.

Body

application/json
id
string
required
definition
string
threshold
number
default:0.8
detectors
object[]

Response

200

Policy created successfully.