Tags

Create Tag

POST
/v1/households/{household_id}/tags

Creates a household tag you can attach to transactions alongside their category.

The name must be unique among active household tags. Pass a hex color or null for no custom color.

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 active tags, ignoring case.

Length1 <= length <= 255
color?|

Display color as a #RRGGBB hex string. The format is not validated beyond the 7-character limit. Send null for a tag with no color.

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/tags" \  -H "Authorization: Bearer $PENNY_API_TOKEN" \  -H "Content-Type: application/json" \  --data-raw '{  "name": "Shared"}'
{  "id": "Tg8qN1cK5rWd",  "name": "Shared",  "color": "#6D5BD0",  "transaction_count": 12}