MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples:


(main | tokens)
  • Lo module es desaprovat.
  • This module requires read rights.
  • Font : MediaWiki
  • Licéncia : GPL-2.0-or-later

Get tokens for data-modifying actions.

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

Paramètre :

Types of token to request.

Values (separate with | or alternative): block, createaccount, csrf, delete, edit, email, import, login, move, options, patrol, protect, rollback, unblock, userrights, watch
Per defaut : edit
Retrieve an edit token (the default).
api.php?action=tokens [open in sandbox]
Retrieve an email token and a move token.
api.php?action=tokens&type=email|move [open in sandbox]