curl --request GET \
--url https://api.onchainden.com/api/v1/policies \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "pol_123",
"name": "Auto-approve Small Transfers",
"type": "AUTO_APPROVAL",
"transactionType": "TOKEN_TRANSFER",
"networkId": 123,
"accounts": [
{
"id": "<string>",
"name": "<string>",
"address": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"limitation": {
"hours": 123,
"initiatorScope": "PER_ITEM",
"sourceAccountScope": "PER_ITEM",
"destinationScope": "PER_ITEM"
},
"initiatorSetting": {
"type": "<string>",
"memberId": "<string>"
},
"approverSetting": {
"type": "<string>",
"memberId": "<string>"
},
"tokenTransferCondition": {
"tokenAddress": "<string>",
"tokenDecimals": 123,
"amountThreshold": "<string>",
"destinationAddresses": [
"<string>"
]
},
"contractInteractionCondition": [
{
"contractAddress": "<string>",
"allowedFunctions": [
"<string>"
]
}
]
}
]
}Retrieves all policies for the organization (not paginated).
curl --request GET \
--url https://api.onchainden.com/api/v1/policies \
--header 'Authorization: Bearer <token>'{
"data": [
{
"id": "pol_123",
"name": "Auto-approve Small Transfers",
"type": "AUTO_APPROVAL",
"transactionType": "TOKEN_TRANSFER",
"networkId": 123,
"accounts": [
{
"id": "<string>",
"name": "<string>",
"address": "<string>"
}
],
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"description": "<string>",
"limitation": {
"hours": 123,
"initiatorScope": "PER_ITEM",
"sourceAccountScope": "PER_ITEM",
"destinationScope": "PER_ITEM"
},
"initiatorSetting": {
"type": "<string>",
"memberId": "<string>"
},
"approverSetting": {
"type": "<string>",
"memberId": "<string>"
},
"tokenTransferCondition": {
"tokenAddress": "<string>",
"tokenDecimals": 123,
"amountThreshold": "<string>",
"destinationAddresses": [
"<string>"
]
},
"contractInteractionCondition": [
{
"contractAddress": "<string>",
"allowedFunctions": [
"<string>"
]
}
]
}
]
}