Documentation of the Joplin Server Synchronization Protocol

Hi,

I'd like to integrate my app with Joplin Server using the same synchronization protocol as Joplin Client itself.

Where can we find the documentation of the Joplin Server synchronization protocol?

Thanks,

--Martin