Operations that access or manage information relating to a current site visitor, such as adding items to the current visitor's cart, require OAuth authentication. With OAuth, your site or app can recognize individual visitors and members using tokens to access their data.
In Wix-managed headless projects, the CLI handles OAuth authentication for you. In self-managed headless projects, you need to handle OAuth authentication manually.