HTTP functions allow you to expose the functionality of a Wix site as a service in the form of REST APIs. If you’ve added functionality to a site with code and want to use it in an app, you can expose HTTP functions and call the APIs in your code.
Use the HTTP Functions API to call your site’s HTTP functions with authentication context. Authentication context is information about who is calling an API. This means you can use functions that return different responses based on who calls them, such as getCurrentMember()
, in your HTTP functions.
Create an access token or an API Key to authorize the API call and to provide authentication context to your site’s HTTP functions.