API keys are authentication tools that account owners and co-owners can create and provide to external developers, enabling them to make API calls at the account and site level while bypassing OAuth authentication.
Note: Currently only account owners and co-owners can create API keys.
API keys are created and managed in the API Keys Manager where you can assign a set of permissions that determine the types of APIs the key can access.
Create or request an API key:
Call the Site API's Query Sites endpoint to collect all the account's associated site IDs.
Note:
The site ID for a current site can be obtained from the site URL in your browser.
For example, the site ID appears after the '/dashboard/' part of this URL:
A complete header for an API request looks like this:
Make all following calls using the account ID and/or site ID, as required.
Depending on the call, an account ID and/or site ID must be included in the header of the API request.
For requests made exclusively at the account level, you must include the account ID in the header along with the API key for authentication. Some endpoints will require the site ID as well. This is indicated in the documentation for each account-level API.
With site-level API requests, the account ID can be ommitted.
This API creates a new folder that can hold Wix sites.
Request:
Response:
This API retrieves a list of products from one of the account's sites. To make this call, you'll need an API key and the ID of the site you want to query.
Request:
Response: