{
    "info": {
        "name": "Essara Agent API",
        "description": "Secure REST API for AI Agents and OpenClaw integrations.",
        "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
    },
    "item": [
        {
            "name": "Log Transaction",
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "Authorization",
                        "value": "Bearer {{api_key}}",
                        "type": "text"
                    },
                    {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                    }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"name\": \"Sample Expense\",\n  \"amount\": 50.00,\n  \"type\": \"expense\",\n  \"date\": \"2026-02-23\"\n}"
                },
                "url": {
                    "raw": "{{base_url}}/api/agent/transactions",
                    "host": [
                        "{{base_url}}"
                    ],
                    "path": [
                        "api",
                        "agent",
                        "transactions"
                    ]
                }
            }
        },
        {
            "name": "Map Subscription",
            "request": {
                "method": "POST",
                "header": [
                    {
                        "key": "Authorization",
                        "value": "Bearer {{api_key}}",
                        "type": "text"
                    },
                    {
                        "key": "Content-Type",
                        "value": "application/json",
                        "type": "text"
                    }
                ],
                "body": {
                    "mode": "raw",
                    "raw": "{\n  \"name\": \"Spotify Premium\",\n  \"amount\": 10.99,\n  \"billing_cycle\": \"monthly\",\n  \"next_billing_date\": \"2026-03-01\"\n}"
                },
                "url": {
                    "raw": "{{base_url}}/api/agent/subscriptions",
                    "host": [
                        "{{base_url}}"
                    ],
                    "path": [
                        "api",
                        "agent",
                        "subscriptions"
                    ]
                }
            }
        },
        {
            "name": "Budget Summary",
            "request": {
                "method": "GET",
                "header": [
                    {
                        "key": "Authorization",
                        "value": "Bearer {{api_key}}",
                        "type": "text"
                    }
                ],
                "url": {
                    "raw": "{{base_url}}/api/agent/summary",
                    "host": [
                        "{{base_url}}"
                    ],
                    "path": [
                        "api",
                        "agent",
                        "summary"
                    ]
                }
            }
        }
    ]
}