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

# API Keys

> This page enables the management of API tokens for automation purposes, such as CI/CD or local CLI usage.

The API keys are used to authorize the user to perform actions using [wgc](https://cosmo-docs.wundergraph.com/cli/intro.md) (Wundergraph Cosmo CLI Command). On the overview, we display all keys across the organization. Only members of role Admin and Developer have the ability to create new keys.

![Cosmo Studio API keys management page showing an organization API key list with options to create new keys.](https://mintcdn.com/wundergraphinc/RN72sgIyfy9HBPRO/images/studio/api-keys-management-page.png?fit=max\&auto=format\&n=RN72sgIyfy9HBPRO\&q=85\&s=c3e9eb8b452f2de6a201650bf4c29e78)

### How to create an API Token

* Click on the New API Key button.

* Give the API key a name, select the expiry, the group and then click on "Generate API key".

![Create API key dialog with fields for name, expiry, and group selection.](https://mintcdn.com/wundergraphinc/RN72sgIyfy9HBPRO/images/studio/api-key-creation-dialog.png?fit=max\&auto=format\&n=RN72sgIyfy9HBPRO\&q=85\&s=372e858b70c3c8262888f1a90a5436e5)

* Once the API key is generated, it will be displayed for the user to copy it.

> [!NOTE]
>
> The API Key will be displayed only once. Please copy the API key and store it securely.

![API key generated prompt showing a one-time view of the new key with copy and confirmation options.](https://mintcdn.com/wundergraphinc/RN72sgIyfy9HBPRO/images/studio/api-key-generation-and-copy-prompt.png?fit=max\&auto=format\&n=RN72sgIyfy9HBPRO\&q=85\&s=3d57303104410af9a229a578ff902207)


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