I maintain a custom Atlassian Connect Confluence Cloud application. I host a service that receives the Atlassian Connect shared secret from the application and uses it to make JWT authenticated requests to the Confluence Cloud REST API. Recently (sometime around 2025-04-21), all of the requests that my service makes to the following analytics endpoints have started failing with an HTTP 500 status code (all requests to other Confluence Cloud REST API endpoints are unaffected and are still successful).
The body of the HTTP response shows the following:
{"statusCode":500,"message":"com.atlassian.confluence.mvc.rest.common.exception.StacklessResponseStatusException: 401 UNAUTHORIZED \"Request rejected because this resource requires ASAP authentication.\""}
These requests were previously working using Atlassian Connect JWT authentication and the public documentation for these endpoints has not changed - the docs still say that Connect App authentication is supported and it says nothing about requiring or supporting ASAP authentication. I tried using ASAP authentication to authenticate these requests, but in order for it to work, I need to register a public key with Atlassian so they can verify the JWT token that I am signing with my private key and I was unable to find any instructions for how to register my public key.
Is anyone else having this problem? Did the authentication requirements for these analytics endpoints change or is this a bug? Are there any known workarounds for this or are there different REST API endpoints that can be used to retrieve Confluence page analytics information? The only information that I'm trying to get is the count of views and viewers for each page.