HTTP functions let you expose the functionality of a Wix site as various APIs. If you’ve added custom functionality to a site with code and want to use it in an app, you can expose HTTP functions and call these APIs in your code.
Use the HTTP Functions API to call your site’s HTTP functions with an authentication context. The authentication context provides information about who is calling an API. This means you can use functions that return different responses based on the caller, such as getCurrentMember()
, within your HTTP functions.
It's important to note the following points before you begin to code: