"Invalid api key or secret" error in Server-to-Server OAuth app

After some debugging together, we figured it out @beirne !!!

Here are some steps to debug and fix this issue if you are getting the same error

  1. Make sure that you have the right permissions enabled in your account to be able to user the Server-to-Server OAuth app, you can do so in the Web Portal, by going to User Management > Roles > Role Settings > Advanced features (this can only be done by an Administrator or the Owner of the account)

  1. Make sure that your application is a Server-to-Server OAuth app in the Marketplace (here is a link to our Docs: Create a Server-to-Server OAuth App)

  1. Last but not least, every time you make any changes to your app (like adding scopes or features) make sure to activate the app in your account.

Hope this helps!
Elisa