Covered clients and cross-workspace queries

Read banks, feeds, integrations and jobs across every client you cover, from one parent workspace, with the scope=family parameter.

5 min read

On this page

With BankSync for Advisors, a client you cover gets a workspace of their own under yours, billed to your plan. This guide explains how to query data across every client you cover with the scope=family parameter. The API calls these workspaces portals: the field, parameter and tool names below use that word.

What a covered client's workspace is#

A covered client's workspace (a portal, in the API) is a child workspace under your parent workspace. Each has its own:

  • Bank connections (the client's own, isolated from yours)
  • Members (the client themselves, plus anyone they invite if you allow it)
  • Feeds, integrations, jobs
  • Soft-delete + 30-day cleanup lifecycle

Covered clients roll up to your plan: one subscription pays for the parent and every covered client under it. Covering clients needs Professional, Business or Enterprise, with no per-client charge; every bank a covered client connects counts against the parent plan's bank connection quota. The parent's owner and admins have owner or admin authority on every covered client, with no separate invitation. Clients who pay for themselves share their own workspace with you instead; list those with GET /v1/clients.

Who can use cross-workspace queries

Family-scoped reads require admin or owner role on the parent workspace. Clients you've invited into a covered workspace cannot use them: they only see their own workspace's data.

The scope query parameter#

Every list endpoint accepts an optional scope query parameter that controls what set of workspaces the query operates over.

ValueReturnsRequires
self (default)Just this workspace's rowsThe endpoint's standard role
familyThis workspace + every live covered client. Each row gains workspaceId and portalAdmin+, top-level workspaces only

Endpoints supporting scope=family today:

  • GET /v1/banks
  • GET /v1/feeds
  • GET /v1/integrations
  • GET /v1/jobs (internal API only for now)

Example: list every bank across your covered clients#

Your parent-workspace API key works for this. There is no need to mint a separate key per client.

Shell
curl -X GET "https://api.banksync.io/v1/banks?scope=family" \  -H "X-API-Key: bsk_your_api_key_here" \  -H "Content-Type: application/json"
JAVASCRIPT
const response = await fetch('https://api.banksync.io/v1/banks?scope=family', {  headers: {    'X-API-Key': process.env.BANKSYNC_API_KEY,    'Content-Type': 'application/json',  },})const { data: banks } = await response.json()for (const bank of banks) {  if (bank.portal) {    console.log(`${bank.name} - ${bank.portal.name}`)  } else {    console.log(`${bank.name} - (my workspace)`)  }}
Python
import osimport requests
response = requests.get(    "https://api.banksync.io/v1/banks?scope=family",    headers={        "X-API-Key": os.environ["BANKSYNC_API_KEY"],        "Content-Type": "application/json",    },)for bank in response.json()["data"]:    where = bank["portal"]["name"] if bank.get("portal") else "(my workspace)"    print(f"{bank['name']} - {where}")

Response shape#

Each row gains two fields when scope=family is requested:

JSON
{  "success": true,  "data": [    {      "id": "bnk_abc",      "name": "Chase Checking",      "workspaceId": "ws_parent",      "portal": null,      ...    },    {      "id": "bnk_xyz",      "name": "Acme Co Operating",      "workspaceId": "ws_acme_portal",      "portal": {        "id": "ws_acme_portal",        "name": "Acme Co",        "icon": "🏢"      },      ...    }  ]}
  • workspaceId: the workspace the row lives in. For your own rows this is the parent workspace; for a covered client's rows it is that client's workspace id.
  • portal: which covered client the row belongs to. null for rows owned by the parent; a { id, name, icon? } object for a covered client's rows.

Reading one client's accounts and transactions#

A key reads the workspace it was created in. scope=family lists span your covered clients, but reading one client's accounts, transactions or Tables needs a key created inside that client's workspace. Your parent workspace's key cannot reach them, and the X-Workspace-Id header does not change the workspace an API key reads.

To create a key for a covered client:

  1. As an owner or admin of your parent workspace, switch to the client's workspace.
  2. Open Settings › Developers and create a key with the scopes you need.
  3. Use that key for the client's data:
Shell
# CLIENT_API_KEY: a key created in the covered client's workspacecurl -X GET "https://api.banksync.io/v1/banks/bnk_xyz/accounts" \  -H "X-API-Key: $CLIENT_API_KEY"
  • Only the parent workspace's owner and admins can create, see or revoke keys in a covered client's workspace. The client's own members cannot.
  • Calls with a client's key are covered by your plan, and share your plan's per-minute rate limit with your own workspace and every other client you cover.
  • Keys you created in a client's workspace are revoked if that client takes over their workspace.

Error responses#

StatusWhen
400Unknown scope value (anything other than self / family), or scope=family was sent to a covered client's workspace
403Your role on the parent workspace is editor or viewer: scope=family requires admin+
404The workspace id in the URL doesn't exist or was deleted

Using covered clients with MCP#

An MCP connection works on one workspace: the one you chose when you connected, or the one its API key was created in.

  • Connected to your parent workspace, list_workspaces lists every covered client with isInherited: true and a parentWorkspaceId, and scope=family on list_banks, list_feeds and list_integrations spans your covered clients.
  • To work inside one client's workspace, connect with a key created in that client's workspace (see above).
  • list_clients lists every client, covered or paying for themselves, with who pays.
  • See the MCP setup guide for connecting your client.

For clients your advisor covers

If your advisor covers your workspace, API keys and MCP connections are not available to you: your advisor manages them. The Developers settings tab is hidden for you. A client who pays for their own workspace has the API like anyone else.

Internal API vs public REST API#

Two surfaces ship the same scope=family contract:

  • Public REST API (api.banksync.io/v1/*): the surface your own scripts and tools use. Banks, feeds, integrations all accept ?scope=family.
  • Internal API (internal-api.banksync.io/api/*): used by the BankSync web app and MCP server. Same scope semantics, plus a /jobs workspace-aggregate endpoint.

See also#

Use this page with your AI assistant

Every BankSync doc is available as plain Markdown for agents and LLMs.