API Reference
The Cache API.
RESTful endpoints for querying financial data, managing accounts, and building integrations.
Base URL
https://api.usecache.com/v1Endpoints
GET
/accountsList all connected accounts with balances and metadata
GET
/accounts/:idRetrieve a single account by ID
GET
/transactionsList transactions with filtering, pagination, and sorting
GET
/transactions/:idRetrieve a single transaction by ID
POST
/queriesExecute a natural language query against your financial data
POST
/webhooksRegister a webhook endpoint for real-time notifications
GET
/categoriesList all transaction categories with spending totals
GET
/recurringList detected recurring charges and subscriptions
Example
List transactions
Request
curl -X GET "https://api.usecache.com/v1/transactions" \
-H "Authorization: Bearer sk_live_..." \
-H "Content-Type: application/json" \
-d '{
"account_id": "acc_8f3k2j1",
"start_date": "2025-01-01",
"end_date": "2025-01-31",
"category": "software",
"limit": 50
}'Response
{
"data": [
{
"id": "txn_9x8k2m1",
"account_id": "acc_8f3k2j1",
"amount": -49.00,
"currency": "USD",
"merchant": "Vercel Inc",
"category": "software",
"date": "2025-01-15",
"pending": false,
"metadata": {
"confidence": 0.98,
"recurring": true,
"frequency": "monthly"
}
},
{
"id": "txn_7y2n4p3",
"account_id": "acc_8f3k2j1",
"amount": -20.00,
"currency": "USD",
"merchant": "GitHub",
"category": "software",
"date": "2025-01-12",
"pending": false,
"metadata": {
"confidence": 0.99,
"recurring": true,
"frequency": "monthly"
}
}
],
"has_more": true,
"next_cursor": "cur_abc123"
}