curl "https://agentgate.mynewapi.com/v1/credits/usage?startDate=2024-01-01&tenantId=acme-corp" \ -H "Authorization: Bearer YOUR_API_KEY"
{ "transactions": [ { "id": "txn_abc123", "type": "deduction", "amount": 150, "runId": "run_xyz789", "tenantId": "acme-corp", "tenantUserId": "user_123", "createdAt": "2024-01-15T10:35:00Z" }, { "id": "txn_abc122", "type": "purchase", "amount": 10000, "createdAt": "2024-01-01T00:00:00Z" } ], "total": 25, "limit": 50, "offset": 0 }
Get credit transaction history
deduction
purchase
refund