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

# API Keys

> Create and manage your Spidra API keys.

Every request you make to the Spidra API must include an API key. You manage your keys from the Settings page in your dashboard under the **API Keys** tab.

<img src="https://mintcdn.com/spidra/s_WtybBNeHOahRbV/images/add-api-key.webp?fit=max&auto=format&n=s_WtybBNeHOahRbV&q=85&s=4bea8726304a2e03f662622c2553ccd2" alt="Spidra API Keys settings page" className="rounded-lg" width="2476" height="862" data-path="images/add-api-key.webp" />

## Creating an API Key

1. Go to [Settings](https://app.spidra.io/dashboard/settings?tab=api) in your dashboard.
   <img src="https://mintcdn.com/spidra/s_WtybBNeHOahRbV/images/spidra-settings-navigation.webp?fit=max&auto=format&n=s_WtybBNeHOahRbV&q=85&s=58a86006732cb9aa0b3dc2b426f22bde" alt="Spidra dashboard settings navigation" className="rounded-lg" width="1938" height="996" data-path="images/spidra-settings-navigation.webp" />
2. Click **Add New API Key**.
3. Give the key a name so you can identify it later, for example "Production" or "Local Dev".
4. Click **Create API Key**.

The key appears in your list immediately. You can copy it using the copy icon next to the masked value.

## Using Your API Key

Pass your API key in the `x-api-key` header with every request:

```bash theme={null}
curl -X POST https://api.spidra.io/api/scrape \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"urls": [{"url": "https://example.com"}], "prompt": "Extract the page title"}'
```

See the [API Reference](/api-reference/introduction) for full details on authentication.

## Managing Your Keys

You can have up to **5 API keys** on your account. The Settings page shows a usage bar so you can see how many you have active.

### Disabling a key

Toggle the **Active** switch next to any key to disable it without deleting it. Disabled keys are rejected by the API. This is useful if you suspect a key has been exposed but want to keep it around temporarily.

<img src="https://mintcdn.com/spidra/s_WtybBNeHOahRbV/images/toggle-api-key.webp?fit=max&auto=format&n=s_WtybBNeHOahRbV&q=85&s=ac4e7074518525a15e9878e9ab52e9ce" alt="Toggle API key active state" className="rounded-lg" width="2476" height="862" data-path="images/toggle-api-key.webp" />

### Deleting a key

Click the delete icon next to a key to remove it permanently. Any running integration or application using that key will stop working immediately.

<Note>You cannot delete your last remaining key. You must always have at least one key on your account.</Note>
