MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

action=tokens

(main | tokens)
  • This module is deprecated.
  • This module requires read rights.

Get tokens for data-modifying actions.

This module is deprecated in favor of action=query&meta=tokens.

Parameter:
type

Types of token to request.

Values (separate with |): aggregategroups, block, delete, edit, email, groupreview, import, move, options, patrol, protect, translatesandbox, translationreview, translationstash, unblock, watchEvery member of a ship's company has two general types of activities, one of these is as a member of watches, wherein he handles his duties of steering, lookout, engines, etc., including emergency drills. (FO 1109)
Default: edit
Examples:
Retrieve an edit token (the default).
api.php?action=tokens
Retrieve an email token and a move token.
api.php?action=tokens&type=email|move