Zoom sample not working

I am new to Zoom. I am trying to execute the Zoom sample application given in node.js with my api key and security code. My account is a pro account so my key and security must be usable for all management functions. I can do all the work in zoom playground but with the same key and security code I am not able to execute the application sample code of nodejs. What can be the probable issues? The error given is invalid master key or security code. I have attached the error screenshot with this post. Any help would be appreciated
.

What api are you trying to call? This error seems like you are trying to perform an account api endpoint which are only to be used by master accounts to manage sub accounts.