Note: You are currently viewing documentation for Moodle 3.1. Up-to-date documentation for the latest stable version of Moodle is probably available here: Apihelp-edit-param-token.

MediaWiki:Apihelp-edit-param-token

From MoodleDocs

The token should always be sent as the last parameter, or at least after the $1text parameter.