List all policies and create a new policy
| Parameter | Type | Required | Description |
|---|---|---|---|
organization_id | uuid | Yes | UUID of the organization to create the policy in |
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the policy (max 255 characters) |
description | string | No | Description of the policy |
content | object | Yes | Policy content structure (see below) |
version_name | string | No | Name for the initial version (default: “version 1”) |
content field accepts a JSON object with the following optional sections:
| Field | Type | Description |
|---|---|---|
guidelines | object | Hierarchical structure with categories, rules, and sub-rules |
instructions | string | Free-form text instructions for the agent |
dispositions | object | Classification options for agent outputs |
summary_template | object | Handlebars-style template for generating summaries |
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
UUID of the organization for access control. Required.
Serializer for creating a new policy with initial version