Find out if our app is installed on a specific Atlassian instance from external resource

We want to implement a check for our external (non-marketplace) app to find out if the targetted instance has our Atlassian Marketplace Jira app installed or licensed.
The user is authenticated via OAuth, but we were not able to get the License API to work: https://developer.atlassian.com/platform/marketplace/license-api-for-cloud-apps/

Unfortunately the documentation is not very detailled about authorization (or anything else), and when we use the bearer token from our OAuth authentication we only get error messages:

The requested resource requires authentication as an add-on

How to solve this issue and authenticate as an add-on?
Is this the best way to find out if an app is installed / licensed?
We would like to not store and look up the installed client keys and do these checks ourselves as the app could get uninstalled without our knowledge.

Thank you.

Hi @JanaWinkelbauer ,

If the app you want to check is a Connect app, it can call GET /rest/atlassian-connect/1/addons/{appKey}.

If you need to do the check from another app, it won’t be able to call that API, but it might be able to call it indirectly through your Connect app’s backend (i.e. integrate your two apps).

Regards,
Dugald

Hi @dmorrow ,
We are trying to check if an addon is installed on a Jira site from an addon for Confluence (we use OAuth app to integrate Jira & Confluence sites)
I tried /rest/atlassian-connect/1/addons/{appKey}, but it returned error Scope does not match.
I also tried /rest/atlassian-connect/1/addons/{addonKey}/properties (can be used with any scope) but it return error App key not found.
Could you point out why did I get this error, or could you suggest me any other ways?
Thank you! :bowing_woman:

We are also facing similar issue for our cross app integration (Jira app and confluence app).

@dmorrow If you may, could you explain further on this line

but it might be able to call it indirectly through your Connect app’s backend (i.e. integrate your two apps).

Appreciate if you could provide some thoughts on this. :slight_smile: