Categories

Create Category Group

POST
/v1/households/{household_id}/category-groups

Creates a named category group for income, expense, or transfer categories.

The group name must be unique within the household. Assign categories to it using the category create or update endpoint; creating the group does not create categories.

Authorization

PersonalApiToken
AuthorizationBearer <token>

Personal API token (penny_pat_…). Paste only the token; the Bearer prefix is added automatically. Read-only tokens only allow read requests, and read/write tokens follow your current household membership and role. See https://penny.finance/docs/api#authentication.

In: header

Path Parameters

household_id*string

ID of the household that owns the resource. GET /v1/households lists the households you can access.

Request Body

application/json

name*string

Display name. Must be unique among the household's category groups, ignoring case.

Length1 <= length <= 255
group_type*CategoryType

Type given to every category placed in the group: income, expense, or transfer. It cannot be changed after the group is created.

Value in

  • "income"
  • "transfer"
  • "expense"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.penny.finance/v1/households/Hh4vK8pQ2sLm/category-groups" \  -H "Authorization: Bearer $PENNY_API_TOKEN" \  -H "Content-Type: application/json" \  --data-raw '{  "name": "Everyday Expenses",  "group_type": "expense"}'
{  "id": "Cg2mV7pL4zXe",  "name": "Everyday Expenses",  "group_type": "expense"}