Control how much your AI agent can spend with configurable Modexia limits. Policies are enforced actively on every payment payload — requests that violate these limits are rejected server-side to protect you.
| Limit Property | Enforcement Description | |
|---|---|---|
dailyLimit | Maximum total USDC your agent can spend in any 24-hour window. | |
hourlyLimit | Maximum total USDC per any rolling hour. | |
maxPerRequest | Maximum USDC per single payment transfer API call. |
Apply specific limits explicitly for one specific address in your fleet.
curl -X POST https://api.modexia.software/api/v1/agent/policy \
-H "x-modexia-key: mx_test_abc123..." \
-H "Content-Type: application/json" \
-d '{
"agentAddress": "0xYourAgentAddress...",
"dailyLimit": "100",
"hourlyLimit": "25",
"maxPerRequest": "10"
}'Define an overriding default baseline for any wallet interacting using your key or under your account hierarchy.
curl -X POST https://api.modexia.software/api/v1/user/policy \
-H "x-modexia-key: mx_test_abc123..." \
-H "Content-Type: application/json" \
-d '{
"dailyLimit": "50",
"hourlyLimit": "10",
"maxPerRequest": "5"
}'Why set hard limits?
403 error containing the remaining allowance mathematically remaining.