ICloud – What protocol does iOS use to sync Notes to a server

icloudnotes.app

I was wondering which protocol the native application for notes on iOS is using to keep the data in sync with iCloud. My aim is to host the notes on my own server, but I could't figure out the protocol. Any help is much appreciated!
I would also be happy about tips on existing open source projects or a protocol specification as I will consider writing my own server application if I don't find any other software.
Thanks in advance.

Best Answer

You can host your own notes if you run an IMAP server. There are additional details in knowledge base article HT4191. A great IMAP server is Dovecot.