S Pen SDK

You can open a support request and the support team may have more information for you or some links on where to go.

All I could find is the Stylus Accessory Overview in the Android and that has a link to Android API

Ron
Samsung Developer Relations