MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

action=checktoken

(main | checktoken)
  • This module requires read rights.
  • Source: MediaWiki
  • License: GPL-2.0+

Check the validity of a token from action=query&meta=tokens.

Parameters:
type

نوع من الرموز يجري اختبارها.

This parameter is required.
One of the following values: createaccount، csrf، login، patrol، rollback، userrights، watch
token

اختبار الرموز.

This parameter is required.
maxtokenage

أقصى عمر للرمز يسمح، في ثوان.

Type: integer
Examples:
Test the validity of a csrf token.
api.php?action=checktoken&type=csrf&token=123ABC [open in sandbox]