I like to configure a redirect for two confluence spaces we have migrated to another instance, so users which use an old link will be redirected two the new instance. The problem is for confluence pages which use Page ID URLs instead of friendly name URL, e.g. https://xxx.atlassian.net/wiki/pages/viewpage.action?pageId=57686360
So I need a way to identify pages from the two migrated spaces, but I can’t find a way to get the spacekey or space ID by page ID. At least, I don’t find any method in the REST API documentation.
Is there really no way?