How to Connect sharepoint on premise to elastic workplace search

I have created a custom api on workplace search. I understood posting csv files to workplacesearch using key and token. But I am trying to understand how to connect sharepoint which is on premise in our company to elastic ? Need some help in understanding how to proceed?

Hi :wave:

Thanks for trying out Workplace Search.

Right now, we only support SharePoint Online. If you need your data from an on premise version of SharePoint into your Workplace Search instance, you will want to use the same Custom API that you are already familiar with.