SpendRock Docs

Households

Everything a household owns is under /households/{householdId}/. Here's how to find the id, and why.

A household owns a budget. You can belong to several: your own personal household (created the first time you log in) plus any you've been invited to or created. Your token belongs to you, not to a household.

Everything a household owns is under it

A household's budgets, Categories, groups, transactions, recurring transactions, favorites, and suggestions all live under /households/{householdId}/:

# December's budget
curl -s "$SR_API/households/$SR_HH/months/2026-12" -H "Authorization: Bearer $SR_TOKEN"

# an expense
curl -s -X POST "$SR_API/households/$SR_HH/transactions" \
  -H "Authorization: Bearer $SR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"id":"01JA0000000000000000000000","type":"expense","amount":5420,"date":"2026-10-05","merchant":"Kroger","budget_month":"2026-10","splits":[]}'

A transaction, Category, group, or recurring transaction is always reached under its own household, too: /households/{householdId}/transactions/{transactionId}, never /transactions/{transactionId}.

There's no default household in the API. Every call about a household's data names it in its path, so a script can't quietly act on a different budget because your default changed.

Finding household IDs

GET /me lists every household you belong to (households, default first) and says which is your default (default_household_id). That's a good start for a script that works with one budget:

export SR_HH=$(curl -s "$SR_API/me" -H "Authorization: Bearer $SR_TOKEN" | jq -r .default_household_id)

GET /households lists them too, with your role (owner or member) and whether each is your personal household. Archived households are left out unless you pass include_archived=true. (Needs households:read.)

curl -s "$SR_API/households" -H "Authorization: Bearer $SR_TOKEN"

Your default is a suggestion

Your default household is a setting (you can pick a different one in the app). It decides what the app and website open to, not what the API acts on. A script that should always touch the same budget can keep that household's id.

403 and 404

  • If you aren't a current member of the household in the path, the call fails with 403 and the code not_a_member. Membership is checked on every request, so someone removed from a household loses access immediately.
  • A record that isn't in the household in the path is 404, even if it's in another household of yours. Naming one household never reaches another one's data.

Why it's in the path

  • It can't be forgotten. There's no header to leave off and no default to fall back to: the household is part of the address, and the generated clients require it.
  • It's self-describing. Logs, errors, and support see which household a request was about.
  • It's the same for AI agents. SpendRock's MCP server (coming) will take a household_id argument the same way, with no implied default, which matters most when an agent works across several households.

Members

A household can have up to 10 members, counting pending invites. Inviting past that, or accepting an invite into a full household, answers 422 household_full.

Managing households

With households:manage a token can do what you can do under Account → Households: create households, rename them (owner only), set your default, archive and unarchive, leave, transfer ownership (owner only), remove members (owner only), and send, revoke, accept, or decline invites. The rules are the app's rules. For example:

  • you can't leave or delete your only household (last_household)
  • your personal household can't be deleted (personal_household)
  • an owner must transfer ownership before leaving (owner_must_transfer)
  • only the owner can do owner things (not_owner)

See Errors for every code.

On this page