About API Keys

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.

Use cases

You can use API keys for the following:

  • Automated workflows: Authenticate the CLI from automated workflow environments such as GitHub Actions.
  • External integrations: Enable 3rd-party tools such as n8n that call Wix APIs on your behalf.
  • Channel and Enterprise: Manage admin operations across multiple sites in Channel or Enterprise accounts.
  • AI agents: Connect the Wix MCP server to give AI agents access to your Wix account or site.
  • Self-managed headless projects: Perform admin operations from a project's backend code, such as managing members, orders, or bookings. Learn more about self-managed headless projects.

Notes:

Manage 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 Wix user's account. If you work with multiple API keys, make sure you're using the correct key.

Learn more about generating an API key.

Retrieve site IDs

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.

Retrieve account IDs

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.

Make API calls

Once you've generated an API key and obtained the IDs for your Wix account or Wix site, you can authenticate and perform account or site level operations. For detailed instructions and common errors, see Make API Calls with an API Key.

See also

Did this help?