Skip to main content

Connections

A connection is one connected account: your saved credentials for an app, such as a GitHub sign-in, a Stripe secret key or a PostgreSQL login. You create it once and select it in any node that talks to the service. Blokkio adds the right headers, refreshes tokens and keeps the credentials out of your workflow definition.

Every connection is made from an app: an official app from the catalogue, an Any REST API template, or one of your project's custom apps. The app decides which fields you fill in, its base URL and default headers, and the domains the credentials may be sent to.

Connections belong to a project and are never visible in other projects.

Connection kinds​

KindExamplesDetails
HTTP (REST API)GitHub, Slack, Stripe, Any REST API, custom appsAuthenticated with OAuth 2.0, an API key, a bearer token, Basic Auth or an AI provider key
DatabasePostgreSQL, MySQL, Microsoft SQL ServerDatabase, SFTP and email connections
SFTPSFTPDatabase, SFTP and email connections
IMAPIMAPDatabase, SFTP and email connections
SMTPSMTPDatabase, SFTP and email connections

Custom apps are always HTTP. Database, SFTP, IMAP and SMTP connections come from the official apps.

Where connections are used​

WhereField
App Action and App TriggerConnection: only connections of that app are listed.
HTTP RequestAuth → Use Connection. With a base URL you only type the path; see Base URL and default headers.
AI Text and AI AgentAI Provider Connection: an AI Provider or OpenAI connection.
Database QueryDatabase connection
Database Row TriggerPostgreSQL connection: only PostgreSQL connections are listed.
Send EmailSMTP connection
Email Trigger (IMAP)IMAP connection
SFTP File TriggerSFTP connection
Building blocksConnection slots: when you use a building block, you map its slots to your own connections.

Creating a connection​

Connections start in the Apps catalogue:

  1. Go to Apps (or click New connection on the Connections page, which takes you there).
  2. Find the app, for example with Search apps…, and click Connect. If the app has several auth options, choose one from the menu.
  3. Depending on the option:
    • One-click sign-in (OAuth with (one click)): a popup opens at the provider. Approve the access; the popup closes and the connection is created.
    • Token or key: enter a name and the value, and click Create.
    • Database, SFTP, IMAP, SMTP: fill in the server fields and click Save & test.

You can also click Connect in an app's group on the Connections page to add another account of the same app.

Blokkio checks the credentials when you save. For OAuth with the authorization-code grant, a popup opens so you can sign in to the provider. Client-credentials and password grants fetch a token right away, so wrong credentials are reported immediately.

The Connections page​

Connections in the sidebar (/connections) lists your connected accounts, grouped by app. Each group header shows the app's icon and name (linking to the app page), the number of connections, and a Connect button. Use Search connections… to filter.

Each row shows:

  • the connection's name and, for apps with several auth options, which one it uses (for example Personal access token);
  • its health (see Connection status);
  • when it was last used, for example Used 3 hours ago or Not used yet;
  • the ⋯ menu.

The ⋯ menu has:

ItemWhat it does
Edit or renameChange the name or the credentials. Stored passwords and tokens aren't shown; leave them empty to keep them.
Test connectionChecks the connection now. See Testing a connection.
Re-authenticateFor OAuth, opens the provider's sign-in popup again. For other types, re-checks the stored credentials.
DeleteRemoves the connection. The dialog first shows what uses it and can move everything to another connection. See Deleting a connection.
DependantsLists the workflows that use the connection. Check it before changing or deleting a connection.
Environment overridesDifferent values per environment. See Per-environment overrides.

Viewers only see Dependants; creating, editing, testing and deleting need a role that can edit connections.

A banner at the top of the page tells you when connections failed to authenticate or have tokens that expire soon.

Deleting a connection​

⋯ → Delete first lists everything that uses the connection: each workflow (with Published or Draft, and Building block for building blocks), its triggers and steps (marked draft only or published version only when only one version uses it), and the items under What AI can use.

  • Replace and delete: pick another connection of the same app under Replace it with another connection first. Blokkio switches the drafts, the published versions and the AI items to it, then deletes this one. Published triggers keep running with the new connection; you don't have to publish again. Switching needs permission to edit workflows.
  • Delete anyway: deletes the connection and leaves everything as it is. Steps that use it fail, and published triggers that used it stop and show Connection deleted — pick another one (see Trigger status and errors). The workflows' owners are notified once.

When nothing uses the connection, the dialog only asks you to confirm.

Connection status​

StatusMeaning
HealthyThe credentials worked the last time they were used or tested.
Not authorizedThe connection has never been authorized, or needs the OAuth sign-in. Use Re-authenticate.
Auth failedThe provider rejected the credentials, or a token refresh failed. Fix the values or re-authenticate.
Expiring soon / ExpiredThe stored token expires within 7 days, or has expired. Re-authenticate before workflows start failing.

The status updates automatically: a successful request after a failure marks the connection healthy again.

Testing a connection​

In the connection's ⋯ menu, choose Test connection. When your project has environments, Test connection opens a submenu: Default configuration tests the connection's own values, and In Staging (one item per environment) tests the configuration a run in that environment uses, that is, the default configuration with the environment's override and secret values applied. The Environment overrides dialog also has a Test button on each environment's row.

  • HTTP connections: Blokkio checks that the credentials are present (for OAuth, it fetches or refreshes the access token). If the app has a test request, it then sends it with the credentials and default headers applied: a GET, HEAD or POST (with a JSON body), as the app defines. A 2xx answer means the connection works, for example Connected — api.github.com answered 200. The test URL may be relative to the app's base URL; see Test request.
  • Database, SFTP, IMAP and SMTP: Blokkio connects to the server and signs in (databases run SELECT 1). See Testing.

If the server rejects the credentials (401 or 403 for HTTP), the connection is marked Auth failed; for OAuth, the result tells you to re-authorize. Network errors, blocked hosts, unknown secrets and other errors are reported but don't change the connection's status.

The connection's status describes its default configuration, so testing in an environment reports the result but never changes the status.

Allowed domains (credential pinning)​

An app's allowed domains list the hosts its connections may send credentials to:

api.example.com
*.example.com

*.example.com matches any subdomain. Official apps are pinned to their API, for example GitHub to api.github.com. If a node tries to use the connection with any other host, the node fails with a message such as:

Connection 'Stripe live' may only be used with api.stripe.com. Refusing to send its credentials to 'evil.example'.

This stops a mistyped URL or an expression-built URL from leaking your credentials. The Any REST API templates have no allowed domains, so their connections may be sent to any host. To pin credentials for another API, create a custom app and set its allowed domains.

Per-environment overrides​

A connection can use different values in each environment, for example sandbox keys in Staging:

  1. Open the connection's ⋯ menu and choose Environment overrides.
  2. Click Add override next to an environment.
  3. Edit the configuration as JSON and click Save override. The editor starts from the connection's default configuration; stored passwords and tokens are not shown.

When a run executes in that environment, the fields in the override replace the same fields of the connection's default configuration. Click Replace to change an override, Test to check the connection with that environment's values, or Remove to fall back to the default.

An override can reference a secret, for example { "token": "secret://STAGING_GITHUB_TOKEN" }. Often it is simpler to reference one secret on the connection and give that secret an environment value; see Secrets vs. connections.

Security​

  • Connections are scoped to their project. A workflow can never use another project's connection.
  • Credentials are only sent to the app's allowed domains.
  • Outbound requests and connections made with connections (API calls, token requests, tests, database and mail servers) go through Blokkio's egress protection, which blocks private and internal network addresses.
  • Passwords, tokens, keys and OAuth tokens are stored encrypted, like secrets, and are never returned to the browser.
  • Only roles that can edit connections (Administrator, Contributor) can create, edit, test or view a connection's configuration. Changes are recorded in the audit log.