# Registering and using API Keys

### Prerequisite

First, you need to have [a memento](https://docs.rememberizer.ai/personal-use/personal/mementos-filter-access) created and refined using your indexed knowledge files.

### Creating a common knowledge

To create a common knowledge, sign in into your Rememberizer account and visit [your common knowledge page](https://rememberizer.ai/personal/common-knowledge). Choose **"Your shared knowledge"**, then click **"Get started"**.

<figure><img src="https://2952947711-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyNqpTh7Mh66N0RnO0k24%2Fuploads%2Fgit-blob-7d59745cf37037ca39fa2a99875522d8017f213e%2Fcommon_knowledge_page.png?alt=media" alt="common knowledge page"><figcaption></figcaption></figure>

Then pick one of the mementos you have created previously, you can also choose **"All"** or **"None"**.

<div align="center" data-full-width="false"><figure><img src="https://2952947711-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyNqpTh7Mh66N0RnO0k24%2Fuploads%2Fgit-blob-bdf9e80df73cdb15d320a6103e07eefcc924aa55%2Fcreate-common-knowledge-1.png?alt=media" alt="create common knowledge 1" width="375"><figcaption></figcaption></figure></div>

Finally fill out the common knowledge's name, description and give it a representative photo.

<figure><img src="https://2952947711-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyNqpTh7Mh66N0RnO0k24%2Fuploads%2Fgit-blob-3efcde510fd129140d88516783fd0100fa5285dd%2Fcreate-common-knowledge-2.png?alt=media" alt="create common knowledge 2" width="375"><figcaption></figcaption></figure>

After you have filled the form, click on "Share knowledge" in the bottom to create your common knowledge. After that, turn on the **"Enable sharing"** in your knowledge and click **"Confirm"** in the pop up modal.

<figure><img src="https://2952947711-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyNqpTh7Mh66N0RnO0k24%2Fuploads%2Fgit-blob-cd7bb6a8ff3dd2855b563cebadf693095a9e5eb4%2Fcommon_knowledge_sharing.png?alt=media" alt="common knowledge sharing"><figcaption></figcaption></figure>

You now are ready to obtain its API Key and access its documents via API calls.

### Getting the API Key of a common knowledge you created

For your common knowledge, click on the three dots on its top right, then choose "API Key". If there is none yet, one will be created for you. If the API Key exists it will be returned.

<figure><img src="https://2952947711-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyNqpTh7Mh66N0RnO0k24%2Fuploads%2Fgit-blob-2808a2efd1839a1feeadea8e7682f187f81d50b5%2Fknowledge_open_API_key.png?alt=media" alt="knowledge open API key"><figcaption></figcaption></figure>

In the **"Manage your API Key"** panel, you can click on the **"eye"** button to show/hide, the **"copy"** button to copy the key to clipboard, and **"Regenerate API Key"** to invalidate the old key and create a new one (apps that are accessing your documents through api calls won't be able to access until you have updated the new key into them).

<figure><img src="https://2952947711-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyNqpTh7Mh66N0RnO0k24%2Fuploads%2Fgit-blob-97c91fe2c7fd5be32e6fea1aa6b7dbd31b3b177d%2Fcopy-api-key.png?alt=media" alt="copy api key"><figcaption></figcaption></figure>

After obtaining the API Key, you can proceed to using it in your API calls to Rememberizer to query your indexed documents and contents.

### Using the API Key

To access Rememberizer endpoints, you will use the API Key in the `X-API-Key` header of your API requests. Please check out the [API Documentation](https://docs.rememberizer.ai/developer-resources/api-docs) to see the endpoints that Rememberizer provides.

Once you have your API key, you can use it in several ways:

1. **Direct API access**: Use the API key in your HTTP requests to query Rememberizer's search endpoints
2. **LangChain integration**: Use the [LangChain Integration](https://docs.rememberizer.ai/developer-resources/integration-options/langchain-integration) to incorporate Rememberizer's capabilities into your LangChain applications
3. **Custom GPT**: Use the API Key in a custom GPT application as described below

#### Using with Custom GPTs

Start by [creating a GPT in the ChatGPT UI](https://chat.openai.com/gpts/editor). Make sure to choose the Authentication Type as "API Key", Auth Type as "Custom" and the header as "X-Api-Key", then paste the key you copied previously into the API Key textbox.

{% hint style="info" %}
For a more advanced GPT integration that uses OAuth instead of API keys, see [Creating a Rememberizer GPT](https://docs.rememberizer.ai/developer-resources/integration-options/creating-a-rememberizer-gpt).
{% endhint %}

<figure><img src="https://2952947711-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyNqpTh7Mh66N0RnO0k24%2Fuploads%2Fgit-blob-ec8b01297356272b42bd1a5c180bcc661e5cc1e9%2Fgpt-app-using-api-key.png?alt=media" alt="gpt app using api key" width="375"><figcaption></figcaption></figure>
