API for Internal Links


I am trying to integrate my current basic CRM with NextCloud and I was wondering if there was an API to generate internal file links. The CRM simply collects the files, but I would like to use NextCloud as a solution for complete internal document sharing and was trying to get a way to get the link through an API.