Skip to main content
GET
/
policies
/
{id}
cURL
curl --request GET \
  --url https://api.onchainden.com/api/v1/policies/{id} \
  --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>"
        ]
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

API key authentication. Include your API key in the Authorization header.

Path Parameters

id
string
required

Response

Policy details

data
object