> ## 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 Clay with API Key

> Link your Clay account in the StackOne Hub with API Key, then use its actions in StackOne.

## Generating an API key

A Clay API key belongs to one workspace and reaches the data your Clay account can access.

**1. Create the API key**

Sign in to [Clay](https://app.clay.com) and open **API and CLI** in the left sidebar.

<ul>
  <li>Select the **API keys** tab.</li>
  <li>Click **Add API key**.</li>
  <li>**Name**: `StackOne Integration`</li>
  <li>Under **Scopes**, leave **Public API** selected.</li>
  <li>Click **Add API key**.</li>
</ul>

![The Add API key dialog with the Name field, the Public API scope, and the Add API key button](https://mintcdn.com/stackone-60/znL7Dqsg2J0vRjrC/connectors/clay/images/api-key-config-create-api-key.png?fit=max\&auto=format\&n=znL7Dqsg2J0vRjrC\&q=85\&s=fac8738fa58aa22198b5754d7d332300)

**2. Copy the API key**

Copy the **API Key** across.

<ul>
  <li>Click the copy icon next to the key field in the **Your new API key** dialog.</li>
  <li>Clay displays the key only once and it cannot be retrieved later.</li>
</ul>

![The Your new API key dialog with the copy icon highlighted and the key value masked](https://mintcdn.com/stackone-60/znL7Dqsg2J0vRjrC/connectors/clay/images/api-key-config-copy-api-key.png?fit=max\&auto=format\&n=znL7Dqsg2J0vRjrC\&q=85\&s=663ec742099f9a4e683bf44c969eb447)

## 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/ai-platforms/overview.md).

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


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