Welp, tried deleting my account’s access for the app (word-count), and I’m getting 401 errors again after trying to trigger it again from the menu.
Here’s the “refreshed” permissions granted per the Connected apps screen:
word-count can perform the following actions:
Read all content, including content body (expansions permitted). Note, APIs using this scope may also return data allowed by read:confluence-space.summary. However, this scope is not a substitute for read:confluence-space.summary.
View details regarding content and its associated properties.
Read a summary of the content, which is the content without expansions. Note, APIs using this scope may also return data allowed by read:confluence-space.summary. However, this scope is not a substitute for read:confluence-space.summary.
I didn’t try this yet but you are on the right track here. If the REST API is not documented, most likely it doesn’t support the [OAuth 2.0 scopes] and that’s why the app is failing with a 401.
But then it’s strange that is happens also for the Search content by CQL API.
When this happens, I usually try an uninstall and reinstall the app. Maybe something unexpected happened during the installation and the scopes haven’t been set as expected.
Ah, at various points when I was testing where I uninstalled/reinstalled/redeployed/set up a tunnel/ (I think this was only with the Development version), I DID get prompted to “Allow access”, so I do think that step is still valid. I didn’t figure out how to reproduce it exactly.