MediaWiki API hulp

This is an auto-generated MediaWiki API documentation page.

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

meta=tokens

(main | query | tokens)

Gets tokens for data-modifying actions.

Specifieke parameter:
Other general parameters are available.
type

Types of token to request.

Waarden (gescheiden met | of alternatief): createaccount, csrf, login, patrol, rollback, userrights, watch
Gebruik * om alle waarden op te geven.
Standaard: csrf
Voorbeelden:
Retrieve a csrf token (the default).
api.php?action=query&meta=tokens [open in de zandbak]
Retrieve a watch token and a patrol token.
api.php?action=query&meta=tokens&type=watch|patrol [open in de zandbak]