51 lines
1.5 KiB
Plaintext
51 lines
1.5 KiB
Plaintext
---
|
|
title: Manage API Keys
|
|
description: Create and manage API keys for Context7 authentication
|
|
---
|
|
|
|
API keys authenticate your requests to Context7's documentation services.
|
|
|
|
## Managing API Keys
|
|
|
|

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