IndigiArmorIndigiArmorDocs

Policy Templates

Policy templates are pre-configured detection policies designed for common compliance frameworks (FERPA, HIPAA, tribal data sovereignty, etc.). Browse available templates and create a copy tailored to your organization in a single request.

Plan requirement: Policy templates require the complianceTemplates feature.

GET
/v1/policies/templates

List all available policy templates.

Response

200 OK
{
  "templates": [
    {
      "id": "uuid",
      "name": "FERPA Strict",
      "enabled": true,
      "detection_categories": ["pii", "education"],
      "action": "block",
      "sensitivity_threshold": 0.3,
      "domain_thresholds": { "pii": 0.3, "education": 0.2 },
      "custom_rules": {},
      "is_template": true,
      "created_at": "2026-01-01T00:00:00Z"
    },
    {
      "id": "uuid",
      "name": "Tribal Data Sovereignty",
      "enabled": true,
      "detection_categories": ["cultural", "pii", "reidentification"],
      "action": "block",
      "sensitivity_threshold": 0.2,
      "domain_thresholds": { "cultural": 0.1 },
      "custom_rules": {},
      "is_template": true,
      "created_at": "2026-01-01T00:00:00Z"
    }
  ]
}
POST
/v1/policies/from-template

Create a new policy from a template. Copies the template configuration into your organization.

Request Body

ParameterTypeRequiredDescription
template_idstringYesThe ID of the template to copy
namestringNoCustom name for the new policy. Defaults to "{Template Name} (Copy)".
is_defaultbooleanNoSet as default policy. Unsets any existing default. Defaults to false.

Create Response

201 Created
{
  "policy": {
    "id": "uuid",
    "organization_id": "uuid",
    "name": "FERPA Compliance",
    "enabled": true,
    "detection_categories": ["pii", "education"],
    "action": "block",
    "sensitivity_threshold": 0.3,
    "domain_thresholds": { "pii": 0.3, "education": 0.2 },
    "custom_rules": {},
    "is_default": true,
    "created_at": "2026-01-15T10:00:00Z"
  }
}

When is_default is set to true, any existing default policy in your organization is automatically unset. The new policy inherits the template's detection categories, action, thresholds, and custom rules.

Examples

SDK
// List available templates
const templates = await armor.listPolicyTemplates();

// Create a policy from a template
const policy = await armor.createPolicyFromTemplate({
  template_id: templates[0].id,
  name: 'FERPA Compliance',
  is_default: true,
});
console.log('Created policy:', policy.id);
cURL — Create from Template
curl -X POST https://indigiarmor.com/v1/policies/from-template \
  -H "Authorization: Bearer ia_sk_..." \
  -H "Content-Type: application/json" \
  -d '{"template_id": "template-uuid", "name": "FERPA Compliance", "is_default": true}'