Is it possible to use "Script API" or "REST API" to get a list of all available palettes on an instance, as well as add a new palette?
Now, as far as I can see, the only way to add your own palette is to edit the XML file through the Theme Studio in Palettes section.