Why can't I get Likes on a document via AP.Request?

I can get Likes via /wiki/rest/likes/1.0/content/{id}/likes in the browser, but not if I call via AP.request?
It returns a 403 error.
Any ideas?

Hi @james.dellow,

I’m not familiar with this API. Do you have a link to the API documentation for this?


Unfortunately, it appears to be an undocumented API.

Have you tried checking the content property (https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/)?

@james.dellow Can you provide the use case you’re trying to achieve and I can bring that to the team for consideration?

Hi @james.dellow,

Likes can also be retrieved directly from the Content API’s metadata (via expand). For example:


Would that work for your use case?



Thanks - I hadn’t noticed that Likes were there!

Is it intentional that it doesn’t work for anonymous users?
I get a 500 error?
org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only