API Reference

Base URL: https://api.spendaqo.com/v1

POST /v1/classify

Classifies a batch of transactions and returns corrected category labels, confidence scores, and a cash-flow forecast signal.

Request body

Field Type Required Description
account_idstringyesYour internal account identifier
transactions[]arrayyesArray of transaction objects (max 500)
transactions[].idstringyesYour transaction ID (returned in response)
transactions[].amount_centsintegeryesTransaction amount in cents
transactions[].merchant_namestringyesRaw merchant name string from bank
transactions[].raw_categorystringoptionalOriginal category label from data source
transactions[].datestringoptionalISO 8601 date (required for forecast)
GET /v1/forecast/{account_id}

Returns the current 90-day rolling cash-flow forecast signal for an account, based on its corrected transaction history.

Query parameters

Parameter Type Description
horizonintegerForecast horizon in days (default: 90, max: 90)
as_ofstringISO 8601 date for point-in-time forecast (optional)

Error codes

Code Meaning
400Bad request — malformed JSON or missing required fields
401Unauthorized — invalid or missing API key
429Rate limited — requests per minute or monthly limit exceeded
500Internal server error — safe to retry with exponential backoff