How to create a tag in code?

Can I create a client tag from a script?

There isn’t a scripting call for this. Through the module API it is possible…

ok so I’m not missing something in the manual.