Skip to main content
POST
Create MAIP Policy

Create MAIP Policy

POST /v1/maip/policies Creates a new MAIP agent enforcement policy for the authenticated tenant. Policies define runtime rules that are evaluated when agents request access to scoped resources via the Evaluate Policy endpoint.
MAIP policies are different from RBAC issuance policies. MAIP policies govern machine agent behavior at runtime based on trust scores, delegation depth, scopes, and agent type. RBAC policies govern credential issuance and human user access.

Authentication

Requires X-API-Key header or Bearer JWT token. Tenant-scoped via cookie or JWT claim.

Response

Returns the created policy object with server-generated fields (id, tenant_id, status, timestamps).
string
UUID primary key of the created policy.
string
UUID of the owning tenant.
string
Policy name as provided.
string
Policy description, if provided.
string
Policy category.
string
Always "active" on creation.
integer
Evaluation priority.
object
The rules array as provided.
string
ISO 8601 creation timestamp.
string
ISO 8601 last-updated timestamp.

Example

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Body

application/json
name
string
required

Human-readable policy name

Maximum string length: 256
category
enum<string>

Policy category

Available options:
scope,
trust,
rate,
custom
description
string

Detailed description of the policy

Maximum string length: 2048
priority
integer

Evaluation priority (lower = first)

Required range: 1 <= x <= 1000
rules
any

Array of policy rules

Response

Policy created

id
string<uuid>

UUID primary key

tenant_id
string<uuid>

UUID of the owning tenant

name
string

Human-readable policy name

description
string

Detailed policy description

category
enum<string>

Policy category

Available options:
scope,
trust,
rate,
custom
status
enum<string>

Policy lifecycle status

Available options:
active,
disabled,
archived
priority
integer

Evaluation priority (lower = first)

rules
object[]

Array of policy rules

created_at
string<date-time>
updated_at
string<date-time>