Developer Quickstart
The DefensiveAgent API provides real-time transaction auditing for autonomous agents. Integrate our endpoint to verify spending against your user-defined security policies.
Endpoint: POST /api/audit
curl -X POST https://defensiveagent.com/api/audit \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"amount": 0.75,
"merchant": "openai.com",
"agentName": "ResearchBot-01"
}'Request Schema
- amount: Number (USD)
- merchant: String (Domain)
- agentName: String (Label)
Response States
- APPROVED: Transaction is within limits
- BLOCKED: Policy violation detected