The principle of the API is simple - it uses messaging through variable in StorageUtil.
Here are a few commands already available.
Check if the player is enslaved:
Check if the player is infected by a Spriggan host:
Prevent an NPC/Follower from being stripped if enslaved (for special cases using Outfits, like the SexBot in SexLab Stories or Ali the Succubus in Alicia).
StorageUtil.SetIntValue( akActor, "_SD_iCanBeStripped", 0)
For more detailed commands, check out the wiki page in the Github repository: