Generate an API key to grant admin access to your Wix account and site data.
To generate an API key:
- Go to the API Keys Manager to enable an authorized external client to access and manage data belonging to your Wix account, its projects and sites. You can assign a set of permissions that determine the types of APIs each key can access.
Note: 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.
- To learn more about API keys check out this article, About Authentication