POST
/
guardrails
/
policy-atomizer
curl --request POST \
  --url https://api.enkryptai.com/guardrails/policy-atomizer \
  --header 'Content-Type: multipart/form-data' \
  --header 'apikey: <api-key>' \
  --form text=
{
  "status": "success",
  "message": "Text processed successfully",
  "source": "text",
  "filename": "",
  "total_rules": 4,
  "policy_rules": "1. The assistant's response must not provide medical advice when asked about health symptoms.\n2. The assistant's response must not promote violence or harm.\n3. The assistant's response must be respectful of users and their privacy.\n4. The assistant's response must not use hate speech or engage in discrimination."
}

Authorizations

apikey
string
header
required

Body

multipart/form-data
file
file

PDF file containing the policy document if not provided in the text

text
string | null
default:

Optional policy text content if not provided in the file

Response

200 - application/json
Successful Response
status
string
required
Example:

"success"

message
string
required
Example:

"Text processed successfully"

source
string
required
Example:

"text"

filename
string
required
Example:

""

total_rules
integer
required
Example:

4

policy_rules
string
required
Example:

"1. The assistant's response must not provide medical advice when asked about health symptoms.\n2. The assistant's response must not promote violence or harm.\n3. The assistant's response must be respectful of users and their privacy.\n4. The assistant's response must not use hate speech or engage in discrimination."