MediaWiki API help
Affiliate recommendation
Explore linguistics, Hebrew, and Bible study books 📚
Interested in how languages work? Discover books on linguistics, phonetics, grammar, etymology, semantics, Hebrew language studies, Biblical Hebrew, modern Hebrew, Bible study resources, commentaries, concordances, and the science of human language.
As an Amazon Associate I earn from qualifying purchases.
This is an auto-generated MediaWiki Action API documentation page.
meta=tokens
- Source: MediaWiki
- License: GPL-2.0-or-later
Gets tokens for data-modifying actions.
Specific parameter:
Other general parameters are available.
- type
Types of token to request.
- Values (separate with | or alternative): createaccount, csrf, login, patrol, rollback, userrights, watch
- To specify all values, use *.
- Default: csrf
Examples:
- Retrieve a csrf token (the default).
- api.php?action=query&meta=tokens [open in sandbox]
- Retrieve a watch token and a patrol token.
- api.php?action=query&meta=tokens&type=watch|patrol [open in sandbox]