> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Generate an API Key

## Article: Generate an API Key

## Article Link: https://dev.wix.com/docs/go-headless/authentication/admin/generate-an-api-key.md

## Article Content:

# Generate an API Key

Generate an [API key](https://dev.wix.com/docs/go-headless/authentication/about-authentication.md#admin-and-elevated-access) to grant [admin access](https://dev.wix.com/docs/go-headless/authentication/admin/about-admin-operations.md) to your Wix account and site data.

## Generate the API key

Go to the [API Keys Manager](https://manage.wix.com/account/api-keys) to create a key that lets an authorized external client access and manage data for all sites in the account or for specific sites you select. As a best practice, give each key access to the narrowest set of sites its integration needs. You can also assign a set of permissions that determine the types of APIs each key can access.

<blockquote class="important">

**Important:** Make sure to store your API keys securely and use them only in server-side code.

</blockquote>

## Retrieve a site ID or account ID

When using an API key authentication strategy, you need to provide either a site ID, your account ID, or both.

- You can extract a site ID from the URL in your browser when accessing the project or site dashboard. The site ID appears after **/dashboard/** in the URL.
- You can retrieve your account ID from the [API Keys Manager](https://manage.wix.com/account/api-keys) in your account settings.

## See also 
- [About Authentication](https://dev.wix.com/docs/go-headless/authentication/about-authentication.md)
- [About Admin Operations](https://dev.wix.com/docs/go-headless/authentication/admin/about-admin-operations.md)
- [Make REST API Calls with an API Key](https://dev.wix.com/docs/go-headless/authentication/admin/make-rest-api-calls-with-an-api-key.md)
- [Create an SDK Client with an API Key](https://dev.wix.com/docs/go-headless/authentication/admin/create-an-sdk-client-with-an-api-key.md)