Once you've generated an API key and obtained the IDs for your Wix account or site, you can authenticate and perform admin operations.
To make an API call using an API key, include the key from the API Keys Manager in the Authorization header. You must also include one of the following headers, depending on the type of call:
wix-account-id: The ID of the Wix account that owns the API key. Required for account-level API calls.wix-site-id: The ID of the Wix site you're working with. Required for site-level API calls.Notes:
wix-account-id header or the wix-site-id header, but not both. Most APIs are site-level, while account-level APIs are specified as such in the reference documentation.A complete header for an account-level API request looks like this:
A complete header for a site-level API request looks like this:
With your headers set up, call Wix APIs. The following example calls Query Product and retrieves a list of visible products from a specific site:
If you receive a 403 Forbidden error, check that you have:
Authorization header with your API key.wix-site-id header for site-level methods, or a wix-account-id header for account-level methods.If you don't receive an SMS for 2-step verification when generating a key, contact Wix Support.
Last updated: 1 September 2026