I believe that it can be done, though the UI is rather easier...
You would normally need to create a new TVH user record for your client device, which can be done using api/access/entry/create. Then create a password record using api/passwd/entry/create, including the 'authcode' as in the snippet below:
{
"uuid": "2f2ef17dec370a5ee4f46443095cc898",
"enabled": true,
"username": "test",
"auth": [
"enable"
],
"authcode": "PVbj4aCNGDCSOLcyEpKaJK2W8PdQ",
"wizard": false
}
I believe the authcode is simply base64-coded random noise.
However I'm having problems getting the token feature to work reliably so I may have overlooked something.