API Reference
POST /limits
Set or update spend policy with human signature authorization
Endpoint
POST https://zp-api-q4hd.onrender.com/limitsAuth
Bearer API key required.
Request body
{
"agentAddress": "0x...",
"perTxLimit": "0.25",
"dailyBudget": "3.00",
"allowlist": ["exa.ai", "firecrawl.dev"],
"approvalThreshold": "0.10",
"humanSignature": "0x...",
"timestamp": 1711234567890
}Signature message
humanSignature is recovered against:
{
"agentAddress": "0x...",
"perTxLimit": "0.25",
"dailyBudget": "3.00",
"timestamp": 1711234567890
}Response shape (201)
{
"status": "deployed",
"policyContract": "0x...",
"txHash": null,
"agentAddress": "0x...",
"apiKey": "zpk_...",
"perTxLimit": "0.25",
"dailyBudget": "3.00",
"allowlist": ["exa.ai", "firecrawl.dev"]
}