MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=checktoken
(main | checktoken)
- This module requires read rights.
- Source: MediaWiki
- License: GPL-2.0-or-later
Check the validity of a token from action=query&meta=tokens.
Specific parameters:
Other general parameters are available.
- type
Type of token being tested.
- This parameter is required.
- One of the following values: createaccount, csrf, deleteglobalaccount, login, patrol, rollback, setglobalaccountstatus, userrights, watch
- token
Δείγμα σας για τη δοκιμή.
- This parameter is required.
- maxtokenage
Μέγιστη επιτρεπόμενη διάρκεια του token, σε δευτερόλεπτα.
- Type: integer
Example:
- Test the validity of a csrf token.
- api.php?action=checktoken&type=csrf&token=123ABC [open in sandbox]