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

> ## Agent Instructions
> Start with /introduction/getting-started. Use the Direct Query API (POST /query) with the Newton Fusion model (text, image, and video reasoning) or the Newton Omega encoder (time-series embeddings). ATAI_API_ENDPOINT must include the version path: /v0.5 for most APIs, /v0.6 for the Fine-Tuning Service. Pages whose descriptions are marked (Archived) document the legacy Lens runtime — do not use them for new projects.

# Profile & API Keys

> View your account information and create and manage your API keys.

## Accessing Your Profile

To access your profile, open the user menu found at the top-right corner of the Archetype AI
Developer Console, and choose the **Profile & API Keys** option.

<img
  src="https://mintcdn.com/archetypeai-bd6fb3cf/kzkm9hz4oGzx8XMv/developer-console/login-profile/profile-menu-option.png?fit=max&auto=format&n=kzkm9hz4oGzx8XMv&q=85&s=23af626a8a43c8d4064e71585083cedd"
  alt="User menu with Profile & API Keys option
highlighted"
  width="664"
  height="462"
  data-path="developer-console/login-profile/profile-menu-option.png"
/>

This opens your Profile page. The Profile page has two sections: **Details**, which lists
details about your user account, and **API Keys**, where you can view, filter, manage, and
search your existing API keys, as well as create new ones.

<img src="https://mintcdn.com/archetypeai-bd6fb3cf/kzkm9hz4oGzx8XMv/developer-console/login-profile/profile-page-main.png?fit=max&auto=format&n=kzkm9hz4oGzx8XMv&q=85&s=e4c7998a7adaa8d1a3b0f1b9544cca5d" alt="The main user profile page" width="1220" height="845" data-path="developer-console/login-profile/profile-page-main.png" />

## Managing API Keys

### Creating an API Key

Everything you build on the Archetype Platform authenticates using an API key, and the Developer
Console is where you create them. To do so, start by signing in to the **[Developer
Console](https://console.u1.archetypeai.app/)**, then open the **[Profile & API
Keys](https://console.u1.archetypeai.app/profile/api-keys)** page using the user menu at the
top-right corner of the window.

<Note>
  Don't have Developer Console access yet? [Request a free
  trial](https://forms.gle/yTu6xp7CCEvAYLqB9) to get started.
</Note>

1. Click the **+ Create Key** button at the top-right corner of the **API Keys** section of the
   page. This opens the **Create API Key** panel: <img src="https://mintcdn.com/archetypeai-bd6fb3cf/kzkm9hz4oGzx8XMv/developer-console/login-profile/profile-create-key-modal.png?fit=max&auto=format&n=kzkm9hz4oGzx8XMv&q=85&s=daf1aec113cd101a169987fa55c283b9" alt="Create an API
   key" width="1198" height="456" data-path="developer-console/login-profile/profile-create-key-modal.png" />

2. Enter a name for your new API key and click the **Create Key** button to create the new API
   key. A new modal will appear showing you information about the new API key: <img src="https://mintcdn.com/archetypeai-bd6fb3cf/kzkm9hz4oGzx8XMv/developer-console/login-profile/profile-your-api-key-modal.png?fit=max&auto=format&n=kzkm9hz4oGzx8XMv&q=85&s=580626242c3f1c3784c7e14cebb1a3fc" alt="Your API Key
   modal" width="1193" height="712" data-path="developer-console/login-profile/profile-your-api-key-modal.png" />

3. Copy the **secret key**, which starts with `sk_`. This is the value your code sends as
   **`ATAI_API_KEY`**. Treat the secret key like a password: store it in an environment variable or
   a `.env` file, never in source control. See [Environment
   Variables](/libraries/environment-variables) for setup details, then head to the [Developer
   Quickstart](/introduction/getting-started) to run your first queries using your new API key.

### Revoking an API Key

If you are no longer using a particular API key, you should revoke it so that it can no longer
be used to access your account and its data. To revoke an API key, mouse over the API key you
want to revoke. This causes a revoke button (<Icon icon="trash-can" color="black" />) to appear at the
right-hand side of the API key's row in the list. Click the revoke button to open the **Revoke
API Key** panel:

<img src="https://mintcdn.com/archetypeai-bd6fb3cf/kzkm9hz4oGzx8XMv/developer-console/login-profile/profile-revoke-api-key-modal.png?fit=max&auto=format&n=kzkm9hz4oGzx8XMv&q=85&s=4f0aed8ec39ae5be54e168adc8761c7c" alt="The Revoke API Key modal" width="1193" height="791" data-path="developer-console/login-profile/profile-revoke-api-key-modal.png" />

Review the displayed information about the API key. If you're *certain* you want to revoke the
API key, click the **Revoke Key** button.

<Warning>
  Once you revoke an API key, all applications and services configured using that key
  immediately lose access to all Archetype AI APIs.
</Warning>

### Filtering API Keys By Status

To filter the list of your API keys to show only those whose status (Active, Revoked, Expired,
etc.) matches a given value, use the popup located immediately below the **API Keys** heading:

<img
  src="https://mintcdn.com/archetypeai-bd6fb3cf/kzkm9hz4oGzx8XMv/developer-console/login-profile/profile-filter-status-popup.png?fit=max&auto=format&n=kzkm9hz4oGzx8XMv&q=85&s=80095626423cc81d36121a87240acaf5"
  alt="Filtering to show only Revoked API
Keys"
  width="1697"
  height="463"
  data-path="developer-console/login-profile/profile-filter-status-popup.png"
/>

In this example, the **Revoked** filter is highlighted. This will restrict the API key list to
show only those keys which have been revoked.
