Skip to main content

Goal trackers

A goal is a category whose funding target has an end to fill towards: a balance target ("reach $5,000") or a by_date target ("save $5,000 by August"). Repeating targets (refill and contribution) are not goals, because they ask for money again every period. The Reports page shows each goal as a tracker drawn from a template: a set of cells that fill as the goal does. Budget Thing ships starter templates (grids of boxes, bubbles, hearts or stars, a progress bar, a numbered checklist, and illustrated designs), and each member picks one per goal.

All paths are under /v1/workspaces/{workspaceID}.

OperationMethod and pathSuccess
get-goal-trackers-reportGET /reports/goal-trackers200 with the goals
list-tracker-templatesGET /tracker-templates200 with the templates' metadata
get-tracker-templateGET /tracker-templates/{templateID}200 with one template and its manifest
list-goal-tracker-themesGET /me/goal-tracker-themes200 with templates and the deprecated themes
set-goal-tracker-themePUT /me/goal-tracker-themes/{categoryID}200 with the saved choice
reset-goal-tracker-themeDELETE /me/goal-tracker-themes/{categoryID}204

Who can use it​

Any active member of the workspace can use all six operations, including viewers. A caller who isn't a member gets 404, as for every other workspace operation.

The report and the two template reads need the reports:read scope when called with a personal access token. The three operations that save a member's choice are personal interface state, like your sidebar layout: no scope covers them, so a personal access token is refused. See What no scope can reach.

AI assistants can read the report through the get_goal_trackers_report MCP tool. The template and choice operations have no MCP tool.

None of the operations sends webhooks or writes audit log entries.

Debt payoff trackers use the same templates and options for a debt in the Debt Center and for the whole debt-free journey. They have their own read, get-debt-trackers, because debt balances need debt:read and a plan with the Debt Center, not reports:read. See Debt trackers.

The goal trackers report​

GET /api/v1/workspaces/wks_…/reports/goal-trackers
{
"period": { "startDate": "2026-11-01", "endDate": "2026-11-30" },
"goals": [
{
"categoryId": "cat_…",
"categoryName": "Vacation",
"groupId": "cat_…",
"groupName": "Savings",
"available": { "minor": 30000, "display": "$300.00" },
"progressPercent": 25,
"reached": false,
"progress": { "minor": 30000, "display": "$300.00" },
"template": { "id": "builtin:hearts", "options": { "cells": 50 } },
"theme": "hearts",
"targetStatus": {
"hasTarget": true,
"targetType": "by_date",
"recurrenceKind": "none",
"amount": { "minor": 120000, "display": "$1,200.00" },
"requiredThisPeriod": { "minor": 10000, "display": "$100.00" },
"assignedThisPeriod": { "minor": 0, "display": "$0.00" },
"remainingToTarget": { "minor": 10000, "display": "$100.00" },
"satisfied": false,
"overallRemaining": { "minor": 90000, "display": "$900.00" },
"occurrences": 0,
"dueDate": "2027-08-31",
"periodsRemaining": 9
}
},
{
"categoryId": "cat_…",
"categoryName": "Emergency fund",
"available": { "minor": 320000, "display": "$3,200.00" },
"progressPercent": 64,
"reached": false,
"progress": { "minor": 320000, "display": "$3,200.00" },
"template": { "id": "builtin:boxes", "options": {} },
"theme": "boxes",
"targetStatus": {
"hasTarget": true,
"targetType": "balance",
"recurrenceKind": "none",
"amount": { "minor": 500000, "display": "$5,000.00" },
"requiredThisPeriod": { "minor": 180000, "display": "$1,800.00" },
"assignedThisPeriod": { "minor": 0, "display": "$0.00" },
"remainingToTarget": { "minor": 180000, "display": "$1,800.00" },
"satisfied": false,
"overallRemaining": { "minor": 180000, "display": "$1,800.00" },
"occurrences": 0,
"periodsRemaining": 0
}
}
],
"recurringTargetCount": 3
}
FieldMeaning
periodThe budget period the workspace is in today. Every "this period" figure in targetStatus refers to it.
goalsEvery goal, in display order (see below). An empty array when there are none.
goals[].categoryId, categoryNameThe goal's category.
goals[].groupId, groupNameThe category's group. Absent for a category that isn't in a group.
goals[].availableThe category's available balance now. Can be negative (overspent) or more than the target amount.
goals[].progressPercentHow full the goal is: available as a percentage of the target amount, rounded down, and kept between 0 and 100. It is 100 only when the goal is reached, so 99.9% reads as 99.
goals[].reachedtrue when available is at least the target amount, that is when targetStatus.overallRemaining is zero. A reached goal stays in the list until its target is changed or removed.
goals[].progressWhat the tracker draws as filled: the amount saved towards the target, the figure progressPercent is taken from. Never negative and never more than the target amount (targetStatus.amount). It equals the target amount only when reached is true; a goal that isn't reached is at most one minor unit short of it, so a tracker is never drawn complete before the goal is. See Progress and the tracker invariants.
goals[].templateThe caller's tracker for this goal: the template id and the caller's options for it. Personal to the caller. When they haven't chosen one it is builtin:boxes with empty options.
goals[].themeDeprecated, use template. The v1 style: the starter's name when template.id is one of builtin:boxes, builtin:bubbles, builtin:hearts or builtin:stars, otherwise boxes. Still returned for clients that predate templates.
goals[].targetStatusThe target and its position this period. It is the same object, with the same meanings, as targetStatus on the planning and funding screens, calculated the same way, so the figures always agree. targetType is always balance or by_date. For a by-date goal, requiredThisPeriod is this period's installment, dueDate is the date and periodsRemaining counts budget periods including this one.
recurringTargetCountHow many categories have a repeating target. They aren't listed, but the count lets a client tell "no targets at all" apart from "only repeating targets".

Hidden (archived) categories, category groups and system categories are never listed or counted.

Order​

Goals that aren't reached come first. Among them, by-date goals come first, soonest dueDate first, then balance goals by progressPercent, highest first. Reached goals come last. Ties are ordered by category name.

Tracker templates​

A template is only a picture: a set of cells, the order they fill in, and how the one partly filled cell is drawn. It never knows what it tracks, so the same template draws a savings goal today and a debt payoff later. What it tracks comes from the goal: the report's progress and targetStatus.amount are the figures a client fills the cells from.

There are two kinds:

  • svg: drawn art plus a list of cells, each naming a shape in the SVG.
  • parametric: no art. A few settings (a grid, a progress bar, or a numbered checklist) that the client turns into cells.

Starters ship with Budget Thing and are the same in every workspace. Their ids are builtin:<slug>. The four styles that predate templates keep their names: builtin:boxes, builtin:bubbles, builtin:hearts and builtin:stars, so nobody's tracker changed when templates arrived. A starter's cells never change under its id: a visual change (colors, line work) raises its builtinRevision, and anything that would reshuffle a member's filled cells gets a new id. A starter that is no longer offered gets retired: true; it stays readable and keeps drawing for members who chose it.

List templates​

GET /tracker-templates
{
"templates": [
{
"id": "builtin:boxes",
"origin": "builtin",
"kind": "parametric",
"group": "simple",
"cellCount": 10,
"contentSha256": "9f2c…",
"builtinRevision": 1,
"retired": false
}
]
}

Metadata only, so a picker doesn't download every manifest. The list holds every starter, retired ones included, ordered by group (simple, designs, debt) and then by id. cellCount is the number of cells before a member's density option: the SVG's cells, or the generator's count (a bar's segments). contentSha256 changes whenever anything a client draws changes, so it can key a cache. Starters have no name field: show a localized name keyed by id. Workspace templates will carry their own name. Hide templates where retired is true from a picker.

Get a template​

GET /tracker-templates/builtin:coin-jar

Returns the same metadata plus manifest and, for an svg template, svg. The ETag header is the contentSha256 in quotes. The response is 404 for an id that isn't a starter (and, for workspace ids, isn't a template of this workspace).

The SVG is returned as a JSON string, never as image/svg+xml. Render it through your own sanitizer and paint the cells yourself: a template's cells are filled with the colors you choose, and a cell's own fill and stroke in the SVG are ignored. Shapes that aren't cells (an outline, a flag) keep their paint.

The template format​

Both kinds share one manifest, formatVersion 1.

{
"formatVersion": 1,
"kind": "svg",
"cells": [
{
"shapeId": "coin-01",
"weight": { "kind": "share", "units": 1 },
"order": 0,
"milestone": false,
"label": null,
"bbox": [45, 195, 22, 22]
}
],
"fillOrder": "sequence",
"partial": { "mode": "clip", "direction": "bottom_up" },
"labels": "none",
"currency": null,
"generator": null
}
{
"formatVersion": 1,
"kind": "parametric",
"cells": [],
"fillOrder": "sequence",
"partial": { "mode": "clip", "direction": "bottom_up" },
"labels": "amount",
"currency": null,
"generator": { "type": "grid", "shape": "heart", "count": 10, "columns": 10, "gap": 0.15 }
}
FieldMeaning
formatVersion1. A client that gets a version it doesn't know should draw builtin:boxes and never guess. Additive optional fields don't raise it.
kindsvg or parametric.
cellssvg: the cells, 1 to 300, required. parametric: optional overrides of generated cells, up to 200 (see below).
fillOrdersequence (by order), path (the same, a hint to draw the route), random, or largest (biggest cell first, ties by order).
partialHow the one partly filled cell is drawn. mode is clip, opacity or none (a cell shows filled only once it is full). direction is bottom_up, left_right or radial.
labelsWhat to draw on each cell by default: none, amount, index or name.
currencyISO 4217 code of the amounts in cells. Required when any cell has an amount weight.
colorsOptional default filled, empty and outline colors as #RRGGBB.
generatorparametric only; must be null or absent for svg.

A cell has:

FieldMeaning
shapeIdsvg: the id of a path, rect, circle, ellipse, polygon, polyline or use element in the SVG; unique in the template. parametric: the generated cell it overrides, g0 to g{N-1}.
weight{ "kind": "share", "units": 1 } (a relative share, 1 to 1,000) or { "kind": "amount", "minor": 5000 } (a fixed amount in the template's currency, greater than 0).
orderThe cell's place in the fill sequence. Across all the template's cells the values are each of 0 to N-1 exactly once.
milestoneOptional. Draw the cell as a milestone.
labelOptional name, at most 40 characters, used as the cell's name in editors and for screen readers.
bboxsvg only. [x, y, width, height] of the shape in the SVG's viewBox units, computed by the server and used to clip the partly filled cell. Read-only.

A generator is one of:

TypeSettings
gridshape (square, rounded, circle, heart, star, hexagon), count (1 to 200), columns (1 to 50 or "auto"), gap and cornerRadius (0 to 0.5 of the cell size), milestoneEvery (2 to 100).
barsegments (1 to 100; 1 is a continuous bar), orientation (horizontal or vertical), gap, milestoneEvery.
checklistcount (1 to 100), columns (1 to 50 or "auto"), numbering (index or amount), milestoneEvery.

Generated cells are g0, g1, and so on, one share each, in row-major order. A parametric template may list cells to override a generated cell's weight, order, milestone or label by id. Cells you don't list keep their default order, so the listed and generated values together are still each of 0 to N-1 once.

The server rejects a manifest with 422 and names the field. Unknown keys are rejected everywhere.

How cells map onto the goal​

A client fills cells from three numbers: the total T (targetStatus.amount), the progress P (progress) and reached, all in the workspace's minor unit. These rules are part of the format, so every client draws the same tracker.

  1. Capacities. amount cells take their fixed amount. share cells split the rest, max(T − fixed, 0), in proportion to units, by the largest remainder method in whole currency units (a major unit is 100 minor units in USD, 1 in JPY): each cell gets floor(whole units × units ÷ all units), then the leftover whole units go one at a time to the cells with the largest remainders, ties to the earlier order. The cents of a total such as $100.50 go to the last share cell in the fill sequence. If there are fewer whole units than share cells ($5 over 25 cells), the same method runs in minor units so no cell is empty. The share capacities add up to exactly the rest, so $100 over three equal cells is $34, $33 and $33.
  2. Sequence. Cells fill in fillOrder. For random, the cells are shuffled with a seeded Fisher-Yates shuffle (i from n-1 down to 1, swapping with j = bounded(i+1)) using PCG32 (pcg32_srandom(seed, 54), the reference implementation by M. E. O'Neill). The seed is the first 8 bytes, as a big-endian unsigned integer, of SHA-256(templateId + subjectKind + subjectId), where the subject is the goal's category ID and subjectKind is category_goal. The template stores no seed, so one goal always fills in the same pattern, two goals using one template differ, and a copy of a template under a new id differs from its original. The order depends only on the seed and the cell count, never on T or P, so cells don't jump around as money moves.
  3. Fill. Walk the cells in sequence with a running offset. A cell is full when P reaches its end, empty when P hasn't reached its start, and otherwise partly filled by (P − start) ÷ capacity, drawn in steps of 1/100. At most one cell is partial. A zero-capacity cell counts as full once P ≥ its start and P > 0. With partial.mode none a cell shows filled only when it is full.

When fixed amounts don't add up to T, the share cells absorb the difference. If there are no share cells and the amounts add up to less than T, every cell can fill while the goal still needs more: a client shows "still to go" and doesn't show the goal as reached until reached is true. If the amounts add up to more than T, cells that start at or beyond T can never fill. If the template's currency differs from the workspace currency, fixed amounts are treated as relative shares.

Nothing per cell is stored. Capacities and fill are recomputed from the current T and P, so changing a target resizes the cells and never needs a migration.

Progress and the tracker invariants​

Every tracker is a template applied to a subject that supplies T, P and reached. Savings goals (category_goal) are the subject today. For every subject the server guarantees:

  • 0 ≤ P ≤ T.
  • P = T exactly when reached is true. When rounding to minor units would make P equal T before the goal is really reached, P is held one minor unit short. This is the same rule as progressPercent, which reads 99 until the goal is reached.

For a savings goal, T is the target amount and P is the target amount minus targetStatus.overallRemaining, so it is the same number the Plan and funding screens use.

Tracker choices​

Each member picks a template per goal. The choice is personal: two members of one shared workspace each have their own, and neither sees the other's. It is stored on the server, so it follows the member across devices. A goal without a choice uses builtin:boxes.

A choice is a template id and optional options. Options are the member's density for a parametric template; an svg template has a fixed set of cells and ignores them:

OptionMeaning
cellsDraw this many equal cells, 1 to 100. It replaces a grid's count, a bar's segments or a checklist's count.
cellAmountMinorGive every cell this amount in the workspace's minor unit, 1 to 1,000,000,000,000 (clients send whole currency units). The tracker draws ceil(T ÷ amount) cells, each of the amount, with the last cell holding the rest. If that would be more than 100 cells, which a later change of the target can cause, the tracker draws 100 equal cells instead.

Set at most one. A member's density is capped at 100 cells, as the original trackers were, so each cell is at least a hundredth of the goal. A template can define more cells itself (up to 200 for a grid, 300 for an SVG); the cap is on the member's choice. A parametric template whose cells are overridden has a fixed count, and options don't change it.

A choice can never point at nothing. If a starter is removed from Budget Thing or a template is deleted, the goal reads as builtin:boxes.

List​

GET /me/goal-tracker-themes
{
"templates": {
"cat_…": { "id": "builtin:hearts", "options": { "cells": 50 } },
"cat_…": { "id": "builtin:coin-jar", "options": {} }
},
"themes": {
"cat_…": "hearts",
"cat_…": "boxes"
}
}

templates maps a category ID to its template and options. A category that isn't listed uses builtin:boxes. themes is the deprecated v1 form of the same choices. The map can name a category whose target isn't currently a goal (for example after the target was changed to a repeating one); the choice applies again if it becomes a goal. When a category is deleted, its entry goes with it.

The report already carries each goal's template, so a client only needs this list when it shows choices outside the report.

Set​

PUT /me/goal-tracker-themes/cat_…
{ "templateId": "builtin:hearts", "options": { "cells": 50 } }

Saves the caller's choice for the category, replacing any earlier choice and its options, and returns it:

{
"categoryId": "cat_…",
"template": { "id": "builtin:hearts", "options": { "cells": 50 } },
"theme": "hearts"
}

Omit options for the template's own cell count. The category must be a category of this workspace and not a group; otherwise the response is 404. It doesn't need a target yet. Saving the same choice twice is fine.

StatusWhen
404The category isn't a non-group category of this workspace, or templateId isn't a starter or a template of this workspace. An id from another workspace looks the same as one that doesn't exist.
422options has both fields, a value out of range (cells 1 to 100, cellAmountMinor 1 to 1,000,000,000,000) or an unknown key; or neither templateId nor theme is sent, or both are.

Deprecated: theme. { "theme": "hearts" } still works. It is the same as sending templateId builtin:hearts with no options, and any other value than boxes, bubbles, hearts or stars is rejected with 422. Send either theme or templateId, not both. New clients should send templateId. theme is deprecated and kept for clients that predate templates; any removal will be announced in the API changelog first.

Reset​

DELETE /me/goal-tracker-themes/cat_…

Removes the caller's choice and options for the category, so builtin:boxes applies again. It succeeds when nothing is saved, and returns 404 for a category outside the workspace.

JSON Schema​

The manifest is validated against this JSON Schema (draft 2020-12), which describes both kinds. It covers the shape of the data; the server also checks what a schema can't express: shape ids that exist in the SVG, generated cell ids that exist, and order values that are each of 0 to N-1 once.

Tracker template manifest, format v1
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Budget Thing tracker template manifest, format v1",
"description": "The manifest of a tracker template. Both kinds (svg and parametric) share it. The schema covers the shape of the data; the server also checks rules a schema can't express (unique and contiguous order values, shape ids that exist in the SVG, generated cell ids that exist) and rejects the template with a 422 naming the field.",
"type": "object",
"additionalProperties": false,
"required": ["formatVersion", "kind", "fillOrder", "partial", "labels"],
"properties": {
"formatVersion": { "const": 1, "description": "The format version. Only 1 exists." },
"kind": { "enum": ["svg", "parametric"] },
"cells": {
"type": "array",
"description": "svg: the cells, 1 to 300, required. parametric: optional per-cell overrides of generated cells (g0 to g{N-1}); up to 200."
},
"fillOrder": { "enum": ["sequence", "path", "random", "largest"] },
"partial": { "$ref": "#/$defs/partial" },
"labels": {
"enum": ["none", "amount", "index", "name"],
"description": "What to draw on each cell by default."
},
"currency": {
"type": ["string", "null"],
"pattern": "^[A-Z]{3}$",
"description": "ISO 4217 code. Required when any cell has an amount weight."
},
"colors": { "$ref": "#/$defs/colors" },
"generator": {
"type": ["object", "null"],
"description": "parametric only: the generator settings. Must be null or absent for svg."
}
},
"allOf": [
{
"if": { "properties": { "kind": { "const": "svg" } }, "required": ["kind"] },
"then": {
"required": ["cells"],
"properties": {
"cells": {
"type": "array",
"minItems": 1,
"maxItems": 300,
"items": { "$ref": "#/$defs/svgCell" }
},
"generator": { "type": "null" }
}
}
},
{
"if": { "properties": { "kind": { "const": "parametric" } }, "required": ["kind"] },
"then": {
"required": ["generator"],
"properties": {
"cells": {
"type": "array",
"maxItems": 200,
"items": { "$ref": "#/$defs/overrideCell" }
},
"generator": { "$ref": "#/$defs/generator" }
}
}
}
],
"$defs": {
"partial": {
"type": "object",
"additionalProperties": false,
"required": ["mode", "direction"],
"properties": {
"mode": { "enum": ["clip", "opacity", "none"] },
"direction": { "enum": ["bottom_up", "left_right", "radial"] }
}
},
"colors": {
"type": "object",
"additionalProperties": false,
"properties": {
"filled": { "$ref": "#/$defs/hexColor" },
"empty": { "$ref": "#/$defs/hexColor" },
"outline": { "$ref": "#/$defs/hexColor" }
}
},
"hexColor": { "type": "string", "pattern": "^#[0-9A-Fa-f]{6}$" },
"label": { "type": ["string", "null"], "maxLength": 40 },
"weight": {
"type": "object",
"required": ["kind"],
"properties": { "kind": { "enum": ["share", "amount"] } },
"allOf": [
{
"if": { "properties": { "kind": { "const": "share" } }, "required": ["kind"] },
"then": {
"additionalProperties": false,
"required": ["units"],
"properties": {
"kind": true,
"units": { "type": "integer", "minimum": 1, "maximum": 1000 }
}
}
},
{
"if": { "properties": { "kind": { "const": "amount" } }, "required": ["kind"] },
"then": {
"additionalProperties": false,
"required": ["minor"],
"properties": {
"kind": true,
"minor": { "type": "integer", "minimum": 1, "maximum": 1000000000000 }
}
}
}
]
},
"svgCell": {
"type": "object",
"additionalProperties": false,
"required": ["shapeId", "weight", "order"],
"properties": {
"shapeId": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_.-]{0,63}$" },
"weight": { "$ref": "#/$defs/weight" },
"order": { "type": "integer", "minimum": 0, "maximum": 299 },
"milestone": { "type": "boolean" },
"label": { "$ref": "#/$defs/label" },
"bbox": {
"type": "array",
"minItems": 4,
"maxItems": 4,
"items": { "type": "number" },
"description": "Server-derived [x, y, width, height] in viewBox units. Read-only: a value sent by a client is replaced."
}
}
},
"overrideCell": {
"type": "object",
"additionalProperties": false,
"required": ["shapeId", "weight", "order"],
"properties": {
"shapeId": { "type": "string", "pattern": "^g(0|[1-9][0-9]*)$" },
"weight": { "$ref": "#/$defs/weight" },
"order": { "type": "integer", "minimum": 0, "maximum": 199 },
"milestone": { "type": "boolean" },
"label": { "$ref": "#/$defs/label" }
}
},
"columns": {
"oneOf": [
{ "type": "integer", "minimum": 1, "maximum": 50 },
{ "const": "auto" }
]
},
"fraction": { "type": "number", "minimum": 0, "maximum": 0.5 },
"generator": {
"type": "object",
"required": ["type"],
"properties": { "type": { "enum": ["grid", "bar", "checklist"] } },
"allOf": [
{
"if": { "properties": { "type": { "const": "grid" } }, "required": ["type"] },
"then": { "$ref": "#/$defs/gridGenerator" }
},
{
"if": { "properties": { "type": { "const": "bar" } }, "required": ["type"] },
"then": { "$ref": "#/$defs/barGenerator" }
},
{
"if": { "properties": { "type": { "const": "checklist" } }, "required": ["type"] },
"then": { "$ref": "#/$defs/checklistGenerator" }
}
]
},
"gridGenerator": {
"type": "object",
"additionalProperties": false,
"required": ["type", "shape", "count", "columns"],
"properties": {
"type": true,
"shape": { "enum": ["square", "rounded", "circle", "heart", "star", "hexagon"] },
"count": { "type": "integer", "minimum": 1, "maximum": 200 },
"columns": { "$ref": "#/$defs/columns" },
"gap": { "$ref": "#/$defs/fraction" },
"cornerRadius": { "$ref": "#/$defs/fraction" },
"milestoneEvery": { "type": "integer", "minimum": 2, "maximum": 100 }
}
},
"barGenerator": {
"type": "object",
"additionalProperties": false,
"required": ["type", "segments"],
"properties": {
"type": true,
"segments": { "type": "integer", "minimum": 1, "maximum": 100 },
"orientation": { "enum": ["horizontal", "vertical"] },
"gap": { "$ref": "#/$defs/fraction" },
"milestoneEvery": { "type": "integer", "minimum": 2, "maximum": 100 }
}
},
"checklistGenerator": {
"type": "object",
"additionalProperties": false,
"required": ["type", "count"],
"properties": {
"type": true,
"count": { "type": "integer", "minimum": 1, "maximum": 100 },
"columns": { "$ref": "#/$defs/columns" },
"numbering": { "enum": ["index", "amount"] },
"milestoneEvery": { "type": "integer", "minimum": 2, "maximum": 100 }
}
}
}
}

Leaving a workspace​

A member's tracker choices in a workspace are deleted when they leave it, are removed from it, or delete their account. Choices aren't included in workspace backups or clones.