For AI agents: the complete documentation index is available at https://types-mediawiki-response.pages.dev/zh/llms.txt, the full documentation bundle is available at https://types-mediawiki-response.pages.dev/zh/llms-full.txt, and this page is available as Markdown at https://types-mediawiki-response.pages.dev/zh/api/core/ApiQueryTokens.md.
  • 中文
  • Interface: ApiQueryTokens

    Defined in: core/query/tokens.ts:9

    Tokens returned by meta=tokens; which keys appear depends on type.

    Indexable

    [token: `${string}token`]: string | undefined

    Extension-provided tokens follow the same <type>token shape, e.g. CentralAuth's deleteglobalaccounttoken / setglobalaccountstatustoken.

    Properties

    createaccounttoken?

    optional createaccounttoken?: string

    Defined in: core/query/tokens.ts:29

    type=createaccount.


    csrftoken?

    optional csrftoken?: string

    Defined in: core/query/tokens.ts:11

    Anti-CSRF token for most write actions. type=csrf (the default).


    logintoken?

    optional logintoken?: string

    Defined in: core/query/tokens.ts:26

    type=login.


    patroltoken?

    optional patroltoken?: string

    Defined in: core/query/tokens.ts:17

    type=patrol.


    rollbacktoken?

    optional rollbacktoken?: string

    Defined in: core/query/tokens.ts:20

    type=rollback.


    userrightstoken?

    optional userrightstoken?: string

    Defined in: core/query/tokens.ts:23

    type=userrights.


    watchtoken?

    optional watchtoken?: string

    Defined in: core/query/tokens.ts:14

    type=watch.