Setup

To use the SDK module, install the @wix/sdk package:

Copy

Or

Copy

Authentication and permissions

SDK API calls must be authenticated using the OAuth protocol.

In Wix-hosted apps, authentication is handled by Wix, but in self-hosted apps and headless projects, you need to create and use a Wix client.

Depending on the context of your code, you may need to elevate the method you want to call.

If you’re developing a wix App, you need to add permissions for the APIs you're calling in the Permissions page in your app's dashboard.

Did this help?