> 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/develop-websites-sdk/code-your-site/authorization/generate-an-api-key.md

## Article Content:

# Generate an API Key

Generate an API key to grant admin access to your Wix 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 method, 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 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

- [Authentication Methods](https://dev.wix.com/docs/overview/auth-permissions/authentication-methods.md)
- [Make REST API Calls with an API Key](https://dev.wix.com/docs/develop-websites-sdk/code-your-site/authorization/make-rest-api-calls-with-an-api-key.md)