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

# API Keys

> Generate and manage API keys

# API Key Management

API keys are used for MCP server authentication. Generate and manage them on the Settings page.

## Generate a Key

<Steps>
  <Step title="Go to Settings">
    Navigate to the **Settings** page on your web dashboard.
  </Step>

  <Step title="Create API Key">
    In the API Keys section, click **Create Key** and enter a name.
  </Step>

  <Step title="Copy Your Key">
    Copy the generated API key. For security, **this is the only time the full key is shown** — it will be masked afterward.
  </Step>
</Steps>

<Warning>
  Your API key is only displayed once at creation. If you lose it, delete the key and generate a new one.
</Warning>

## Usage

Use your API key in the `X-API-Key` header when connecting to the MCP server.

```json theme={null}
{
  "headers": {
    "X-API-Key": "YOUR_API_KEY"
  }
}
```

For detailed setup instructions, see the [MCP Setup Guide](/guides/mcp-setup).

## Deleting Keys

Delete unused keys from Settings. Deleted keys are immediately invalidated.
