Generate an API Key

Generate an API key to grant admin access to your Wix account and site data.

Generate the API key

Go to the API Keys Manager 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.

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

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 in your account settings.

See also

Last updated: 22 July 2026

Did this help?