Agency mode: follow the accounts of your clients | Guides
Intermediate12 min

Agency mode: follow the accounts of your clients

Create an invitation code, have your clients paste it, then work on their accounts as an admin, from the left menu or from your AI assistant. Who connects the sources, what stays with the owner, and what the end of the link removes.

Goal

By the end of this guide, your agency works on the Metrikia accounts of its clients from its own account. On a client's account, you act as an admin of that account, in the application as from your AI assistant. The client gives the access, and removes it whenever it wants.

The guide to send to your clients: Give your agency access to your account.

Prerequisites

  • Be an owner or an admin of your agency's Metrikia account. The setters and closers of the agency do not open client accounts.
  • Turn on two-factor authentication on your account: Settings, Account section, Security page (/app/settings?s=security), Two-Factor Authentication card, Enable 2FA button. Without it, you create a code but open no client.
  • Your agency's account is not itself the client of another agency. An account is an agency or a client, never both.
  • Each client has its own Metrikia account, and its owner turned on two-factor authentication.

Step 1. Create an invitation code

  1. Open Settings, Company section, My clients page (/app/settings?s=agency-clients).
  2. In the Your clients card, click Create an invitation code.
  3. The code shows, with the date until which it is valid: 7 days. Click Copy.
  4. Send the code to the owner of the client account. They paste it in Settings, Agency, then confirm with the code of their authenticator app.

A code opens nothing of your own account: whoever pastes it gives your agency access to their account, and to theirs only. The same code can serve several clients during its 7 days. You can also create one code per client.

Renew the code

A code leaked, or a member left your agency? Renew the code to cancel every code you already sent.

  1. Open Settings, Company section, My clients page (/app/settings?s=agency-clients).
  2. Click Renew the code. The Renew the invitation code? window opens.
  3. Confirm with Renew the code. Every code handed out before stops working at once, and a new code shows.

The clients already linked to your agency keep their link. Only the old codes stop working.

Expected result

When a client has given access:

  • Every owner and every admin of your agency receives an email announcing the access to the client's account.
  • The client shows in the Your clients card, with Since and the date.
  • It also shows at the bottom of the left menu, in the My clients block.

Step 2. Open a client's account in the application

  1. Stay on your agency's account. At the bottom of the left menu, the My clients block lists your clients. If the menu is collapsed, expand it.
  2. Click the client's name. Its dashboard opens.
  3. A blue bar at the top of the screen reads Agency view: account of, followed by the client's name. While it shows, you work on this client's account, and every action is recorded.
  4. To switch client, click Back to my account in the blue bar, then pick another client in the My clients block.

A client marked Account closed does not open: its account is deactivated, or its subscription is cancelled or unpaid.

What your agency does on a client's account

Your agency acts as an admin of the client's account. Nothing an admin sees is hidden from it:

  • The dashboards, the ads, the creatives and the attribution.
  • The CRM: the leads with their contact details, the deals and the appointments, which your agency creates and changes as an admin does.
  • The client's team and its invitations.
  • The sources and connections the client connected: your agency reads, configures and syncs them.
  • The API keys and the webhooks of the account.
  • The settings of the account and the exports.
  • The AI agents, as they are open to an admin of this account.

The questions asked to the agents and the syncs run by your agency count in the limits of the client's account. Every action of your agency is recorded, including the ones made with an API key your members created on this account.

What stays with the client's owner

Your agency does not do what only the owner of the account can do:

  • Billing: the subscription, the invoices and the payment method. These pages do not show for your agency.
  • Delete the account.
  • Invite another owner, change the role of an admin or remove an admin from the team.
  • Give an agency access.
  • Turn the AI agents of the account on or off.

Connect a source on a client's account

On a client's account, your agency does not connect a new source by signing in to a platform with its own login. Your agency's login on a platform (your Meta Business Manager, your Google Ads manager account) often opens the accounts of all your clients. Connected on a client's account, it would show them to the client's whole team.

The Connect with … and Reconnect buttons of a source that goes through the sign-in page of the platform (Meta Ads, Google Ads, TikTok Ads or Google Analytics, for example) therefore show Connection Failed, with this message: An agency does not connect a source of its client with its own login: the client connects its sources, or the agency follows these accounts from its own account.

  • The client connects its sources from its own account, and reconnects them when the platform asks. Your agency then reads, configures and syncs these sources.
  • The connections made by pasting an API key or a secret created in the tool stay open to your agency, as to any admin. When the link ends, the webhook secrets your members entered there are removed.
  • The ad accounts your agency manages with its own login connect on your agency's account: Settings, Data section, My Connections page (/app/settings?s=integrations), from your own account. There you choose the ad accounts Metrikia imports, and you follow them with no link to a client. See the guide Managing multiple ad accounts.

Step 3. Work on a client from your AI assistant (MCP)

On a client's account, your AI assistant has the tools an admin of that client finds on their own AI.

  1. From your agency's account, connect your assistant to Metrikia through authorization: follow the guide Connect an AI assistant to Metrikia (MCP). An AI connected through an API key of your agency opens no client account.
  2. At each connection of an AI, the Connect an AI to your client accounts page asks for the 6-digit code your authenticator app shows. Check the Name declared by the AI and the Address that will receive the access, type the code in the Authenticator code field, then click Authorize this AI. A backup code is not accepted.
  3. The access to the accounts of your clients lasts 7 days. After that, connect the AI again with a new code.
  4. Ask your AI for the list of your clients. The list_clients tool finds them by name or by identifier, and returns for each one its identifier (slug), its name and its id.
  5. To work on a client, your AI passes its identifier or its id in the tenant argument of another tool. This argument holds for that call only: without it, the AI works on your agency's account.
  6. Every answer about a client opens with the notice Agency access to the my-client account (id …): this access is audited. Your AI shows it as is.

On a client's account, your AI reads the data, asks the agents open to an admin of that account and runs the syncs again with trigger_sync. When the connection of the AI allows writing, it also uses the write tools of an admin: create a lead, change its status, add a deal to it, declare a competitor.

  1. Go back to your agency's account, then open Settings, Company section, My clients page (/app/settings?s=agency-clients).
  2. On the client's row, click End the link, then confirm with End the link.
  3. The message The link with this client has ended shows. The owners and admins of both accounts receive an email.

The client can also remove the access on its side, at any time. You then receive an email. To follow it again, the client has to give you access again with a new code.

Whether the link ends on your side or on the client's, your agency has no right left on this account, in the application as from its AI, and the account becomes an ordinary account again. What your members set up there changes too:

  • The outgoing webhooks they created, or whose URL or auth header they changed, are deleted.
  • The people your agency brought into the client's team, and the people they invited in turn, are removed. The pending invitations of your members are deleted.
  • The secret API keys they created are revoked. The tracking keys of the site stay in place and pass to the client's owner: the site's tracking goes on.
  • The sources, connections and leads they held pass to the client's owner.
  • The webhook secrets they entered in a connection are removed, and the client's ManyChat and iClosed secrets are made again.

The client receives an email that lists these changes and what it has to do again: set the new secrets, check the connections whose keys your members entered, and renew the credentials your agency could see.

Common problems

The client says the code is not valid or has expired

The client reads This agency code is not valid or has expired. Ask your agency for a new one. A code lasts 7 days, and renewing cancels every code handed out before. A code also stops working when your agency's account is deactivated, or its subscription is cancelled or unpaid. Create a new code and send it.

The client cannot find where to paste the code, or cannot confirm

Only the owner of the client account gives access. An admin reads Only the owner of the account gives an agency access. The owner must also have turned on two-factor authentication: the confirmation asks the code of their authenticator app.

The message reads This link cannot be made: an account has one agency at most, and an account is an agency or a client, never both. The link is refused in these cases:

  • The client already has an agency. It first removes that access, then pastes your code.
  • The client's account follows clients of its own, or your agency is itself the client of an agency.
  • The name or the identifier of your agency reads metrikia, even when written another way (upper case, a digit for a letter, another alphabet), or the email address of an owner of your agency is on a domain that reads metrikia. Such an agency could pass for the Metrikia team. Write to support@metrikia.io.
  • One of the two accounts is a demo account. A demo account gives no agency access and is not an agency.
  • The code was pasted on your own agency's account.

The same message shows when you click Create an invitation code from an account that cannot be an agency: the client of another agency, or a demo account.

The Connect with … or Reconnect button shows Connection Failed

On a client's account, your agency does not connect a source by signing in to the platform with its own login. Ask the client to connect or reconnect the source from its own account. The ad accounts you manage with your own login connect on your agency's account.

The My clients block does not show in the left menu

  • The menu is collapsed: expand it.
  • You are already viewing a client's account: click Back to my account.
  • You are neither an owner nor an admin of your agency.
  • No client has given your agency access yet.

The clients are greyed out in the My clients block

If the block reads Turn on two-factor authentication to open your clients, turn it on: Settings, Account section, Security page (/app/settings?s=security). A single greyed-out client is a closed account: the Your clients card marks it Account closed.

A message says this client is no longer reachable

The application shows This client is no longer reachable: its link with your agency has ended, or its account is closed. It takes you back to your agency's account. The client removed the access, or its account is closed. If it gives you access again, it will be with a new code.

A client's account shows no data

While the client's account waits for a payment (trial over, or a plan to choose), your agency has no access to it, neither in the application nor from your AI. The client's owner chooses a plan, then you open its account again.

Your AI does not offer list_clients, or answers that it no longer has access to the client accounts

Connect the AI again from your agency's account, with the code of your authenticator app. It is needed in these cases:

  • 7 days have passed since the AI was connected. The automatic renewal of the connection does not extend these 7 days.
  • The AI was connected before your first client gave access, or before you turned on two-factor authentication.
  • Your role became setter or closer, even for a moment, or your two-factor authentication was turned off or reset. Connect the AI again once you are an owner or an admin again, with two-factor authentication on.
  • The AI is connected through an API key: connect it through authorization.

The authorization page says you are viewing a client's account

The page reads You are viewing a client's account. Leave it, then start the connection again from the AI. An AI connects from your agency's account only: click Back to my account in the blue bar, then start the connection again from your AI.

Your AI answers that no client matches

The identifier passed in tenant names none of your clients, or the link has ended. Find the identifier with list_clients. A client whose account is closed is not listed.

To go further, check out our blog, the documentation or contact support.

Ready to take action?

Create your Metrikia account and apply this guide in minutes.