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)

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
Example:
تست اعتبار یک توکن csrf
api.php?action=checktoken&type=csrf&token=123ABC [open in sandbox]