> ## Documentation Index
> Fetch the complete documentation index at: https://wundergraphinc-auto-improve-queries-with-defer.mintlify.site/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](/cli/intro) (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.

<Frame>
  <img src="https://mintcdn.com/wundergraphinc-auto-improve-queries-with-defer/ZveBLmfa_f8sUizA/images/studio/api-keys-management-page.png?fit=max&auto=format&n=ZveBLmfa_f8sUizA&q=85&s=8607bdb0297696318d09f0af358cf6de" alt="Cosmo Studio API keys management page showing an organization API key list with options to create new keys." title="API keys management page" width="3194" height="2156" data-path="images/studio/api-keys-management-page.png" />
</Frame>

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

<Frame>
  <img src="https://mintcdn.com/wundergraphinc-auto-improve-queries-with-defer/ZveBLmfa_f8sUizA/images/studio/api-key-creation-dialog.png?fit=max&auto=format&n=ZveBLmfa_f8sUizA&q=85&s=6583773eec42ffa6a81a9ae5ae4405d8" alt="Create API key dialog with fields for name, expiry, and group selection." title="API key creation dialog" width="1088" height="830" data-path="images/studio/api-key-creation-dialog.png" />
</Frame>

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

<Info>
  The API Key will be displayed only once. Please copy the API key and store it securely.
</Info>

<Frame>
  <img src="https://mintcdn.com/wundergraphinc-auto-improve-queries-with-defer/ZveBLmfa_f8sUizA/images/studio/api-key-generation-and-copy-prompt.png?fit=max&auto=format&n=ZveBLmfa_f8sUizA&q=85&s=cdf93c275bb35234dd9a6b6802a2e1bb" alt="API key generated prompt showing a one-time view of the new key with copy and confirmation options." title="API key generation and copy prompt" width="1096" height="580" data-path="images/studio/api-key-generation-and-copy-prompt.png" />
</Frame>
