How can i get information of products installed on jira cloud

I want to check If “Jira software” or “Jira service management” products are installed and available on current jira instance
Is there any way to find programatically using some jira cloud api or “jira software” / “jira service desk” api?

@shiv,

You can get all application roles using GET /rest/api/3/applicationrole. Unfortunately, this works only for end-user requests using API Tokens, not for Apps like Forge or Connect.