Rivaire Recently deleted API

The Recently deleted API from Rivaire — 2 operation(s) for recently deleted.

GitHub OpenAPI

Operations 2

GET /v1/deleted-transactions List recently deleted transactions #
POST /v1/deleted-transactions/{transactionId}/restore Restore a deleted transaction #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/rivaire-pro:rivaire-pro-recently-deleted-api"
All apis
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.

Get an API 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 Specification

rivaire-pro-recently-deleted-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Rivaire Recently deleted 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: Recently deleted
paths:
  /v1/deleted-transactions:
    get:
      tags:
      - Recently deleted
      summary: List recently deleted transactions
      description: Deleted in the last 30 days, newest deletion first. For the next page, pass `nextCursor` as `cursor`.
      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: limit
        in: query
        required: false
        description: 'Page size: 1–200, default 50.'
        schema:
          type: integer
          exclusiveMinimum: 0
          maximum: 200
      - name: cursor
        in: query
        required: false
        description: '`nextCursor` from the previous page.'
        schema:
          anyOf:
          - type: string
            const: start
          - type: string
            pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z\|[0-9a-fA-F-]{36}$
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  transactions:
                    type: array
                    items:
                      $ref: '#/components/schemas/DeletedTransaction'
                  nextCursor:
                    anyOf:
                    - type: string
                    - type: 'null'
                    description: Pass as `cursor` to get the next page. `null` on the last page.
                required:
                - transactions
                - nextCursor
        '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: getV1DeletedTransactions
      x-operation-id-source: derived
  /v1/deleted-transactions/{transactionId}/restore:
    post:
      tags:
      - Recently deleted
      summary: Restore a deleted transaction
      description: Puts it back and reapplies its balances. Tokens that keep amounts locked send `walletBalanceUpdates`.
      parameters:
      - name: transactionId
        in: path
        required: true
        schema:
          type: string
          format: uuid
      - 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
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                categoryId:
                  description: Only when its own category was deleted meanwhile.
                  type: string
                  format: uuid
                walletBalanceUpdates:
                  description: 'For tokens that keep amounts locked: the balance of each of its wallets with it back.'
                  maxItems: 4
                  type: array
                  items:
                    type: object
                    properties:
                      walletId:
                        type: string
                        format: uuid
                      balance:
                        type: object
                        properties:
                          ciphertext:
                            type: string
                            minLength: 1
                            maxLength: 1024
                          iv:
                            type: string
                            minLength: 1
                            maxLength: 64
                          algorithm:
                            type: string
                            const: AES-GCM
                          keyVersion:
                            type: integer
                            exclusiveMinimum: 0
                          keyId:
                            type: string
                            format: uuid
                        required:
                        - ciphertext
                        - iv
                        - algorithm
                        - keyVersion
                      expectedVersion:
                        type: integer
                        exclusiveMinimum: 0
                    required:
                    - walletId
                    - balance
                    - expectedVersion
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  transaction:
                    $ref: '#/components/schemas/Transaction'
                required:
                - transaction
        '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'
        '403':
          description: 'Not allowed: a read-only token, a viewer, or plain amounts from a token that keeps them locked.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: 'Conflict: a duplicate name, an item in use, an outdated wallet `version`, or a limit reached.'
          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: postV1DeletedTransactionsByTransactionIdRestore
      x-operation-id-source: derived
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
      required:
      - error
    DeletedTransaction:
      type: object
      properties:
        id:
          type: string
          format: uuid
        workspaceId:
          type: string
          format: uuid
        type:
          type: string
          enum:
          - expense
          - income
          - transfer
        seriesId:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          description: Parent recurring series, or null for a standalone transaction.
        amount:
          anyOf:
          - type: string
          - type: 'null'
          description: Decimal string like `"12.50"`. `null` if the token keeps amounts locked; see `encrypted`.
        currencyId:
          type: string
        walletId:
          type: string
          format: uuid
        categoryId:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
        tagIds:
          type: array
          items:
            type: string
            format: uuid
        note:
          type: string
        createdAt:
          type: string
          format: date-time
        timeZone:
          anyOf:
          - type: string
          - type: 'null'
        transferToWalletId:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
        transferAmount:
          anyOf:
          - type: string
          - type: 'null'
          description: Decimal string like `"12.50"`. `null` if the token keeps amounts locked; see `encrypted`.
        transferCurrencyId:
          anyOf:
          - type: string
          - type: 'null'
        location:
          anyOf:
          - $ref: '#/components/schemas/Location'
          - type: 'null'
        original:
          anyOf:
          - type: object
            properties:
              amount:
                anyOf:
                - type: string
                - type: 'null'
                description: Decimal string like `"12.50"`. `null` if the token keeps amounts locked; see `encrypted`.
              currencyId:
                type: string
            required:
            - amount
            - currencyId
          - type: 'null'
        createdBy:
          type: string
          format: uuid
        updatedBy:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
        encrypted:
          description: The stored values, for tokens that keep amounts locked.
          type: object
          properties:
            amount:
              anyOf:
              - $ref: '#/components/schemas/EncryptedMoney'
              - type: 'null'
            transferAmount:
              anyOf:
              - $ref: '#/components/schemas/EncryptedMoney'
              - type: 'null'
            location:
              anyOf:
              - $ref: '#/components/schemas/EncryptedMoney'
              - type: 'null'
            originalAmount:
              anyOf:
              - $ref: '#/components/schemas/EncryptedMoney'
              - type: 'null'
          required:
          - amount
          - transferAmount
          - location
          - originalAmount
        deletedAt:
          type: string
          format: date-time
        expiresAt:
          type: string
          format: date-time
          description: After this it is gone for good.
      required:
      - id
      - workspaceId
      - type
      - seriesId
      - amount
      - currencyId
      - walletId
      - categoryId
      - tagIds
      - note
      - createdAt
      - timeZone
      - transferToWalletId
      - transferAmount
      - transferCurrencyId
      - location
      - original
      - createdBy
      - updatedBy
      - deletedAt
      - expiresAt
    Transaction:
      type: object
      properties:
        id:
          type: string
          format: uuid
        workspaceId:
          type: string
          format: uuid
        type:
          type: string
          enum:
          - expense
          - income
          - transfer
        seriesId:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
          description: Parent recurring series, or null for a standalone transaction.
        amount:
          anyOf:
          - type: string
          - type: 'null'
          description: Decimal string like `"12.50"`. `null` if the token keeps amounts locked; see `encrypted`.
        currencyId:
          type: string
        walletId:
          type: string
          format: uuid
        categoryId:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
        tagIds:
          type: array
          items:
            type: string
            format: uuid
        note:
          type: string
        createdAt:
          type: string
          format: date-time
        timeZone:
          anyOf:
          - type: string
          - type: 'null'
        transferToWalletId:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
        transferAmount:
          anyOf:
          - type: string
          - type: 'null'
          description: Decimal string like `"12.50"`. `null` if the token keeps amounts locked; see `encrypted`.
        transferCurrencyId:
          anyOf:
          - type: string
          - type: 'null'
        location:
          anyOf:
          - $ref: '#/components/schemas/Location'
          - type: 'null'
        original:
          anyOf:
          - type: object
            properties:
              amount:
                anyOf:
                - type: string
                - type: 'null'
                description: Decimal string like `"12.50"`. `null` if the token keeps amounts locked; see `encrypted`.
              currencyId:
                type: string
            required:
            - amount
            - currencyId
          - type: 'null'
        createdBy:
          type: string
          format: uuid
        updatedBy:
          anyOf:
          - type: string
            format: uuid
          - type: 'null'
        encrypted:
          description: The stored values, for tokens that keep amounts locked.
          type: object
          properties:
            amount:
              anyOf:
              - $ref: '#/components/schemas/EncryptedMoney'
              - type: 'null'
            transferAmount:
              anyOf:
              - $ref: '#/components/schemas/EncryptedMoney'
              - type: 'null'
            location:
              anyOf:
              - $ref: '#/components/schemas/EncryptedMoney'
              - type: 'null'
            originalAmount:
              anyOf:
              - $ref: '#/components/schemas/EncryptedMoney'
              - type: 'null'
          required:
          - amount
          - transferAmount
          - location
          - originalAmount
      required:
      - id
      - workspaceId
      - type
      - seriesId
      - amount
      - currencyId
      - walletId
      - categoryId
      - tagIds
      - note
      - createdAt
      - timeZone
      - transferToWalletId
      - transferAmount
      - transferCurrencyId
      - location
      - original
      - createdBy
      - updatedBy
    EncryptedMoney:
      type: object
      properties:
        ciphertext:
          type: string
          minLength: 1
          maxLength: 1024
        iv:
          type: string
          minLength: 1
          maxLength: 64
        algorithm:
          type: string
          const: AES-GCM
        keyVersion:
          type: integer
          exclusiveMinimum: 0
        keyId:
          type: string
          format: uuid
      required:
      - ciphertext
      - iv
      - algorithm
      - keyVersion
      description: An encrypted value (AES-256-GCM; `ciphertext` and `iv` in base64). Without `keyId` it is under your money key (Main workspace); with it, under that workspace key.
    Location:
      type: object
      properties:
        latitude:
          type: number
        longitude:
          type: number
        accuracyMeters:
          anyOf:
          - type: number
          - type: 'null'
      required:
      - latitude
      - longitude
      - accuracyMeters
  securitySchemes:
    apiToken:
      type: http
      scheme: bearer
      bearerFormat: rvr_...