Account owners and co-owners can create API keys to give developers access to make authenticated API calls at the account or site level. To make a call, developers need both an API key and the relevant account or site ID.
Note: Only account owners and co-owners can create API keys.
Create and manage API keys in the API Keys Manager, where you can assign a set of permissions that determine the types of APIs the key can access. For more information, see the About Wix API keys.
Site-level calls only work with API keys generated from the site owner's account. If you work with multiple API keys, make sure you're using the correct key.
Calls to site-level APIs require a site ID in addition to an API key. To retrieve a site ID, use the Query Sites method to get all the site IDs associated with a particular account. You can also get a site ID from the URL of the site's dashboard in your browser. The site ID appears after '/dashboard/'
in the URL.
Calls to account-level APIs require an account ID in addition to an API key. To retrieve an account ID, go to the account's API Keys Manager.
Depending on the method, you need to use either an account ID or a site ID in the API call. For account-level methods, include the account ID. For site-level methods, include the site ID. Unless noted otherwise, methods are site-level.