API:Tokens/en

Gets tokens required by data-modifying actions. If you request one of these actions without providing a token, the API returns an error code such as. This module does not use a prefix. The  (cross-site request forgery) token corresponds to the majority of older tokens, like   and , that were retrieved using the API action tokens (deprecated in MediaWiki 1.24).

Possible errors
In addition to the usual errors, other errors may be returned in the following format:

Possible errors include:


 * Unrecognized value for parameter "type"