This function creates a new API token with full access to all of a cPanel account's features.
Note:
The token only grants access to the features that the account has access to. For example, if you disable the File Manager feature, the token can't access it.
uapi --output=jsonpretty \ --user=username \ Tokens \ create_full_access \ name='example'
{- "apiversion": 3,
- "func": "create_full_access",
- "module": "Tokens",
- "result": {
- "data": {
- "create_time": 1549467298,
- "token": "JPQNSRU0DH448UJLGXH7KVJECC5QN9N9"
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}