Skip to main content
An agency can use one credential for its parent company and selected direct subaccounts. Both scoped Platform API keys and human OAuth/MCP connections support delegation. Delegation is optional and starts off. It does not give access to unrelated companies or grandchildren.

Choose the credential

Select access

For a key, select the parent agency in SideShift, open Settings → API & MCP → API Keys, and click Create API Key. Choose scopes, then set Client access. For OAuth/MCP, the same choice appears on the parent agency’s consent screen.
  • This company only: only the connected company.
  • Choose client accounts: choose at least one current child. Future children are excluded.
  • All current and future clients: includes current children and children created later, subject to live membership and permission checks. Use a selected list when the workload needs a fixed boundary.
Choose campaigns:read to list campaigns. Add settings:read if the integration also needs GET /companies to discover permitted company IDs. A valid ID alone never grants access.

Make a request for one child

Use the saved key from the API key quickstart. Set the ID of a delegated child:
For OAuth, replace the x-api-key header with Authorization: Bearer $SIDESHIFT_ACCESS_TOKEN. Send only one authentication header. Omit X-Act-As-Company to call the parent. Each request selects one company; this header does not change the saved connection or dashboard selection. In MCP, call whoami to inspect the connection and list_companies to find permitted IDs (settings:read required). Pass account_id to the business tool for one delegated call. The older act_as_subaccount_id name still works. The MCP guide covers the tool flow. Sub-account delegation is separate from connecting multiple accounts at consent. Delegated children come from the default agency’s sub-account access. Selecting another agency as an additional account connects only that agency, not its clients. Checking Connect all N accounts (Connect both accounts when there are two) with an agency as the default also turns on access to all of that agency’s sub-accounts, including future ones. See Connected accounts.

Checks on every delegated request

The credential must still authorize the operation on the parent. The server then verifies that the target is still a direct child, was delegated, and is accessible to the authorizing person. The person’s direct child membership takes precedence over inherited agency membership. A child membership that uses agency permissions takes the person’s live agency seat instead. Canonical company and parent owners retain ownership authority. For example, a non-owner agency member with Campaigns Read/Write on the parent but only Campaigns Read in a direct child membership can read that child’s campaigns and cannot edit them. Selecting All current and future clients does not override that restriction. Protected child operations also require the child’s subscription eligibility. Removing a child from the agency or removing the person’s access prevents later delegated requests. Supported aggregate reports filter children through the same delegation and live access limits; do not assume an agency credential exposes every company in a portfolio.

Change access or troubleshoot

Key scopes and delegation cannot be edited: create a replacement, verify it, switch the workload, then revoke the old key. For a narrower OAuth/MCP connection, disconnect and reconnect with the intended company, scopes, and children. Keep separate credentials when workloads need independent revocation or different subaccount boundaries.