> ## 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 PubChem with API Key – StackOne Hub

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

## Create your NCBI API key

Create the key in your NCBI account settings.

**1. Create or copy your API key**

Sign in to your [NCBI account](https://account.ncbi.nlm.nih.gov/) with one of the third-party login methods NCBI offers, or **Sign up** first, then open [Account settings](https://account.ncbi.nlm.nih.gov/settings/).

<ul>
  <li>Scroll to **API Key Management**.</li>
  <li>Click **Create API Key**. When the **API Key** row already shows a key there is no button, so use that key.</li>
  <li>**Only one API Key per user.** Replacing or deleting it makes the current key inactive.</li>
</ul>

![API Key Management section of NCBI Account settings with the Create API Key button highlighted](https://mintcdn.com/stackone-60/ts9AC_SsZJsKIdk_/connectors/pubchem/images/apikey-config-create-api-key.png?fit=max\&auto=format\&n=ts9AC_SsZJsKIdk_\&q=85\&s=9416d275a9f588a58ef6a7c6be8e9af4)

**2. Copy your API key**

NCBI shows the key in the **API Key** row. Copy the **API Key** across.

<ul>
  <li>**Contact Email**: an address NCBI can reach before it throttles heavy use (optional)</li>
</ul>

![API Key Management section after key creation, with the generated key redacted and the Copy your API key location highlighted](https://mintcdn.com/stackone-60/ts9AC_SsZJsKIdk_/connectors/pubchem/images/apikey-config-copy-api-key.png?fit=max\&auto=format\&n=ts9AC_SsZJsKIdk_\&q=85\&s=e108af1ed6f8a48ba8b09271299542a1)

## 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.