Templates

List policy templates

Retrieve available policy templates for quick policy creation. Templates provide pre-configured policies for common use cases like HIPAA compliance, GDPR data protection, and rate limiting.

get/api/v1/templates

Request

Query parameters

category'general' | 'security' | 'compliance' | 'content_safety' | 'rate_limiting' | 'access_control' | 'data_protection' | 'custom'

Filter by template category

searchstring

Search in name and description

tagsstring

Comma-separated tags to filter by

activeboolean

Filter by active status

builtinboolean

Filter by builtin status

pageinteger

Page number (1-indexed)

page_sizeinteger

Number of items per page

Headers

X-Tenant-IDstring required
Example:tenant_abc123

Tenant identifier for multi-tenancy isolation. When calling through the Agent (recommended), this header is stamped automatically from the authenticated client — you do not set it yourself. Required only on direct Orchestrator calls (internal deployments).

Response

List of templates

Example response

{
  "templates": [
    {
      "id": "hipaa_phi_protection",
      "name": "hipaa_phi_protection",
      "display_name": "HIPAA PHI Protection",
      "description": "Protects PHI data in accordance with HIPAA requirements",
      "category": "compliance",
      "subcategory": "healthcare",
      "template": {
        "actions": [
          {
            "config": {
              "message": "Request blocked by policy",
              "channel": "security-alerts"
            }
          }
        ]
      },
      "variables": [
        {
          "name": "threshold",
          "description": "Maximum requests allowed per window"
        }
      ],
      "version": "1.0",
      "tags": [
        "hipaa",
        "healthcare",
        "phi"
      ]
    }
  ],
  "pagination": {
    "page": 1,
    "page_size": 20,
    "total_items": 45,
    "total_pages": 3
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.