Accessing the License API in Forge

I’m trying to access the license API in a Forge app but encountering problems.

When I make calls to GET /rest/atlassian-connect/1/addons/{appKey} I encounter a 403 error when when requesting as the app or the user:

[{“message”:“OAuth 2.0 is not enabled for method: GET /rest/atlassian-connect/1/addons/agile-docs”}]

I’m notice the API has atlassian-connect in the url. Is this API or an equivalent available in Forge?

I need to access the entitlementId and some other data from this resource.

Hi @RhysDiab, thank you for reaching out.

Unfortunately, as you have already noticed, the API is specific to Connect platform. There is no equivalent available in Forge at the moment and I’m not sure if there is a plan to introduce such API.

However, I can see it’s possible to fetch the product context using either Custom UI or UI Kit:

There is only basic information about active license. What I can advice is raising the feature request in our public Forge issue tracker: Dashboard - Ecosystem Jira

Hope it helps. Best regards,
Łukasz

1 Like

Thanks @ljarzabek

We’re using Custom UI and getContext. There is a license property but it doesn’t appear to contain the entitlementId. I’ll create a ticket :+1:

1 Like