Skip to main content

Sidebar preferences and favorite accounts

Each member can customize the sidebar of a workspace: the order and visibility of its menu items, the order of its two sections, and which accounts are favorites. These choices belong to the signed-in member, are stored on the server so they follow the member across devices, and are never shown to other members. Two members of one shared workspace each have their own layout and their own favorites.

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

OperationMethod and pathSuccess
get-sidebar-preferencesGET /me/sidebar-preferences200 with the layout
put-sidebar-preferencesPUT /me/sidebar-preferences200 with the saved layout
reset-sidebar-preferencesDELETE /me/sidebar-preferences204
list-favorite-accountsGET /me/favorite-accounts200 with accountIds
favorite-accountPUT /accounts/{accountID}/favorite204
unfavorite-accountDELETE /accounts/{accountID}/favorite204
get-display-preferencesGET /me/display-preferences200 with the display preferences
update-display-preferencesPATCH /me/display-preferences200 with the resulting display preferences

Who can use it​

The operations always act on the authenticated member. None takes a user ID, so there is no way to read or change another member's layout or favorites. Any active member of the workspace can use them, including viewers: this is personal interface state, not workspace data, so it needs no editing role. A caller who is not a member of the workspace gets 404, as for every other workspace operation.

No scope covers these operations, so a personal access token is refused, the same as for your profile. See What no scope can reach. They send no webhooks and write no audit log entries.

The sidebar layout​

{
"version": 1,
"sectionOrder": ["menu", "accounts"],
"favoritesAtTop": true,
"items": [
{ "key": "transactions", "hidden": false },
{ "key": "calendar", "hidden": true }
],
"isDefault": false
}
FieldMeaning
versionThe layout format. Always 1.
sectionOrderThe order of the two sidebar sections. A permutation of menu and accounts: each exactly once.
favoritesAtTopWhether favorite accounts are listed above the account-type groups.
itemsThe menu items in display order (array order is the order), each with a hidden flag.
isDefaultRead-only. true when the member has saved nothing and these are the defaults. Ignored on save, so a GET response can be sent straight back to PUT.

Defaults​

When a member has saved nothing, GET returns isDefault: true with sectionOrder ["menu", "accounts"], favoritesAtTop true and an empty items list. An empty list means "use the app's own order, every item visible". Reading never stores anything.

Item keys​

The app owns the list of menu items, so the API does not check key against a catalog: a key it has never heard of is accepted and returned unchanged. That lets a newer app save items an older server doesn't know about, and lets items added to the product later appear for everyone in their default position, visible, without a migration. A client should therefore ignore stored keys it doesn't render and treat any item it renders that isn't stored as visible, in its default position.

Hiding an item only removes it from the sidebar. The page itself stays reachable by link, URL and search.

Validation​

PUT replaces the whole layout and creates it on first save. It returns 422 and stores nothing when the layout is invalid. The response body follows the standard validation error shape. The code is VALIDATION_ERROR when the request body breaks the published schema, and VALIDATION_FAILED when it passes the schema but breaks one of the two rules below.

VALIDATION_ERROR (the schema):

  • version is not 1;
  • sectionOrder does not have exactly two entries;
  • items is missing or has more than 64 entries;
  • an item key is empty, longer than 64 characters or contains anything other than letters, digits, hyphens and underscores (A-Za-z0-9_-).

VALIDATION_FAILED:

  • sectionOrder is not menu and accounts, each once;
  • two items share a key.

Resetting​

DELETE /me/sidebar-preferences removes the saved layout, so the next GET returns the defaults. It succeeds when nothing is saved. It does not touch favorite accounts.

Favorite accounts​

GET /me/favorite-accounts returns the member's favorites in this workspace, oldest favorite first:

{ "accountIds": ["acct_...", "acct_..."] }

Closed accounts stay in the list; whether to show them is up to the app (the Budget Thing sidebar never shows closed accounts).

PUT and DELETE on /accounts/{accountID}/favorite add and remove one account. Both are idempotent: favoriting a favorite, or unfavoriting an account that isn't one, succeeds with 204. An account that doesn't exist in this workspace, including one that belongs to another workspace, returns 404.

Favorites are removed automatically when the account is deleted, and a member's layout and favorites are removed when they leave the workspace or are removed from it. They are not part of a workspace backup or a workspace clone: a restored or cloned workspace starts every member with the defaults.

Display preferences​

GET /me/display-preferences returns the member's other personal display choices for the workspace. Today there is one:

{ "showMetadata": false }
FieldMeaning
showMetadataWhether metadata key/value pairs are shown in the app for this member. false when the member has never set it.

PATCH /me/display-preferences takes the same object with any of its fields and changes only the fields it names; an empty body changes nothing. It returns the resulting preferences. The same rules as for the sidebar apply: the preference is the authenticated member's own, any active member including viewers can set it, another member can neither read nor change it, it is kept per workspace, and it is removed when the member leaves or is removed. It is not part of a backup or a clone. Resetting the sidebar layout does not change it.