Rivaire Insights API
The Insights API from Rivaire — 2 operation(s) for insights.
The Insights API from Rivaire — 2 operation(s) for insights.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/rivaire-pro:rivaire-pro-insights-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Rivaire Insights API
version: '1'
description: 'Create a token in Settings → API
Send it as `Authorization: Bearer rvr_...`
Spec: openapi.json
## Workspaces
Pass `?workspaceId=` to pick a workspace; get IDs from `GET /v1/workspaces`. Without it, requests about a
transaction, wallet or recurring series use its workspace, and everything else uses your Main workspace.
## Amounts
Amounts are decimal strings like `"12.50"`. Send a string or a number with up to two decimals.
What a token sees is set when you create it:
- **Show amounts**: plain amounts in and out. The server encrypts them and updates balances.
- **Keep them locked** (default): amounts are `null`, with the stored values in `encrypted`. Decrypt them with
`GET /v1/keys` and your 12-word phrase. To write money, encrypt it yourself and send the new wallet balances in
`walletBalanceUpdates`.
Errors look like `{"error": "message"}`.'
servers:
- url: https://api.rivaire.pro
security:
- apiToken: []
tags:
- name: Insights
paths:
/v1/summary:
get:
tags:
- Insights
summary: Summarize income and spending
description: Income, expenses and net over local days, converted to one currency at the latest rates and grouped by category, tag, wallet, day, week or month (time groups include empty periods). Transfers and balance adjustments are left out. Needs a token that shows amounts.
parameters:
- name: workspaceId
in: query
required: false
description: Workspace to use. Defaults to the workspace of the transaction or wallet in the request, otherwise Main.
schema:
type: string
format: uuid
- name: from
in: query
required: true
description: First day, `YYYY-MM-DD`.
schema:
type: string
format: date
- name: until
in: query
required: true
description: Last day, inclusive.
schema:
type: string
format: date
- name: groupBy
in: query
required: false
description: Default `category`.
schema:
type: string
enum:
- category
- tag
- wallet
- day
- week
- month
- none
- name: type
in: query
required: false
schema:
type: string
enum:
- expense
- income
- name: walletId
in: query
required: false
schema:
type: string
format: uuid
- name: categoryId
in: query
required: false
schema:
type: string
format: uuid
- name: tagIds
in: query
required: false
description: Comma-separated tag IDs.
schema:
type: string
- name: currency
in: query
required: false
description: 'Currency of the totals. Default: your main currency.'
schema:
type: string
pattern: ^[A-Z]{3}$
- name: timeZone
in: query
required: false
description: 'Zone of the days. Default: that of your newest transaction.'
schema:
type: string
maxLength: 120
pattern: ^[A-Za-z][A-Za-z0-9_+\-/]*$
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
workspaceId:
type: string
format: uuid
currency:
type: string
from:
type: string
until:
type: string
timeZone:
type: string
groupBy:
type: string
totals:
type: object
properties:
income:
type: string
expense:
type: string
net:
type: string
count:
type: integer
required:
- income
- expense
- net
- count
unreadableCount:
type: integer
minimum: 0
complete:
type: boolean
description: False when amounts, conversion rates or rows are missing from the totals.
groups:
type: array
items:
type: object
properties:
income:
type: string
expense:
type: string
net:
type: string
count:
type: integer
key:
type: string
label:
type: string
required:
- income
- expense
- net
- count
- key
- label
groupsLeftOut:
type: integer
minimum: 0
description: Groups not listed; always 0 for these groupings.
notConverted:
type: array
items:
type: object
properties:
income:
type: string
expense:
type: string
net:
type: string
count:
type: integer
currency:
type: string
required:
- income
- expense
- net
- count
- currency
description: Currencies without a rate, totalled in their own currency.
truncated:
anyOf:
- type: string
- type: 'null'
required:
- workspaceId
- currency
- from
- until
- timeZone
- groupBy
- totals
- unreadableCount
- complete
- groups
- groupsLeftOut
- notConverted
- truncated
'400':
description: Invalid request. The message says what is wrong.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: The token is missing, invalid or expired.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Too many requests. Wait and retry.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: getV1Summary
x-operation-id-source: derived
/v1/exports/transactions:
get:
tags:
- Insights
summary: Export transactions as CSV
description: 'Newest first, with names instead of ids. Amount columns stay empty for tokens that keep amounts locked. `X-Export-Truncated: true` when the export stopped at its limit.'
parameters:
- name: workspaceId
in: query
required: false
description: Workspace to use. Defaults to the workspace of the transaction or wallet in the request, otherwise Main.
schema:
type: string
format: uuid
- name: from
in: query
required: false
schema:
type: string
format: date
- name: until
in: query
required: false
schema:
type: string
format: date
- name: timeZone
in: query
required: false
description: 'Zone of the dates. Default: that of your newest transaction.'
schema:
type: string
maxLength: 120
pattern: ^[A-Za-z][A-Za-z0-9_+\-/]*$
responses:
'200':
description: OK
content:
text/csv:
schema:
type: string
'400':
description: Invalid request. The message says what is wrong.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'401':
description: The token is missing, invalid or expired.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: Not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'429':
description: Too many requests. Wait and retry.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
operationId: getV1ExportsTransactions
x-operation-id-source: derived
components:
schemas:
Error:
type: object
properties:
error:
type: string
required:
- error
securitySchemes:
apiToken:
type: http
scheme: bearer
bearerFormat: rvr_...