Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/akevalion/life_cost/llms.txt

Use this file to discover all available pages before exploring further.

Return the most recent money transfers for the authenticated user’s currently active wallet, ordered by created_at descending (newest first). Each item in the response array includes the full tag list and the display name of the user who created the transfer, making this endpoint suitable for feeding activity feeds and dashboards.
The Life Cost frontend typically calls this endpoint with limit=5 to populate the recent-transactions widget. Pass any positive integer to control the result count. If you pass a negative number the server silently falls back to a limit of 10.

Endpoint

GET /last_money_transfers/<limit>

Authentication

Required. The request must be made with an active session cookie obtained through the Google OAuth login flow.

Path Parameters

limit
integer
required
The maximum number of transfers to return. Must be a non-negative integer. If a negative value is provided the server substitutes 10. The frontend commonly uses 5.

Response

An array of transfer objects. Each object has the following shape.
id
integer
The unique identifier of the transfer.
description
string
Human-readable description of the transfer.
amount
float
Transfer amount. Negative values are expenses; positive values are income.
created_at
string
ISO 8601 timestamp of when the transfer was created (UTC).
modifed_at
string
ISO 8601 timestamp of the last modification (UTC). Note: the field name is spelled modifed_at (single i) in the database schema and response.
tags
array
Array of category/tag objects associated with this transfer.
created_by
string
The username of the User who created the transfer.

Example Request

curl -X GET https://your-app.example.com/last_money_transfers/5 \
  -H "Cookie: session=<your-session-cookie>"

Example Response

[
  {
    "id": 42,
    "description": "Groceries",
    "amount": -35.50,
    "created_at": "2024-01-15T10:30:00",
    "modifed_at": "2024-01-15T10:30:00",
    "tags": [
      {"id": 3, "name": "food"}
    ],
    "created_by": "Jane Smith"
  },
  {
    "id": 41,
    "description": "Monthly salary",
    "amount": 3200.00,
    "created_at": "2024-01-01T09:00:00",
    "modifed_at": "2024-01-01T09:00:00",
    "tags": [
      {"id": 7, "name": "income"}
    ],
    "created_by": "Jane Smith"
  }
]

Error Cases

StatusCondition
302 FoundThe user is not authenticated.
404 Not FoundThe path parameter limit is not a valid integer (Flask routing rejects the request).

Build docs developers (and LLMs) love