Insight docs say that Insights REST API supports the same authentication methods as Jira REST API. I was trying to make it authenticate via OAuth and could not make it work
I am using Cloud Jira (https://<org>.atlassian.net/) and generated OAuth tokens for that URL and I am using Insight REST API through this API -
Hi,
I understand you are trying to use OAuth to authenticate in order to use the Insight REST API endpoints. For other auth methods like basic auth, you can just call the direct cloud site, (ex https://example.atlassian.net )
However when using OAuth 2.0, the calls are directed to a different site, and with a different URL structure. This is explained in https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/#authentication
Instead of trying to call https://api.atlassian.com/jsm/insight/workspace/<workspace_id>
Try instead to call in the format of https://api.atlassian.com/ex/jira/<cloudId>/rest/api/3/<resource-name>
which in your case the URL to call would look something more like this:
https://api.atlassian.com/ex/jira/<cloudId>/jsm/insight/workspace/{workspaceId}/v1/object/{id}
I recommend walking through the steps in OAuth 2.0 (3LO) apps in order to make sure that you have configured the authorization correctly here.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.