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)

Gets tokens for data-modifying actions.

Parameter:
type

Types of token to request.

Verdier (separer med | eller alternativ): createaccount, csrf, login, patrol, rollback, userrights, watch
Standard: csrf
Eksempler:
Retrieve a csrf token (the default).
api.php?action=query&meta=tokens [åpne i sandkasse]
Retrieve a watch token and a patrol token.
api.php?action=query&meta=tokens&type=watch|patrol [åpne i sandkasse]