List Transactions
List transactions with filtering, sorting, and pagination. Supports filtering by agent, status, action type, amount range, and date range.
GET/transactions
List transactions with filtering, sorting, and pagination.
Requires API key authentication
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| agent_id | string | optional | Filter by agent ID. |
| status | string | optional | Filter by status: completed, reversed, failed. |
| action_type | string | optional | Filter by action type. |
| min_amount | number | optional | Minimum transaction amount. |
| max_amount | number | optional | Maximum transaction amount. |
| start_date | string | optional | ISO 8601 start date for filtering. |
| end_date | string | optional | ISO 8601 end date for filtering. |
| page | number | optional | Page number. Default: 1. |
| limit | number | optional | Items per page. Default: 20. |
Response Example
Response
{ "transactions": [ { "id": "tx_r8s9t0u1", "agent_id": "agent_7f3k9x2m", "agent_name": "Trading Agent Alpha", "counterparty_id": "agent_p2q3r4s5", "amount": 2500.00, "currency": "USD", "action_type": "execute_trades", "status": "completed", "permissions_checked": true, "audit_hash": "sha256:tx_hash_abc...", "notes": null, "created_at": "2025-01-15T14:30:00Z" }, { "id": "tx_b2c3d4e5", "agent_id": "agent_7f3k9x2m", "agent_name": "Trading Agent Alpha", "counterparty_id": "agent_x4y5z6a7", "amount": 150.00, "currency": "USD", "action_type": "data_purchase", "status": "completed", "permissions_checked": true, "audit_hash": "sha256:tx_hash_def...", "notes": "Monthly data subscription", "created_at": "2025-01-14T09:00:00Z" } ], "total": 42, "page": 1, "limit": 20}Code Examples
BASH
curl -X GET "https://api.alsorn.com/transactions?agent_id=agent_7f3k9x2m&status=completed&limit=10" \ -H "Authorization: Bearer YOUR_API_KEY"