Skip to content

Swan ​

Your Swan project’s accounts and transactions — to match a payment with an email and react to each transaction.

A Swan connection lets the Swan node list a Swan project’s accounts and their balances, get an account and find transactions — for example to match a payment announced by email. It also serves the Swan — transaction trigger. Swan is an embedded bank (accounts, IBANs, cards) for platforms and businesses.

The connection holds the project’s environment, client ID and client secret. The server exchanges them for a project token (POST https://oauth.swan.io/oauth2/token, “client credentials” flow), valid one hour, and queries the GraphQL API of the chosen environment, always from the server. The secret is encrypted at rest and never appears in a workflow.

At a glance ​

  • Identifier: swan
  • Family: Service
  • Set up by: A member (personal) or an administrator (shared with the organisation)
  • Authentication: API key or token
  • Credential type: service:swan
  • Official API documentation: https://docs.swan.io/developers/
  • Environments: Sandbox (sandbox) — https://api.swan.io/sandbox-partner ; Live (live) — https://api.swan.io/live-partner
  • Rate limit applied by Loop & Roll: 5 requests per second and per connection; up to 3 attempts on a 429 or a 5xx
  • Connection test: Yes

Step by step ​

The same steps are shown in the connection form of the app.

  1. In the Swan dashboard, open “Developers” then “API”.
  2. Copy the project’s client ID and client secret (sandbox or live).
  3. Choose the matching environment and paste them below.

Connection fields ​

FieldKindRequiredNotes
Environment (environment)ChoiceYessandbox (Sandbox), live (Live) Default: sandbox
Client ID (clientId)TextYes
Client secret (clientSecret)Secret — never shown againYes

Before you start ​

  • Read-only. A project token reads the whole project (accounts, transactions). A transfer requires a user’s token and their consent, out of reach of a server connection: no node initiates a transfer or moves money.
  • Sandbox or live. The sandbox is self-service; live follows Swan’s go-live procedure. Choose the environment that matches the credentials.
EnvironmentGraphQL API
Sandboxhttps://api.swan.io/sandbox-partner/graphql
Livehttps://api.swan.io/live-partner/graphql

Add the connection ​

  1. In the Swan dashboard, open Developers then API.
  2. Copy the project’s client ID and client secret (sandbox or live).
  3. In Connections, Third-party services section, click Connect on the Swan card. Give it a Name, choose the Scope (Personal or Organisation) and the Environment, paste the Client ID and Client secret, then click Create the connection.
  4. Click Configure, then Test the connection: the projectInfo query shows the project name.

Calls used ​

Every action is a GraphQL read (POST /graphql):

ActionSwan query
List accountsaccounts
Get an account and its balancesaccount(accountId)
Find transactionstransactions (the whole project) or account(accountId) { transactions }
Triggertransactions, filtered on the change date

Pace ​

Swan accepts 2,000 requests per five-minute window per IP address. Loop & Roll sends at most five requests per second per connection.

Common errors ​

Message or codeCauseWhat to do
Test: “the service rejects the key” (integration.unauthorized)Client ID or secret refused, or from another environment than the one chosen.Check the environment and copy the credentials again in Configure.
node_service_failedSwan refused the query: a GraphQL error, returned in a 200 response. Replaying the same query would return the same error.Fix the node settings.
integration.rate_limitedSwan limit exceeded, after retries.Transient: the engine resumes the step later.
integration.unavailableNetwork or Swan outage, after retries.Transient: the engine resumes the step later.
integration.connection_unusableThe connection was deleted, is not active or is out of your scope.Pick a valid connection in the node.

Nodes that use this connection ​

Loop & Roll — the workflow builder for email.