Skip to main content

Find your secret key

Clerk authenticates Backend API requests with your application’s secret key, which you copy from the Clerk Dashboard.

1

Select your application and environment

Sign in to your Clerk Dashboard, then choose the application and environment you want to connect.

  • Use Switch application at the top to select your application.
  • Use Switch environment to choose the environment you are connecting (for example Development) — the secret key differs per environment.
The Clerk Dashboard top bar with the application and environment switchers highlighted
2

Create and copy a secret key

In the top navigation, open Configure. Under Instance in the sidebar, select API keys, then 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.

  • Click Add new key.
  • Enter a name in the Create secret key dialog.
  • Click Create key.
  • 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.
  • The secret key starts with sk_test_ for development or sk_live_ for production.
  • Copy the Secret Key across.
The Secret keys section with the Add new key button highlighted, contrasted with the Publishable key's copy button
1

Connect

  • Click Connect.
  • If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
  • Once authorization is successful, you will see a confirmation popup.
2

Use Actions

Connect an AI platform to the linked account’s actions. See AI Platforms.Other ways to call actions are listed in Protocols & SDKs.

Next Steps

Webhooks setup

Configure receiving Events for Clerk into StackOne.