Create a new policy

Create a new policy to automatically control transaction behavior. Policies define rules that allow, block, or require approval for transactions based on conditions like amount, recipient, or asset type.

Request Body

FieldTypeRequiredDescription
namestringYesHuman-readable policy name (max 255 chars, unique in org)
descriptionstringNoDescription of policy purpose and behavior
typestringNoAction type (TRANSFER, CONTRACT_CALL, RAW_SIGNING, TYPED_MESSAGE)
statusstringNoInitial status (default: DRAFT)
enforcementModestringNoSTRICT (default) or ADVISORY
conditionLogicstringNoALL (default, AND logic) or ANY (OR logic)
prioritynumberNoEvaluation order (default: 100, lower = higher priority)
conditionsarrayYesArray of condition objects (at least one required)
actionsarrayYesArray of action objects

Condition Object

FieldTypeDescription
fieldstringField to evaluate (e.g., transaction.amount, transaction.recipient)
operatorstringComparison operator (e.g., GREATER_THAN, EQUALS, IN_LIST)
valueanyValue to compare against
unitstringOptional unit (e.g., USD for amounts)

Action Object

FieldTypeDescription
typestringALLOW, BLOCK, REQUIRE_APPROVAL, or NOTIFY
requiredApproversnumberRequired for REQUIRE_APPROVAL (minimum 2)
approverListIdstringOptional named list ID for approvers
notificationTargetstringRequired for NOTIFY action

Required Permission

policies:create