Policies
Export Policies
Export all policies for an organization as JSON.
Returns policies in a format suitable for import.
Response Body
application/json
curl -X GET "https://api.grayswan.ai/policies/export"{
"policies": [
{
"name": "string",
"description": "string",
"categories": {
"property1": "string",
"property2": "string"
},
"mode": "content_moderation",
"pre_violation_threshold": 0.5,
"pre_jb_threshold": 0.3,
"post_violation_threshold": 0.5,
"post_violation_jb_threshold": 0.3,
"scanners_config": {},
"export_version": "1.0"
}
],
"export_date": "2019-08-24T14:15:22Z",
"export_version": "1.0",
"total": 0
}