Trying to write an SmartApp that stores internal settings to simplify the event handler logic. (JS) The app has several stages, for each stage, upon device event, there are different reaction.
When I ran
let settings = await context.api.apps.getSettings(context.installedAppId);
2021-12-24T09:06:27.589Z error: Error: Request failed with status code 403
How should I correct my code?