I took a look at the documentation and I couldn’t find saveactions API documented anywhere.
It seems to me we are using an internal which can be changed anytime. If we need to rely on such feature, we should ask to rspamd maintainer if the API can be considered stable and added to the official doc (we can help on this).
honestly I used the firefox developer tool to catch the message and save it as a curl action, I suppose yes we need to ask it, but it is the way that the rspamd UI talk to the rspamd daemons
At the end the trick in nethgui is not so easy, I need to try again, or ask to the @davidep