Thread:Project:Support desk/Can't generate edit Token/reply

action=tokens is a new api module. Perhaps your version of MediaWiki is too old. Does action=tokens appear as a choice in the api.php?action=help output?