> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Clerk with API Key – StackOne Hub

> Link a Clerk account in the StackOne Hub using API Key. End-user guide to authorize the integration and start using Clerk actions.

## Find your secret key

Clerk authenticates Backend API requests with your application's secret key, which you copy from the [Clerk Dashboard](https://dashboard.clerk.com).

**1. Select your application and environment**

Sign in to your [Clerk Dashboard](https://dashboard.clerk.com), then choose the application and environment you want to connect.

<ul>
  <li>If you don't have an application yet, click **+ Create application** on the Applications page to create one first, then select it.</li>
  <li>Use **Switch application** at the top to select your application.</li>
  <li>Use **Switch environment** to choose the environment you are connecting (for example **Development**) — the secret key differs per environment.</li>
</ul>

![The Clerk Dashboard top bar with the application and environment switchers highlighted](https://mintcdn.com/stackone-60/ZJVvrdfjveKe9xCb/connectors/clerk/images/bearerauth-config-select-app-env.png?fit=max\&auto=format\&n=ZJVvrdfjveKe9xCb\&q=85\&s=9f876b219ae839470b1f4c894d91855c)

**2. Open the API keys page**

In the top navigation, open **Configure**. Under **Instance** in the sidebar, select **API keys**.

![The Configure sidebar with the API keys page highlighted under Instance](https://mintcdn.com/stackone-60/ZJVvrdfjveKe9xCb/connectors/clerk/images/bearerauth-config-api-keys.png?fit=max\&auto=format\&n=ZJVvrdfjveKe9xCb\&q=85\&s=7fa7dac6a42c6a9a33dff888b6d353a9)

**3. Create and copy a secret key**

Scroll to the **Secret keys** section. Existing secret keys are shown masked and, unlike the **Publishable key**, have no copy button — so create a new key to get a value you can copy.

<ul>
  <li>Click **Add new key**, enter a name in the **Create secret key** dialog, and click **Create key**.</li>
  <li>Clerk shows the full key once under **Secret key created successfully** — click **Copy to clipboard**, then **Copy key and close**. You cannot view it again after closing the dialog.</li>
  <li>The secret key starts with `sk_test_` for development or `sk_live_` for production.</li>
  <li>Do not copy the **Publishable key** (`pk_test_` or `pk_live_`) — that key is for frontend code and is not used here.</li>
  <li>Secret keys grant admin-level access — keep them private and never expose them in client-side code.</li>
  <li>Paste it into the **Secret Key** field in StackOne Hub.</li>
</ul>

![The Secret keys section with the Add new key button highlighted, contrasted with the Publishable key's copy button](https://mintcdn.com/stackone-60/2XpACxpOYUSN-Aqh/connectors/clerk/images/bearerauth-config-secret-key.png?fit=max\&auto=format\&n=2XpACxpOYUSN-Aqh\&q=85\&s=6814ad9d65ef2214d202b16f4dfc116f)

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/connect/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Next Steps

> [card] [Webhooks setup](https://docs.stackone.com/connectors/clerk/guides/webhook-setup.md)
>
> Configure receiving Events for Clerk into StackOne.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.