AFAIK, I don't think there are any APIs like that to achieve this in Linux. However, we can make use libfuse (https://github.com/libfuse/libfuse) to achieve the same. Earlier, cloud storage vendors like Dropbox, Box, Google Drive, NextCloud, and Filr made use of the same library prior to the advent of File Provider API and Cloud Provider API (which are very recent technologies, but standardized for macOS and Windows).
From my limited knowledge, I think libfuse makes use of a kernel extension to create a virtual filesystem where you can implement filesystem calls. There are many abstraction layers written on top of libfuse for different programming languages like rust, objc/c++, python etc...
For Eg.
Apple stopped loading of 3rd party kernel extensions from macOS 11, so their alternative offering to fuse-based cloud storage clients is File Provider API.
In Windows, prior to the Cloud Storage API, the same was achieved using Minifilter drivers (https://learn.microsoft.com/en-us/windows-hardware/drivers/ifs/filter-manager-concepts)
These alternative APIs are offered by Apple and Microsoft for their respective platforms, mainly because of securiry reasons. A small flaw is kernel or a driver code would be fatal for the entire OS.
So, I think libfuse would be the best approach for Linux-based OS'es for now, until someone comes up with a more feasible solution.