Code of Conduct Policy APIs
Policy Atomizer
Code of Conduct API Documentation
Code of Conduct Policy APIs
Code of Conduct Policy APIs
Policy Atomizer
Atomize a policy and get rules after analyzing a PDF document
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
Body
multipart/form-data
Response
200 - application/json
Successful Response
The response is of type object
.
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."
}