Wix Headless is ready for your feedback! Please feel free to reach out to us via email with any comments, suggestions, or concerns. Join the Wix Headless Discord community to discuss features, ask questions, and share ideas with our growing community of developers.
The following is an overview of the steps required to get started with Wix Headless. Follow the links in each step to get your project set up and ready for development.
If your business already has a live Wix site and you want to enable additional clients to access and manage the site's business data via APIs, you can skip to the next step. Otherwise, begin by creating a new project.
To take advantage of business solutions, such as eCommerce, Bookings, Pricing Plans, or Events, add the apps relevant to your needs. If you didn't already do this when creating your Wix project, add apps to your project now.
To work with Wix APIs in your Headless site or app, you need to be authorized to call APIs. The authorization strategy you should choose depends on what kind of headless site or app you are developing.
- Visitors and Members (OAuth): An external site or app for use by customers, such as anonymous visitors and logged-in members. To get started with this authorization strategy, start by creating an OAuth app.
- Admin (API Key): An external site or app with customized administrative access to your Wix account's sites and projects. To get started with this authorization strategy, start by generating an API key.
In some cases, you may want to use more than one authorization strategy or use a number of API keys in the same site or app.
To learn more about authorization strategies, see Authorization Strategies.
At this point your project is all set up and you're almost ready to start coding. Next, you need to choose how you're going to call Wix APIs.
There are two ways to interact with the Wix platform from the site or app you're building:
- JavaScript SDK: If you're coding in JavaScript, use the JavaScript SDK to call Wix APIs.
- REST API: If you're not coding in JavaScript, use the REST API to call Wix APIs.
In some cases, you may want to work with both the JavaScript SDK and the REST API.