As of OneFS v7.1, there is no PAPI or RAN access to get the information you are looking for at the moment.  With RAN you can commit a file, but that's about it.  You will need to use the CLI to get at this information right now.
Hello, I don't seem to find this information I am looking for from both RESTful Access to the Namespace API and the Platform API references...  Using either file method or RESTful API, how to find out the smartlock directory settings, such as:
API to query smartlock directory settings and WORM state