Skip to main content
POST
Create policy
Creates a policy for the authenticated tenant. Set status to DRAFT to save without enforcing, or ACTIVE to begin enforcement immediately. Each policy contains a set of rules evaluated in order. The first matching rule determines the outcome. If no rule matches, the default_effect applies.
See the issuance policies guide for a walkthrough of rule syntax, condition operators, and lifecycle management.

Parameters

string
required
A human-readable name for the policy (e.g., “US Issuers Only”).
string
required
The action this policy applies to: MINT, VERIFY, or BUNDLE_EXPORT.
string
required
Initial status: DRAFT, ACTIVE, or DISABLED. Only ACTIVE policies are enforced.
string
Optional description explaining the policy’s purpose.
string
Rule language. Use json_rules for the built-in JSON rules engine.
object
required
The rule set containing an array of rules and a default_effect.

Responses

Authorizations

X-API-Key
string
header
required

API key for machine-to-machine authentication

Body

application/json
name
string
required
category
enum<string>
required
Available options:
MINT,
VERIFY,
BUNDLE_EXPORT
status
enum<string>
required
Available options:
DRAFT,
ACTIVE,
DISABLED
rules
object
required

Rule set with rules array and default_effect

description
string
language
string
default:json_rules

Response

Policy created

id
string
name
string
category
string
status
string
version
integer
created_at
string