Quickstart

Create a token, find your household, and read your first page of transactions in about five minutes.

This guide walks through reading your household's transactions and finishes with one optional write. You'll need a Penny account in a household with an active subscription, and jq if you want to pull IDs straight from the JSON output.

Create a token

In the Penny app, open Settings → API Tokens and create a token. Read only is enough until the last step. The full token is only shown once, so copy it before closing the screen and export it in your shell:

export PENNY_API_TOKEN="penny_pat_YOUR_TOKEN"

Find your household

Most endpoints are scoped to a household ID in the URL path. List the households you belong to:

curl https://api.penny.finance/v1/households \
  -H "Authorization: Bearer $PENNY_API_TOKEN"
200 response (abbreviated)
{
  "households": [
    {
      "id": "Hh4vK8pQ2sLm",
      "name": "Rivera Household",
      "currency": "USD",
      "timezone": "America/Los_Angeles",
      "role": "owner",
      "access_status": "available"
    }
  ]
}

Save the household id you want to work with (or grab the first one with jq):

export PENNY_HOUSEHOLD_ID=$(curl -fsS https://api.penny.finance/v1/households \
  -H "Authorization: Bearer $PENNY_API_TOKEN" | jq -r '.households[0].id')

List transactions

Fetch the household's transactions from the start of a month. Results come back newest first:

curl "https://api.penny.finance/v1/households/$PENNY_HOUSEHOLD_ID/transactions?start_date=2026-08-01&limit=1" \
  -H "Authorization: Bearer $PENNY_API_TOKEN"
200 response (abbreviated)
{
  "transactions": [
    {
      "id": "Tx3fJ9mS6vBa",
      "name": "Weekly groceries",
      "date": "2026-08-14",
      "amount": { "amount": "-54.20", "currency": "USD" },
      "pending": false,
      "account": { "id": "Ac7kP2mN9qRs", "name": "Everyday Checking" },
      "merchant": { "id": "Mr9dL3xT6bQa", "name": "Trader Joe's" },
      "category": {
        "id": "Ct5nR8wY1jFu",
        "name": "Groceries"
      },
      "tags": []
    }
  ],
  "daily_sums": [
    { "date": "2026-08-14", "amount": { "amount": "-54.20", "currency": "USD" } }
  ],
  "next_cursor": "eyJkYXRlIjogIjIwMjYtMDgtMTQiLCAidGEiOiAiMjAyNi0wOC0xNFQxNTozODowMCswMDowMCIsICJjYSI6ICIyMDI2LTA4LTE0VDE1OjQxOjI3KzAwOjAwIiwgImlkIjogIlR4M2ZKOW1TNnZCYSIsICJmaCI6ICI5YTMyYWMwMTA5MWQ5ODgyIn0=",
  "has_more": true
}

See the List Transactions reference for every field on the response. Amounts are decimal strings—negative for expenses, positive for income.

If you plan to run the optional write in Step 5, save the newest transaction's id:

export PENNY_TRANSACTION_ID=$(curl -fsS "https://api.penny.finance/v1/households/$PENNY_HOUSEHOLD_ID/transactions?start_date=2026-08-01&limit=1" \
  -H "Authorization: Bearer $PENNY_API_TOKEN" | jq -r '.transactions[0].id')

Page through results

While has_more is true, send next_cursor back as cursor with the same filters. Here's how to pull every transaction since the start of the month:

const headers = { Authorization: `Bearer ${process.env.PENNY_API_TOKEN}` }
const url = new URL(
  `/v1/households/${process.env.PENNY_HOUSEHOLD_ID}/transactions`,
  "https://api.penny.finance"
)
url.searchParams.set("start_date", "2026-08-01")

const transactions = []
while (true) {
  const response = await fetch(url, { headers })
  const page = await response.json()
  if (!response.ok) throw new Error(`${response.status} ${page.code}`)

  transactions.push(...page.transactions)
  if (!page.has_more) break
  url.searchParams.set("cursor", page.next_cursor)
}

Every paged endpoint follows this pattern. See pagination for page limits and lists that return everything in one page by default.

Make a change (optional)

These requests modify your real data. There is no sandbox.

Writes require a Read and write token and a member or owner role in the household (a read-only token returns 403 read_only_token).

Create a tag and save its id:

export PENNY_TAG_ID=$(curl -fsS -X POST "https://api.penny.finance/v1/households/$PENNY_HOUSEHOLD_ID/tags" \
  -H "Authorization: Bearer $PENNY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Shared" }' | jq -r '.id')
201 response
{
  "id": "Tg8qN1cK5rWd",
  "name": "Shared",
  "color": null,
  "transaction_count": 0
}

Now attach that tag to the transaction from Step 3:

curl -X POST "https://api.penny.finance/v1/households/$PENNY_HOUSEHOLD_ID/transactions/bulk-add-tags" \
  -H "Authorization: Bearer $PENNY_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d "{ \"transaction_ids\": [\"$PENNY_TRANSACTION_ID\"], \"tag_ids\": [\"$PENNY_TAG_ID\"] }"

The response includes the updated transaction in transactions (with the new tag in its tags array) and a skipped array for any IDs that couldn't be updated. Transactions that already had the tag count as successes.

To clean up the test tag afterward (which also removes it from the transaction):

curl -X DELETE "https://api.penny.finance/v1/households/$PENNY_HOUSEHOLD_ID/tags/$PENNY_TAG_ID" \
  -H "Authorization: Bearer $PENNY_API_TOKEN"

Next steps

  • Overview: authentication, household scope, pagination, and the money and date conventions.
  • Errors: the error format and every code the API returns.
  • Download the OpenAPI schema to import into an API tool or generate a client.

Last updated on

On this page