MediaWiki 1.37/Deprecation of legacy API token parameters

In November 2014 (change 153110) the MediaWiki Action API deprecated the many differnet ways of obtaining tokens, in favour of a central CSRF token query. The API responses for these deprecated features has included deprecation warnings for the past six years.

What to use instead
Since 2014,  is the central way to obtain CSRF tokens from the API.

For example, to obtain a patrol token and edit token, use: api.php?action=query&meta=tokens&type=watch|patrol For more examples and help, check out the API:Tokens manual on mediawiki.org.