Dependency Risk report access via API - Enterprise only?

Hi, I’m currently trialing the Dependency Risks report feature on the Cloud Teams plan and it produces the analysis results but when I try to interact with the risks report via API I get a 403. The documentation I read seems to indicate the Enterprise plan is required for the report access, does that mean I cannot meaningfully use this add-on in a API-driven workflow unless I also upgrade to the fullest/Enterprise plan? Thanks for any clarifications on this.

Hey @NickKellett, welcome to the Community! Indeed, the docs state:

All reporting features are only available on the Enterprise plan.

Most likely, this includes the API you’re trying to hit. What is it exactly that you’re trying to obtain via this API? You cannot use reporting APIs but perhaps you could obtain what you need via other APIs which are not Enterprise-gated.

Hi Andrés, thanks for the welcome and the reply. I’m trying to get the list of dependency risks (title, basic description, triggering package(s), “where is it”) as part of my API driven/agentic workflow. It doesn’t have to be in a formal report but the docs seem pretty clear it’s that report endpoint. If so it’s an Enterprise feature but then that feature would appear to be largely unuseable for automation on the Team plan since there’d be a lot of individual manual steps to have an agent or system service gather even basic dependency risk information that can be seen by a human in the cloud interface. I just wanted to confirm that.

Hey @NickKellett, you could consider using the APIs served under https://api.sonarcloud.io/sca/issues-releases. It’s not as rich as the Enterprise reports, but this is, effectively, the API used by the Dependency Risks project page in the UI. For example, when going to that page, the UI runs GET https://api.sonarcloud.io/sca/issues-releases to list all the issues, and when clicking on an issue, it’s GET https://api.sonarcloud.io/sca/issues-releases/<UUID>.

This is the way that you can automate stuff that you would otherwise do in the UI. You can use the dev tools in the browser to figure out how it’s all hooked together, and you can also refer to the API docs.

Thank you so much, that worked. I appreciate your help.