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

# Manage API Keys

> Create and manage API keys for Context7 authentication

API keys authenticate your requests to Context7's documentation services.

## Managing API Keys

<img src="https://mintcdn.com/context7/OllxQOl-xdXnoIXF/images/dashboard/api-keys-card.png?fit=max&auto=format&n=OllxQOl-xdXnoIXF&q=85&s=95913e7e1d0b7695c39415cebbae2ff5" alt="API Keys card showing list of keys with details" width="2044" height="1168" data-path="images/dashboard/api-keys-card.png" />

### Creating API Keys

<Steps>
  <Step title="Open the create dialog">
    Click **Create API Key** in the API Keys card.
  </Step>

  <Step title="Name the key">
    Enter a name (optional but recommended). Descriptive names like "Cursor", "Claude", "VS Code", or "Devin Desktop" help you identify the key later.
  </Step>

  <Step title="Copy the key immediately">
    Keys are shown only once for security. The format is `ctx7sk-**********************`.
  </Step>

  <Step title="Use the key">
    Use it in your requests or MCP configuration:

    ```bash theme={null}
    curl "https://context7.com/api/v2/context?libraryId=/vercel/next.js&query=routing" \
      -H "Authorization: Bearer YOUR_API_KEY"
    ```
  </Step>
</Steps>

<Warning>Store your API key securely. You won't be able to see it again after creation.</Warning>

### Revoking Keys

<Steps>
  <Step title="Delete the key">
    Click the delete button next to the key you no longer need.
  </Step>

  <Step title="Confirm deletion">
    Confirm in the modal. The key deactivates immediately — all requests using it will fail.
  </Step>
</Steps>

<Note>
  Revoking a key is permanent and cannot be undone. Update any applications using the key before
  revoking.
</Note>
