> ## Documentation Index
> Fetch the complete documentation index at: https://conductorone-docs-baton-kubernetes.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up a Stytch connector

> C1 provides identity governance for Stytch. Integrate your Stytch instance with C1 for unified visibility and governance over user access.

C1 provides identity governance for Stytch. Integrate your Stytch B2B project
with C1 for unified visibility and governance over which Members belong to
which Organizations and which RBAC roles they hold.

## Capabilities

| Resource                | Sync                                                          | Provision |
| ----------------------- | ------------------------------------------------------------- | --------- |
| Members                 | <Icon icon="square-check" iconType="solid" color="#c937ae" /> |           |
| Organizations           | <Icon icon="square-check" iconType="solid" color="#c937ae" /> |           |
| Organization membership | <Icon icon="square-check" iconType="solid" color="#c937ae" /> |           |
| RBAC role assignments   | <Icon icon="square-check" iconType="solid" color="#c937ae" /> |           |

The connector reads the Members and Organizations in a single Stytch B2B
project, which Members belong to which Organization, and the RBAC roles each
Member holds. The connector only reads — it never writes to Stytch.

## Gather Stytch credentials

<Warning>
  The connector authenticates to the Stytch B2B Management API with your
  project's `project_id` and `secret`. One connector instance covers one Stytch
  project; configure a separate instance for each test or live project.
</Warning>

<Steps>
  <Step>
    In the Stytch Dashboard, open **API Keys**.
  </Step>

  <Step>
    Copy your project's **Project ID** and **Secret**. Test and live projects
    each have their own pair.
  </Step>

  <Step>
    Note whether the project is a Test or Live project. Test projects use the
    base URL `https://test.stytch.com`; Live projects use
    `https://api.stytch.com`.
  </Step>
</Steps>

## Configure the Stytch connector

<Tabs>
  <Tab title="Cloud-hosted">
    Follow these instructions to use a built-in, no-code connector hosted by C1.

    <Steps>
      <Step>
        In C1, navigate to **Integrations** > **Connectors** and click **Add connector**.
      </Step>

      <Step>
        Search for **Stytch** and click **Add**.
      </Step>

      <Step>
        Choose how to set up the new Stytch connector.
      </Step>

      <Step>
        Set the owner for this connector.
      </Step>

      <Step>
        Click **Next**.
      </Step>

      <Step>
        Find the **Settings** area of the page and click **Edit**.
      </Step>

      <Step>
        Enter the Stytch credentials:

        * **Project ID**: your Stytch `project_id`.
        * **Secret**: the secret paired with that project ID.
        * **Base URL**: `https://test.stytch.com` for a Test project or
          `https://api.stytch.com` for a Live project.
      </Step>

      <Step>
        Click **Save**.
      </Step>

      <Step>
        The connector's label changes to **Syncing**, followed by **Connected**. You can view the logs to ensure that information is syncing.
      </Step>
    </Steps>

    **Done.** Your Stytch connector is now pulling access data into C1.
  </Tab>

  <Tab title="Self-hosted">
    Follow these instructions to run the Stytch connector in your own
    environment.

    <Steps>
      <Step>
        Create a secret for the Stytch project secret.
      </Step>

      <Step>
        Configure the connector environment variables:

        * **BATON\_PROJECT\_ID**: your Stytch `project_id`.
        * **BATON\_SECRET**: the secret paired with that project ID.
        * **BATON\_BASE\_URL**: `https://test.stytch.com` or
          `https://api.stytch.com`.
      </Step>

      <Step>
        Deploy the connector using your standard self-hosted connector process.
      </Step>
    </Steps>

    **Done.** Your Stytch connector is now pulling access data into C1.
  </Tab>
</Tabs>
