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": 1,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "description": "Auto-approve USDC transfers under $1000",
    "accounts": [
      {
        "id": "acc_1",
        "name": "Treasury",
        "address": "<string>"
      }
    ],
    "limitation": {
      "hours": 24,
      "initiatorScope": "PER_ITEM",
      "sourceAccountScope": "PER_ITEM",
      "destinationScope": "PER_ITEM"
    },
    "initiatorSetting": {
      "type": "<string>",
      "memberId": "mem_123"
    },
    "approverSetting": {
      "type": "<string>",
      "memberId": "cfo_bob"
    },
    "tokenTransferCondition": {
      "tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
      "amountThreshold": "1000000000",
      "destinationAddresses": [
        "<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
Token Transfer · object
required