This is indeed undocumented, the insight insight here is that Tokens() is actually just a collection. A very special one, but you can do everything with Tokens() that you can do with a a regular collection, e.g. Collection(‘some name’). Which you can already see from the code you have posted here:
This syntax is very similar to the one to create a regular document right (you could even add data on a token if you would want to)
You can then use that knowledge and apply it to roles. It’s possible to write a role that gives access to create tokens. Do be careful about that since that means he can create tokens on many collections (if you would have multiple types of tokens). An example below from a skeleton application that I will release shortly: