v1

latestOpenAPI 3.1.02026-07-24233206489.1 KB

post/v1/policies

Request body

organization_idstring required

The organization ID as the owner of the policy

resourcestring required

The resource in which the policy will apply (e.g. wallet, user)

operationstring required

The operation where the resource participated in which the policy will apply

namestring required

The merchant defined name of the policy

sourcestring required

Base64 encoded string of the policy source code

Response

Created

Example response

{
  "data": {
    "id": "policy_xxxxxxxxxxxxx",
    "resource": "transfer",
    "operation": "CreateTransfer",
    "name": "Policy for creating transfers",
    "language": "rego",
    "source": "cGFja2FnZSB0cmFuc2Zlci5Dc...",
    "status": "deactivated",
    "created_at": "2025-12-23T18:42:59.405003292Z",
    "updated_at": "2025-12-23T18:42:59.405003292Z"
  }
}