Call Extension Api Error

Hi,
I was trying to integrate the call-extension sdk into our app and I was blocked by this error in the /crm/v3/extensions/calling/{appId}/settings API - both POST and GET methods

Error message:

“The account ID provided (xxxxxx) isn’t valid. Make sure that account has installed your app before making this call.”

The account id that was showing up in the error is my developer account id though I chose my main account to authenticate and use it’s oauth access token in the header to call that call extension api.
I’m certain that I’m using my main account’s oauth access token because I checked it via https://api.hubapi.com/account-info/v3/details API and it returns my main account’s details.
Please help

Hi @jimmm, I hope that you are well!
Thanks for asking the Community!
It’s great that you could share the error message with us.
I found this similar post “Oauth Error: The account you selected is a developer account. This app can’t be installed on” from @Jaycee_Lewis that might be of interest.
Also, can you please confirm the following:

1. Has the CLI ever worked for you with this portal?
2. If you generate a new personal access key in the dev portal, then use that in the config file, do you get the same error?
I’d like to invite some of our Top Experts to this discussion: Hi @Teun, @ChrisoKlepke and @MBERARD do you have ideas to help @jimmm, please?
Thanks a lot and have a great day!
Best,
Bérangère

Hi BérangèreL,
Thank you for replying. My issue has been resolved now, I encountered this error because I was using the oauth access token (Authorization Bearer) for the api. But the api requires only sa hubspot api key.

Hi @jimmm, I hope that you are well!
I am really glad to see that you no longer have the error message!
Also, thanks so much for sharing the solution with the Community Members, this is very helpful!
Have a wonderful day and I hope to see you soon around the Community!
Best,
Bérangère