curl --request GET \
--url https://api.enkryptai.com/code-of-conduct/get-policy \
--header 'X-Enkrypt-Policy: <x-enkrypt-policy>' \
--header 'apikey: <api-key>'import requests
url = "https://api.enkryptai.com/code-of-conduct/get-policy"
headers = {
"X-Enkrypt-Policy": "<x-enkrypt-policy>",
"apikey": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Enkrypt-Policy': '<x-enkrypt-policy>', apikey: '<api-key>'}
};
fetch('https://api.enkryptai.com/code-of-conduct/get-policy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.enkryptai.com/code-of-conduct/get-policy",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Enkrypt-Policy: <x-enkrypt-policy>",
"apikey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.enkryptai.com/code-of-conduct/get-policy"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Enkrypt-Policy", "<x-enkrypt-policy>")
req.Header.Add("apikey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.enkryptai.com/code-of-conduct/get-policy")
.header("X-Enkrypt-Policy", "<x-enkrypt-policy>")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/code-of-conduct/get-policy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Enkrypt-Policy"] = '<x-enkrypt-policy>'
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"policy_rules": "\"1. The assistant's response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.\\n2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.\\n3. The assistant's response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.\\n4. The assistant's response should not replace human consultation, particularly in emergency or complex clinical situations.\\n5. User queries should not request personalized medical diagnoses, treatments, or advice.\\n6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.\\n7. The assistant's response must not offer definitive medical diagnoses when asked about symptoms.\\n8. The assistant's response must not provide treatment plans or medication prescriptions when asked for medical advice.\\n9. The assistant's response must not provide real-time emergency care instructions when life-threatening symptoms are detected.\\n10. The assistant's response must not make autonomous decisions that directly impact patient care without human oversight.\\n11. The assistant's response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.\\n12. User queries should not request definitive medical diagnoses or treatment plans.\\n13. Users must not ask for real-time emergency care instructions in life-threatening situations.\\n14. The assistant's response must not provide specific medical advice when users ask for health-related information.\\n15. Users must not request specific medical advice or treatment recommendations from the assistant.\\n16. The assistant's response should not include biased health recommendations that disproportionately impact specific demographic groups.\\n17. Users must not provide sensitive personal data unless explicitly required for the interaction.\\n18. The assistant's response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.\\n19. The assistant's response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.\\n20. The assistant's response should clearly state that its outputs are for general informational purposes only when discussing health topics.\\n21. The assistant's response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.\\n22. Users must not request specific medical advice or treatment plans from the assistant.\"",
"project_name": "default",
"total_rules": 22,
"name": "Healthcare Guidelines",
"updated_at": "2025-03-28T08:35:39.656184+00:00",
"policy_id": 1456247350,
"created_at": "2025-03-28T08:35:39.656184+00:00",
"is_v2": false,
"pdf_name": "healthcare_guidelines",
"policy_text": "<string>",
"created_by": "<string>",
"updated_by": "<string>",
"v2_questionnaire": {
"purpose": "",
"prohibited_actions": [
"<string>"
],
"user_types": [
"general_public"
],
"data_access": [
"pii"
],
"actions": [
"read_only"
],
"decision_impact": "informational"
},
"v2_config": {
"status": "success",
"enabled": [
{
"id": "priv-1",
"text": "The assistant must not provide individualized investment advice.",
"risk_category": "legal_ip_liability",
"applicability": "assistant",
"severity": "medium",
"source": "document",
"suggested": false,
"display_text": "No individualized investment advice",
"frameworks": [
"hipaa"
],
"mappings": [
{
"framework": "<string>",
"clause": "<string>"
}
]
}
],
"disabled": [
{
"id": "priv-1",
"text": "The assistant must not provide individualized investment advice.",
"risk_category": "legal_ip_liability",
"applicability": "assistant",
"severity": "medium",
"source": "document",
"suggested": false,
"display_text": "No individualized investment advice",
"frameworks": [
"hipaa"
],
"mappings": [
{
"framework": "<string>",
"clause": "<string>"
}
]
}
],
"stats": {
"generated": 3,
"enabled": 3,
"merged": 1,
"doc_only": 2,
"disabled": 20,
"excluded": 15
},
"processing_time": 41.2
}
}Get Policy
Retrieve a Code of Conduct policy by name
curl --request GET \
--url https://api.enkryptai.com/code-of-conduct/get-policy \
--header 'X-Enkrypt-Policy: <x-enkrypt-policy>' \
--header 'apikey: <api-key>'import requests
url = "https://api.enkryptai.com/code-of-conduct/get-policy"
headers = {
"X-Enkrypt-Policy": "<x-enkrypt-policy>",
"apikey": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-Enkrypt-Policy': '<x-enkrypt-policy>', apikey: '<api-key>'}
};
fetch('https://api.enkryptai.com/code-of-conduct/get-policy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.enkryptai.com/code-of-conduct/get-policy",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Enkrypt-Policy: <x-enkrypt-policy>",
"apikey: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.enkryptai.com/code-of-conduct/get-policy"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Enkrypt-Policy", "<x-enkrypt-policy>")
req.Header.Add("apikey", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.enkryptai.com/code-of-conduct/get-policy")
.header("X-Enkrypt-Policy", "<x-enkrypt-policy>")
.header("apikey", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.enkryptai.com/code-of-conduct/get-policy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Enkrypt-Policy"] = '<x-enkrypt-policy>'
request["apikey"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"policy_rules": "\"1. The assistant's response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.\\n2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.\\n3. The assistant's response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.\\n4. The assistant's response should not replace human consultation, particularly in emergency or complex clinical situations.\\n5. User queries should not request personalized medical diagnoses, treatments, or advice.\\n6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.\\n7. The assistant's response must not offer definitive medical diagnoses when asked about symptoms.\\n8. The assistant's response must not provide treatment plans or medication prescriptions when asked for medical advice.\\n9. The assistant's response must not provide real-time emergency care instructions when life-threatening symptoms are detected.\\n10. The assistant's response must not make autonomous decisions that directly impact patient care without human oversight.\\n11. The assistant's response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.\\n12. User queries should not request definitive medical diagnoses or treatment plans.\\n13. Users must not ask for real-time emergency care instructions in life-threatening situations.\\n14. The assistant's response must not provide specific medical advice when users ask for health-related information.\\n15. Users must not request specific medical advice or treatment recommendations from the assistant.\\n16. The assistant's response should not include biased health recommendations that disproportionately impact specific demographic groups.\\n17. Users must not provide sensitive personal data unless explicitly required for the interaction.\\n18. The assistant's response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.\\n19. The assistant's response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.\\n20. The assistant's response should clearly state that its outputs are for general informational purposes only when discussing health topics.\\n21. The assistant's response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.\\n22. Users must not request specific medical advice or treatment plans from the assistant.\"",
"project_name": "default",
"total_rules": 22,
"name": "Healthcare Guidelines",
"updated_at": "2025-03-28T08:35:39.656184+00:00",
"policy_id": 1456247350,
"created_at": "2025-03-28T08:35:39.656184+00:00",
"is_v2": false,
"pdf_name": "healthcare_guidelines",
"policy_text": "<string>",
"created_by": "<string>",
"updated_by": "<string>",
"v2_questionnaire": {
"purpose": "",
"prohibited_actions": [
"<string>"
],
"user_types": [
"general_public"
],
"data_access": [
"pii"
],
"actions": [
"read_only"
],
"decision_impact": "informational"
},
"v2_config": {
"status": "success",
"enabled": [
{
"id": "priv-1",
"text": "The assistant must not provide individualized investment advice.",
"risk_category": "legal_ip_liability",
"applicability": "assistant",
"severity": "medium",
"source": "document",
"suggested": false,
"display_text": "No individualized investment advice",
"frameworks": [
"hipaa"
],
"mappings": [
{
"framework": "<string>",
"clause": "<string>"
}
]
}
],
"disabled": [
{
"id": "priv-1",
"text": "The assistant must not provide individualized investment advice.",
"risk_category": "legal_ip_liability",
"applicability": "assistant",
"severity": "medium",
"source": "document",
"suggested": false,
"display_text": "No individualized investment advice",
"frameworks": [
"hipaa"
],
"mappings": [
{
"framework": "<string>",
"clause": "<string>"
}
]
}
],
"stats": {
"generated": 3,
"enabled": 3,
"merged": 1,
"doc_only": 2,
"disabled": 20,
"excluded": 15
},
"processing_time": 41.2
}
}Authorizations
Headers
The code of conduct policy name
"Test CoC Policy"
Refresh the cache if data is stale
false
Response
Successful Response
The rules defined in the policy. Legacy (v1) field: only populated when is_v2 is false, null on Policy Wizard (v2) policies.
"\"1. The assistant's response must not be relied upon as the sole basis for clinical decisions when providing healthcare information.\\n2. Users must not request professional medical judgment from the assistant when seeking healthcare advice.\\n3. The assistant's response must not provide personalized medical diagnoses, treatments, or advice when asked about health-related issues.\\n4. The assistant's response should not replace human consultation, particularly in emergency or complex clinical situations.\\n5. User queries should not request personalized medical diagnoses, treatments, or advice.\\n6. Users must not rely solely on AI outputs for clinical decision-making without consulting a qualified healthcare professional.\\n7. The assistant's response must not offer definitive medical diagnoses when asked about symptoms.\\n8. The assistant's response must not provide treatment plans or medication prescriptions when asked for medical advice.\\n9. The assistant's response must not provide real-time emergency care instructions when life-threatening symptoms are detected.\\n10. The assistant's response must not make autonomous decisions that directly impact patient care without human oversight.\\n11. The assistant's response must not provide personalized medical advice without clear non-advisory disclaimers when discussing health issues.\\n12. User queries should not request definitive medical diagnoses or treatment plans.\\n13. Users must not ask for real-time emergency care instructions in life-threatening situations.\\n14. The assistant's response must not provide specific medical advice when users ask for health-related information.\\n15. Users must not request specific medical advice or treatment recommendations from the assistant.\\n16. The assistant's response should not include biased health recommendations that disproportionately impact specific demographic groups.\\n17. Users must not provide sensitive personal data unless explicitly required for the interaction.\\n18. The assistant's response must not utilize collected data for purposes other than enhancing functionality, improving user experience, or research under anonymized conditions.\\n19. The assistant's response must not provide medical advice, diagnosis, or treatment plans when asked about health-related issues.\\n20. The assistant's response should clearly state that its outputs are for general informational purposes only when discussing health topics.\\n21. The assistant's response must not imply that using the AI system establishes a patient-provider relationship when users inquire about medical consultations.\\n22. Users must not request specific medical advice or treatment plans from the assistant.\""
"default"
Total number of rules in the policy. Legacy (v1) field: only populated when is_v2 is false, null on Policy Wizard (v2) policies.
22
Name of the policy
"Healthcare Guidelines"
"2025-03-28T08:35:39.656184+00:00"
1456247350
"2025-03-28T08:35:39.656184+00:00"
Whether this policy is stored in the Policy Wizard (v2) format. Always present. When true, v2_questionnaire and v2_config are populated and the legacy fields (policy_rules, policy_text, total_rules, pdf_name) are null; when false, the reverse is true.
false
Legacy (v1) field: only populated when is_v2 is false, null on Policy Wizard (v2) policies.
"healthcare_guidelines"
Legacy (v1) field: only populated when is_v2 is false, null on Policy Wizard (v2) policies.
The Policy Wizard questionnaire this policy was generated from. Only populated when is_v2 is true, null on legacy (v1) policies.
Show child attributes
Show child attributes
The full generate-rules response (enabled/disabled rules + stats) this policy stores. Only populated when is_v2 is true, null on legacy (v1) policies.
Show child attributes
Show child attributes

