Create Category
Creates a household category for income, expense, or transfer transactions.
Name and emoji must each be unique among active household categories. Pass group_id to place it in a group (the group's type then determines the category's type), or null to leave it ungrouped.
Authorization
PersonalApiToken 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
ID of the household that owns the resource. GET /v1/households lists the households you can access.
Request Body
application/json
Display name. Must be unique among the household's active categories, ignoring case.
1 <= length <= 255Emoji shown next to the name. Must be unique among the household's active categories.
1 <= length <= 50Kind of money movement the category is for. Transactions in a transfer category are left out of income and spending reports. Ignored when group_id is set, because a grouped category always takes its group's group_type.
Value in
- "income"
- "transfer"
- "expense"
Group the category belongs to. Send null for an ungrouped category, which on an update removes the category from its current group. Omitting it means no group on create and keeps the current group on an update.
Response Body
application/json
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/categories" \ -H "Authorization: Bearer $PENNY_API_TOKEN" \ -H "Content-Type: application/json" \ --data-raw '{ "name": "Garden supplies", "emoji": "🪴", "category_type": "expense"}'{ "id": "Ct2gK8mH6zRs", "name": "Garden supplies", "emoji": "🪴", "category_type": "expense", "group_id": null}