How can I uniquely identify a file I just uploaded?

@Michael_CLift I am using this query to fetch the file URL. It is giving me error ‘Access denied for mediaErrors field. Required access: read_products access scope.’ If I give read_products scope it is working correctly. But why I need to give that access to read file url? Any idea?