Requirement: Urgently: By which permission (API key) we can use API to fetch all pages count (including-Restricted & deleted) per space.
Currently Using: I am using '/wiki/rest/api/content?' API to fetch page counts with my API key(credentials) but it is not giving page counts which are restricted & deleted on the cloud. However, if I am running '/rest/api/content?' on the on-prem system it is giving page count including restricted & deleted pages
Why: We are migrating our confluence instance to the cloud so want to compare page count per space after migration to make sure nothing was missed because as we did the same on test instance and we observed few pages missed in migration but migrated successfully when we re-run again.