Access to Insight API inside Connect app

Hi Team!

How can I acees Insight API inside Connect app (e.g., https://api.atlassian.com/jsm/insight/workspace/{workspaceId}/v{version}/object/{id})? Documentation says that you need use Basic auth with API token, email of user encoded in base64. But how to make requests inside connect app? I tried several methods (from my app backend with addon.checkValidToken(), with AP library, with axios together with JWT authorization header) and all of them return me 401 ‘Unauthorized’ error. Maybe I can get API token (not JWT) inside my app?

Thanks!

@veloti,

Yes. To my knowledge, none of the Connect JWT mechanisms will work. Your client will need to ask the user for an API token.

2 Likes

ibuchanan Thanks for answer!