> ## Documentation Index > Fetch the complete documentation index at: https://bunny.net/docs/llms.txt > Use this file to discover all available pages before exploring further. # Authenticate with Scoped API Keys > Learn how to call the bunny.net API with a scoped API key and find the permissions each endpoint needs. A scoped API key works like your account API key, but it can only do what you allowed when you [created it](https://bunny.net/docs/account/scoped-api-keys.md). Use one for each script, CI job, or integration so a leaked key can't reach the rest of your account. Send the scoped API key in the same `AccessKey` header: ```bash theme={null} curl --request GET \ --url https://api.bunny.net/pullzone/12345 \ --header 'AccessKey: YOUR_SCOPED_API_KEY' ``` Scoped API keys start with `bnyscpd_`. ## Find the permission an endpoint needs Each endpoint that accepts scoped API keys lists its permissions in the endpoint description. For example, [List Pull Zones](https://bunny.net/docs/api-reference/core/pull-zone/list-pull-zones.md) shows: ``` Scoped API key permissions (any one of): - PullZone.Read - PullZone.Update ``` Your key needs any one of the listed permissions. Grant that permission when you [create the key](https://bunny.net/docs/account/scoped-api-keys.md#create-a-scoped-api-key), on the resources the request touches. If an endpoint lists no scoped API key permission, it doesn't accept scoped API keys yet. The products and permissions you can grant are listed in the dashboard when you [create a key](https://bunny.net/docs/account/scoped-api-keys.md#create-a-scoped-api-key). ## Errors | Status | Cause | | - | - | | `401 Unauthorized` | The key doesn't exist, has expired, or was deleted, or the endpoint doesn't accept scoped API keys | | `403 Forbidden` | The key is missing the permission or resource the request needs, or the request came from an IP address the key doesn't allow | A `403` response has the error key `scopedApiKey.forbidden` and the message "The scoped API key does not have permission to perform this action." To fix a `403`, check the permissions the endpoint lists, and check that the key covers the resource ID in the request. Keys can't be edited, so [create a new key](https://bunny.net/docs/account/scoped-api-keys.md#create-a-scoped-api-key) with the access you need. > [!WARNING] > > Keep scoped API keys in a secret store or environment variable, and leave them out of client-side code and public repositories. This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.