How to connect a service
This guide shows you how to create a Connection: a saved, reusable way for your flows to authenticate to an external service such as Google, Microsoft, or any API in the catalog. You pick the provider, choose how you sign in, and Publicus keeps the credential valid so your flows can use it without ever handling the raw tokens.
A connection vs. a secret
Section titled “A connection vs. a secret”A secret stores one opaque value, a token or password you paste in and reference yourself. A connection is smarter: it targets a known provider, knows how that provider authenticates, and for OAuth services it keeps access tokens refreshed for you and tracks which services the granted access unlocks.
Use a secret for a single standalone value. Use a connection when you want Publicus to manage the sign-in to a service, especially anything that uses OAuth. Either way the sensitive values live in the encrypted vault and are never shown again after you save them.
Prerequisites
Section titled “Prerequisites”- Access to the App panel for your workspace.
- An account with the service you want to connect (for example a Google or Microsoft account, or an API key from the provider).
Create a connection
Section titled “Create a connection”- In the App panel, open Connections and click New connection.
- Under Service, pick the Provider from the catalog (for example Google or Microsoft). If your service is not listed, choose one of the generic entries (
Generic OAuth 2.0orGeneric API key). - If the provider offers more than one way to sign in, choose one under Authentication. Each option says what it needs, such as signing in at the provider and approving access, or a key you create there. None is ticked for you. A provider with one way to sign in asks nothing: the form names that way, and what it needs, in place of the choice.
- Give the connection a clear Name, for example
Acme Google workspace.


Choose what the connection may do
Section titled “Choose what the connection may do”Next, a Capabilities step lists what this provider’s services can do, such as reading mail, creating contacts or managing files. Each box says what it allows, with the service and the access it requires under it. Tick the ones this connection is for. To find one, type in the search above the list. To start from a set, click Read only, which ticks every capability that only reads and unticks the rest, Everything, or None.


This matters more than it looks. Signing in alone grants only a baseline that reaches no service at all, so a connection created without picking anything comes back unable to do the thing you made it for. What you tick here is exactly what the provider’s consent screen asks you to approve.
You are not locked in: you can request more access later without recreating the connection, and Publicus re-requests the same set every time you reconnect, so a later reconnect cannot quietly lose access you already had.
Providers with no published capabilities skip this step.
Set up access
Section titled “Set up access”The last step follows the provider’s guide from top to bottom: the guide’s exact steps for getting your credentials from that provider, then any values for your account it tells you to collect, then the credential.


Some providers embed a value only you know into their addresses: your Shopify store’s subdomain, your Zendesk subdomain, your Moneybird administration, your Scaleway Project ID. When the provider needs one, it is asked for here, below the guide that says where to find it:
- Fill in the required values. Each field explains where to find its value and shows an example. A missing value, or one that does not match the provider’s format, is caught when you click Create.
- Leave optional fields as they are unless you need something different. A field filled in with the provider’s default keeps following it, including future updates to it, until you change it.
The Generic OAuth 2.0 entry asks for values too: that is where you supply the authorization and token URLs of a service that is not in the catalog.
What happens next depends on the authentication mode.
API key or basic connections
Section titled “API key or basic connections”For an API-key or basic-auth service, the credential is a secret, picked right on the form:
- In Credential secret, below the guide and any account values, pick the secret that holds the key or the username and password. To make one without leaving the form, click + New secret; its fields follow what the provider requires.
- Click Create.


The connection is stored and ready to use immediately. There is no popup and nothing further to authorize. Its status reads Not checked yet until Publicus has checked the key against the provider, which it does straight away for a provider that publishes a check, and then Working.
OAuth connections
Section titled “OAuth connections”For an OAuth service there are no credential fields to type. You save the connection first, then authorize it:
-
Click Create. The new connection is listed with the status Never finished.


-
On the connection’s row, click Connect. A provider window opens where you sign in and approve the access Publicus requested.
-
Approve the request. The window returns to Publicus and the connection’s status changes to Working.
From then on Publicus refreshes the access token in the background before it expires, so flows that use the connection keep working without you reconnecting.
What “powers N services” means
Section titled “What “powers N services” means”The connections table shows a Powers badge, for example 3 service(s). This is the number of individual services the connection can currently reach, computed from the scopes the provider actually granted when you authorized it, not the scopes that were requested.
Because access is scope-based, one connection can unlock several services at once (for example Gmail and Google Calendar on a single Google connection), and you add a new service by granting a bit more access to the same connection rather than creating another one.
Use a connection in a flow
Section titled “Use a connection in a flow”Once a connection is Working, any node that authenticates to that service lets you select it instead of pasting a token. The node uses a fresh credential at run time; it never sees or exposes the stored values.
The field is the same everywhere: a single credential picker that accepts either a connection or a secret. API nodes such as Rest / Operation, OpenApi / Operation and the operation packs attach the connection’s resolved credential as the request’s authorization headers; AI and channel nodes use it as the provider key or bot token. Selecting a connection is preferred over pasting a key or pointing at a bare secret: the credential stays managed, refreshes on its own, and can be revoked in one place.


This is what makes a connection safe to share. A teammate can select and use a connection in their flows, but its secret values are never re-displayed to anyone, including the person who created it. Managing the credential (reconnecting, revoking) stays separate from using it.
Request more access
Section titled “Request more access”Signing in to an account and granting access to a particular service are separate approvals. A connection can be Working and still not be allowed to read your mail or your calendar, because that permission was never asked for.
To see what a connection can do and add what it cannot:
-
Open Connections and click the connection.
-
Find the Capabilities section. It lists what the connection holds under Granted, what it asked for and did not get under Asked for, not granted yet, and the rest of what the provider offers under Also available.


-
Click Request next to a capability under Also available, or the single Request access button (Request all N for several) under Asked for, not granted yet. The provider window opens asking for those permissions, on top of what the connection already holds.
-
Approve it. Publicus merges the new access into the existing connection, and the Powers count goes up.
This keeps one connection per account rather than a sprawl of near-duplicates. Reauthorize is a different action: it re-runs the sign-in for the access the connection already has, which is what you want after a provider revokes it, not when you need something new.
Some providers, HubSpot among them, require their app registration to declare a permission up front and will reject a request for anything else outright. If you are connecting through your own sign-in app, list the permissions on the app so Publicus can check the request before sending you to the provider. Without that list, an undeclared permission fails at the provider rather than here, and the Capabilities section warns you when that is the case.


Fix an errored connection
Section titled “Fix an errored connection”If a provider revokes or expires access that Publicus cannot refresh on its own, the connection’s status turns to Needs reconnecting and you are notified that it needs attention. Flows relying on it will fail until it is fixed.
-
Open the connection. The reason appears under its name and in its details.


-
Click Reconnect and sign in with the provider again to restore access.
-
Confirm the status returns to Working.
Change an account-specific value
Section titled “Change an account-specific value”If a connection was created with account-specific values (a shop subdomain, a region, an API version), you can correct them without recreating the connection:
-
Open the connection and find the values in its Set up access section, between the provider’s guide and the credential.


-
Change the value and click Save. The connection’s addresses are rebuilt from the new values immediately.
Test a connection
Section titled “Test a connection”To confirm a connection works before you rely on it in a flow, choose Test from its row menu (⋮) or the header of its page. Publicus makes a lightweight check call to the provider and reports whether it succeeded. The button appears only for providers that publish a suitable check call.


Revoke or delete a connection
Section titled “Revoke or delete a connection”Revoke stops Publicus from using the connection: its status becomes Revoked, no credential is handed out again, and flows that rely on it fail. Publicus also asks the provider to cancel the token it holds, so access ends on both sides. Not every provider offers a way to be asked — where one does not, the token stays valid there until it expires on its own, and you can remove Publicus’s access in that provider’s own account or security settings. A revoked connection can be brought back with Connect, so revoking is not a one-way door.
Delete removes the connection and its stored credential together. Both come back if you Restore it from the Archived view, which lists deleted connections. Because a deleted connection can be restored, the token is not cancelled with the provider at this point. The confirmation lists what still uses the connection and will stop working, so you can see the cost before agreeing to it.


Delete permanently is the action that destroys the stored credential at the secret store and asks the provider to cancel the token. Neither the connection nor the credential can be restored afterwards. It is the way to be sure a refresh token no longer exists anywhere — in Publicus or at the provider — which is what you want after a connection is retired for good.
Browse the catalog
Section titled “Browse the catalog”To see what you can connect before creating anything, open Catalog in the App panel. It lists every published provider with its authentication systems, the services each one unlocks, and the same setup guides that appear on the create form. It is read-only, a reference for planning which connections you need.
Bring your own sign-in app
Section titled “Bring your own sign-in app”By default, managed providers connect through Publicus’s own sign-in app, so Connect works with nothing to set up. If your organization requires connections to run through your own Google or Microsoft app registration (an OAuth client, in the provider’s words), register that app once as a sign-in app:
-
Open Connections, then its Sign-in apps tab, and click Register a sign-in app.




-
Choose the Provider and OAuth Auth system, then paste your app’s Client ID and Client secret (the secret is vaulted and never shown again).
-
Optionally set Default scopes to request by default. Leave Enabled on and save.
You can also register one without leaving a connection: under Set up access, click Register a sign-in app beside the Sign-in app picker. Where to find the client ID and secret is in the provider’s guide above it on the page, so the form opens with a link to the same guide in the Catalog rather than a second copy.
New OAuth connections for that provider can then use your app. This is also the path to take when the access a connection needs exceeds what Publicus’s own sign-in app is verified for; registering your own removes that cap.
Connect Google’s advertising APIs
Section titled “Connect Google’s advertising APIs”Google’s advertising APIs check more than your sign-in. Each one also looks at the Google Cloud project behind the sign-in app: whether the API is enabled there, which access level the project has, and for Merchant Center whether the project is registered. Connect them through your own sign-in app, so that project is yours to set up.
| To work with | Under Authentication, choose | Under Capabilities, tick | Google also needs |
|---|---|---|---|
| Google Ads campaigns, accounts and reports | Google Ads OAuth 2.0 | Google Ads API | The Google Ads API enabled in your project. A new project reaches test accounts only, until you apply for Explorer access. |
| Local Services Ads reports | Google Ads OAuth 2.0 | Local Services API | The Local Services API enabled in the same project, and a Google Ads manager account. |
| Merchant Center products, inventory and reports | Google OAuth 2.0 | The Merchant API services you use, such as Merchant API: Products | Your project registered once with your Merchant Center account (see below). |
| Customer lists and conversions for Google Ads, Display & Video 360 or Analytics | Google OAuth 2.0 | Data Manager API | The Data Manager API enabled, and your Google Account added as a user of the account the data goes to. |
The guide on the Set up access step gives the steps at Google for each of these, in order. Two things are specific to Publicus:
- A Google Ads manager account. If you reach an advertiser’s account through a manager account, enter the manager account’s customer ID in Login customer ID on the Set up access step: 10 digits, without hyphens. Leave it empty when you have direct access to the account.
- One connection per sign-in. Google Ads and Local Services share a connection. Merchant Center and Data Manager can share one too, alongside any other Google service on Google OAuth 2.0.
Register your project with Merchant Center
Section titled “Register your project with Merchant Center”Google answers every Merchant API call with 401 until your Google Cloud project is registered with a Merchant Center account. You do it once, from Publicus:
- Create the connection with Merchant API: Accounts ticked, and click Connect signed in as an Admin of the Merchant Center account. The account needs a verified website.
- Open Catalog, select Google, and click Set up on Merchant API: Accounts. Choose the connection. Publicus imports the API.
- In a flow, add an
OpenApi / Operationnode with that connection and the operation that registers a project:merchantapi.accounts.developerRegistration.registerGcp, aPOSTon/accounts/v1/{+name}:registerGcp. - Set
nametoaccounts/YOUR_MERCHANT_CENTER_ID/developerRegistrationanddeveloperEmailto the person Google should write to about the API. Run the flow once. - Wait five minutes, then Set up the other Merchant API services you ticked and use them.
A project can be registered with one Merchant Center account at a time, and the registration covers that account’s sub-accounts. If the email you gave was not yet a user of the account, that person gets an invitation and has 14 days to accept it.
Troubleshooting
Section titled “Troubleshooting”- A Merchant API call answers 401 and names a GCP project. The project behind your sign-in app is not registered with the Merchant Center account. See Register your project with Merchant Center.
- A Google Ads call fails with
CLOUD_PROJECT_NOT_APPROVED_FOR_PRODUCTION. Your Google Cloud project has Test access, which reaches test accounts only. Apply for Explorer access in the Google Cloud console, as the guide describes. - A Google Ads call fails with
USER_PERMISSION_DENIED. You reach the account through a manager account and the connection has no Login customer ID. Add it under Set up access. - The Connect window opens but the connection stays Pending. The authorization was not completed. Click Connect again and make sure you approve the request in the provider window; do not close it early.
- A flow that used a connection suddenly fails. Check the connection’s status. If it is Errored, click Reconnect; if it is Revoked, someone deliberately stopped Publicus using it, and Connect authorizes it again without re-creating it.
- The connection powers fewer services than expected. Either a permission was declined on the consent screen, or it was never asked for. Open the connection’s Capabilities section and click Request on the ones you need.
- Connect reports the requested access is not allowed. The scopes exceed what the sign-in app is verified for. Register your own under Sign-in apps and reconnect.
- Requests land at the wrong account after editing the connection. An account-specific value under Set up access was changed. Restore the original value and save; the connection’s addresses follow immediately.
Related
Section titled “Related”- Keep connections current — what to do when a provider changes how you sign in, and what Publicus applies without asking.
- Propose a catalog entry — when the catalog does not cover the provider you need.
- Secrets — for single standalone values that don’t need a full connection.
- MCP servers — give an agent tools from an external server.
- Connect an agent to a chat channel — the channel connections overview.