API for accessing Compass component from Jira Connect app

I would like to request all components that are configured on Compass as well as search for components by there Compass componentAri.

All the Jira API work around the scope of a project, or are limited by the getting of a component by its Id only.

I tried accessing the information from the GraphQL API, but I keep getting the error Auth category: UNAUTHENTICATED is not allowed in service compass.
The bearer token I’m using if provided by the OAuth2JwtTokenService I also tried the OAuth2ClientCredentialsTokenService but this gives an invalid_client error.

Is there a way to access the Compass Component catalogue from a Jira connect app?

I found that the Components project page is using this query

{
  "operationName": "gqlJiraJswComponentsTableComponentsQuery",
  "variables": {
    "cloudId": "my-cloud-id",
    "query": {
      "first": 25,
      "fieldFilters": [
        {
          "name": "entityId",
          "filter": {
            "in": [
              "component-ari-1",
              "component-ari-2"
            ]
          }
        }
      ]
    }
  }
}

Is this a query that other apps can use as well and if so how?