Check out the API references in this post.
Keep in mind this won’t give you an option for an automated push/pull sync service. You could maybe do something on a schedule using Shortcuts automation to trigger things on a mobile device or a scheduler on a n always on Mac.