Policy
View policy
Get the current policy settings for the agent
GET
/
wallets
/
me
/
policy
curl https://api.useknot.xyz/wallets/me/policy \
-H "Authorization: Bearer <token>"
{
"status": true,
"data": {
"policy": {
"maxSingleTransactionInUsd": 100,
"dailyLimitInUsd": 500,
"allowedRecipients": [],
"allowTrading": true,
"allowLiquidityProvision": true,
"allowPredictionMarkets": true,
"sessionExpirationHours": 168
}
}
}
Returns the agent’s current policy configuration, including spending limits, allowed recipients, and feature permissions.
Requires authentication via Bearer token.
Response
boolean
true when the request succeeds.object
Show properties
Show properties
object
The agent’s active policy settings.
Show properties
Show properties
number
Maximum USD value allowed per individual transaction.
number
Maximum total USD value allowed across all transactions in a 24-hour period.
array
Whitelist of Solana addresses permitted to receive transfers. An empty array means all recipients are allowed.
boolean
true if the agent can execute token swaps via the trade endpoint.boolean
true if the agent can provide liquidity to pools.boolean
true if the agent can interact with prediction market contracts.number
JWT token validity period in hours. Default is
168 (7 days).Errors
| Status | Description |
|---|---|
401 | Missing or invalid Bearer token |
429 | Rate limit exceeded |
curl https://api.useknot.xyz/wallets/me/policy \
-H "Authorization: Bearer <token>"
{
"status": true,
"data": {
"policy": {
"maxSingleTransactionInUsd": 100,
"dailyLimitInUsd": 500,
"allowedRecipients": [],
"allowTrading": true,
"allowLiquidityProvision": true,
"allowPredictionMarkets": true,
"sessionExpirationHours": 168
}
}
}
curl https://api.useknot.xyz/wallets/me/policy \
-H "Authorization: Bearer <token>"
{
"status": true,
"data": {
"policy": {
"maxSingleTransactionInUsd": 100,
"dailyLimitInUsd": 500,
"allowedRecipients": [],
"allowTrading": true,
"allowLiquidityProvision": true,
"allowPredictionMarkets": true,
"sessionExpirationHours": 168
}
}
}