After creating a public link of a File using ContentDistribution, you get the below URL
https://--c.documentforce.com/sfc/dist/version/renditionDownload?rendition=ORIGINAL_Jpg&versionId=068q0000000RAdv&operationContext=DELIVERY&contentId=05Tq0000001RiQf&page=0&d=/a/q00000008a0b/6woo3x9YQNR7vTXR2oOOmknAOjpytHMEnZc2nGQ3F54&oid=&dpt=null&viewId=
How to query the Content Id of a File? I can see the URL already contains the Version Id this means the Content Id is something diffrent.