Skip to content
Docs

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 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.

  • 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).
  1. In the App panel, open Connections and click New connection.
  2. 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.0 or Generic API key).
  3. 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.
  4. Give the connection a clear Name, for example Acme Google workspace.
The New connection wizard on its Service step, with Provider and Name, and a hint to use a generic method when the provider is not listed
The New connection wizard on its Service step, with Provider and Name, and a hint to use a generic method when the provider is not listed

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.

The Capabilities step for Zendesk: Read only, Everything and None beside the question, a search, a checkbox per capability saying what it allows with its service and scope under it, and a note that the provider asks you to consent to exactly these
The Capabilities step for Zendesk: Read only, Everything and None beside the question, a search, a checkbox per capability saying what it allows with its service and scope under it, and a note that the provider asks you to consent to exactly these

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.

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.

The Set up access step for Zendesk: the provider's guide expanded, the Zendesk subdomain it asks for, the Redirect URI, and the Sign-in app picker with Register a sign-in app
The Set up access step for Zendesk: the provider's guide expanded, the Zendesk subdomain it asks for, the Redirect URI, and the Sign-in app picker with Register a sign-in app

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:

  1. 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.
  2. 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.

For an API-key or basic-auth service, the credential is a secret, picked right on the form:

  1. 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.
  2. Click Create.
The Set up access step for an Airtable personal access token: the guide, then the Credential secret picker with New secret, and Create
The Set up access step for an Airtable personal access token: the guide, then the Credential secret picker with New secret, and 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.

For an OAuth service there are no credential fields to type. You save the connection first, then authorize it:

  1. Click Create. The new connection is listed with the status Never finished.

    A new Google connection's row with status Never finished, 0 service(s), the Pin star, Connect and the ⋮ row menu
    A new Google connection's row with status Never finished, 0 service(s), the Pin star, Connect and the ⋮ row menu
  2. On the connection’s row, click Connect. A provider window opens where you sign in and approve the access Publicus requested.

  3. 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.

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.

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.

A node's Credential picker open, listing an Airtable connection under Connections and an Airtable personal access token under Secrets
A node's Credential picker open, listing an Airtable connection under Connections and an Airtable personal access token under Secrets

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.

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:

  1. Open Connections and click the connection.

  2. 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.

    The Capabilities section with one capability under Granted, one under Asked for, not granted yet, and a Request access button
    The Capabilities section with one capability under Granted, one under Asked for, not granted yet, and a Request access button
  3. 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.

  4. 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.

The Capabilities warning that the connection's own sign-in app has no verified-scope allowlist, so the provider will reject an undeclared scope, with a link to record the scopes it declares
The Capabilities warning that the connection's own sign-in app has no verified-scope allowlist, so the provider will reject an undeclared scope, with a link to record the scopes it declares

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.

  1. Open the connection. The reason appears under its name and in its details.

    An errored Mollie payments connection's page: Reconnect, Revoke and Delete in the header, and a notice that it stopped working with the provider's invalid_grant error and to use Reconnect
    An errored Mollie payments connection's page: Reconnect, Revoke and Delete in the header, and a notice that it stopped working with the provider's invalid_grant error and to use Reconnect
  2. Click Reconnect and sign in with the provider again to restore access.

  3. Confirm the status returns to Working.

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:

  1. Open the connection and find the values in its Set up access section, between the provider’s guide and the credential.

    Set up access on a Shopify connection: a warning that changing these values repoints the connection, the Shop subdomain and Admin API version fields, the Redirect URI, and the Sign-in app picker with Register a sign-in app
    Set up access on a Shopify connection: a warning that changing these values repoints the connection, the Shop subdomain and Admin API version fields, the Redirect URI, and the Sign-in app picker with Register a sign-in app
  2. Change the value and click Save. The connection’s addresses are rebuilt from the new values immediately.

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.

The notification Connection verified after Test
The notification Connection verified after Test

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.

The Delete confirmation for a connection nothing references: its stored credential goes with it and comes back on restore, and deleting it permanently destroys it for good
The Delete confirmation for a connection nothing references: its stored credential goes with it and comes back on restore, and deleting it permanently destroys it for good

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.

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.

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:

  1. Open Connections, then its Sign-in apps tab, and click Register a sign-in app.

    The Sign-in apps list with Register a sign-in app, the Enabled and Disabled views, and two apps with their provider, auth system, client ID and Enabled badge
    The Sign-in apps list with Register a sign-in app, the Enabled and Disabled views, and two apps with their provider, auth system, client ID and Enabled badge
    The Create sign-in app form: Name, Provider and Auth system, the Redirect URI to register, Client ID and Client secret, Default scopes, Verified scope allowlist, and the Enabled toggle
    The Create sign-in app form: Name, Provider and Auth system, the Redirect URI to register, Client ID and Client secret, Default scopes, Verified scope allowlist, and the Enabled toggle
  2. 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).

  3. 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.

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:

  1. 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.
  2. Open Catalog, select Google, and click Set up on Merchant API: Accounts. Choose the connection. Publicus imports the API.
  3. In a flow, add an OpenApi / Operation node with that connection and the operation that registers a project: merchantapi.accounts.developerRegistration.registerGcp, a POST on /accounts/v1/{+name}:registerGcp.
  4. Set name to accounts/YOUR_MERCHANT_CENTER_ID/developerRegistration and developerEmail to the person Google should write to about the API. Run the flow once.
  5. 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.

  • 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.