# Connect formbase to n8n

Create a formbase credential in n8n, sign in, pick the workspace n8n may use, and check that your forms show up.

## Connect formbase to n8n

An n8n credential signs in to one formbase workspace. You create it once; every formbase node in your workflows can then use it.

<h2 id="before-you-start">Before you start</h2>

<ul>
  <li>
    The formbase node installed on your n8n. See <a href="/guides/n8n/install-the-node">Install the formbase node in n8n</a>, which also
    covers what your n8n needs first.
  </li>
  <li>A formbase account that is a member of the workspace you want to connect.</li>
  <li>
    At least one <strong>published</strong> form in that workspace.
  </li>
</ul>

<h2 id="create-the-credential">1. Create the credential</h2>

<p>
  Add a formbase node to a workflow, open <strong>Credential</strong> and click <strong>Create new credential</strong>. You can also start
  from <strong>Overview</strong> › <strong>Credentials</strong> › <strong>Create</strong> and search for{' '}
  <strong>Formbase OAuth2 API</strong>.
</p>

<p>
  There is nothing to fill in. n8n registers itself with formbase when you click <strong>Connect</strong>, including the{' '}
  <strong>OAuth Redirect URL</strong> shown here. The note below that URL asks you to enter it in formbase; you can ignore it, because
  formbase has no place to paste it.
</p>

<h2 id="sign-in">2. Sign in and pick the workspace</h2>

<p>
  Click <strong>Connect</strong>. n8n opens a formbase window. If you are not signed in to formbase in this browser, sign in first. formbase
  then shows what n8n may do and asks which workspace to connect:
</p>

<p>
  Choose the workspace under <strong>Workspace</strong> and click <strong>Authorize</strong>. The window reports that the connection
  succeeded, and the credential in n8n shows as connected. Save it. If you connect more than one workspace, rename each credential after the
  workspace it reaches.
</p>

> ℹ️ **One credential, one workspace**
> <p>
>     To use a second workspace, create a second credential and pick the other workspace on this screen. Each formbase node then uses the
>     credential you choose in it.
>   </p>

<h2 id="check-the-connection">3. Check the connection</h2>

<p>
  Add a <strong>formbase Trigger</strong> and pick the credential. The form list shows the forms of the connected workspace. A form marked{' '}
  <em>(not published)</em> sends no events and takes no requests until you publish it.
</p>

<h2 id="disconnect">Disconnect</h2>

<p>
  In n8n, delete the credential under <strong>Overview</strong> › <strong>Credentials</strong>. Workflows that use it stop until you pick
  another credential in each formbase node.
</p>

<p>
  Deleting it in n8n does not end n8n's access on the formbase side. In formbase, open <strong>OAuth and API Keys</strong>, click the bin
  icon next to n8n under <strong>Connected apps</strong>, and confirm with <strong>Disconnect</strong>.
</p>

<h2 id="next">Next</h2>

<div class="not-prose grid gap-3 sm:grid-cols-2 mb-8">
  - [Start an n8n workflow from public link submissions](/guides/n8n/public-link-submissions)
  - [Send a request from an n8n workflow](/guides/n8n/send-a-request)
</div>
