Cubewire LogoDeveloper
Support
Onboarding
Cubewire Developer Hub Logo
SOC 2 Compliant

Developer documentation and tools for Cubewire's digital wallet infrastructure. Built for developers, by developers.

developers@cubewire.com
TwitterGitHubDiscord

Developer Tools

  • API Documentation
  • API Reference

Resources

  • Documentation

Company

  • About
  • Contact

Legal

  • Privacy Policy
  • Terms of Service
© 2026 Cubewire. All rights reserved.
Developer Documentation Portal•Built with ♥ for developers
  1. Cubewire Wallet
  2. Manage Policies
  3. Create a new policy

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)
descriptionstringYesDescription of policy purpose and behavior
typestringNoAction type (TRANSFER, CONTRACT_WRITE, CONTRACT_READ, CONTRACT_DEPLOY, MINT, BURN, RAW_SIGNING, TYPED_MESSAGE)
statusstringNoInitial status (default: DRAFT)
enforcementModestringNoSTRICT (default) or AUDIT_ONLY
conditionLogicstringNoALL (default, AND logic) or ANY (OR logic)
policyGroupIdstringNoOptional policy group UUID (nullable)
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)
descriptionstringOptional description of the condition

Action Object

FieldTypeDescription
typestringALLOW, BLOCK, REQUIRE_APPROVAL, or NOTIFY
requiredApproversnumberOptional for REQUIRE_APPROVAL (minimum 1)
approverListIdstringOptional named list ID for approvers
notificationTargetstringRequired for NOTIFY action
metadataobjectOptional arbitrary metadata object (nullable)

Required Permission

policies:create

On this page

  • Request Body
  • Condition Object
  • Action Object
  • Required Permission
  1. Cubewire Wallet
  2. Manage Policies
  3. Create a new policy

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)
descriptionstringYesDescription of policy purpose and behavior
typestringNoAction type (TRANSFER, CONTRACT_WRITE, CONTRACT_READ, CONTRACT_DEPLOY, MINT, BURN, RAW_SIGNING, TYPED_MESSAGE)
statusstringNoInitial status (default: DRAFT)
enforcementModestringNoSTRICT (default) or AUDIT_ONLY
conditionLogicstringNoALL (default, AND logic) or ANY (OR logic)
policyGroupIdstringNoOptional policy group UUID (nullable)
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)
descriptionstringOptional description of the condition

Action Object

FieldTypeDescription
typestringALLOW, BLOCK, REQUIRE_APPROVAL, or NOTIFY
requiredApproversnumberOptional for REQUIRE_APPROVAL (minimum 1)
approverListIdstringOptional named list ID for approvers
notificationTargetstringRequired for NOTIFY action
metadataobjectOptional arbitrary metadata object (nullable)

Required Permission

policies:create

On this page

  • Request Body
  • Condition Object
  • Action Object
  • Required Permission