Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Returns a single policy by its unique identifier.
cURL
curl --request GET \ --url https://api.onchainden.com/api/v1/policies/{policyId} \ --header 'Authorization: Bearer <token>'
{ "data": { "id": "pol_123", "name": "Auto-approve Small Transfers", "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 }, "initiatorSetting": { "type": "user", "userId": "usr_123" }, "approverSetting": { "type": "group" }, "tokenTransferCondition": { "tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "tokenSymbol": "USDC", "tokenName": "USD Coin", "tokenLogoUrl": "https://assets.onchainden.com/tokens/usdc.png", "tokenDecimals": 6, "amountThreshold": "1000000000", "destinationAddresses": [] } } }
API key authentication. Include your API key in the Authorization header.
Policy ID
Policy details
Show child attributes