MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

meta=tokens

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

Gets tokens for data-modifying actions.

Parameter:
type

Types of token to request.

Values (separate with |): csrf, patrol, rollback, userrights, 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: csrf
Examples:
Retrieve a csrf token (the default).
api.php?action=query&meta=tokens
Retrieve a 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) token and a patrol token.
api.php?action=query&meta=tokens&type=watch|patrol