How to generate public URL for a server document via RestAPI?

Task: generate a public link to a file on the seafile server - via a python program.

I’m looking for the API documentation (specific calls) and (if possible) python code example(s)

(I have the feeling, I saw the docu a few month ago - but can’t find it anymore. Am I using wrong keywords now? )