Security keys
From MoodleDocs
A security key or token enables other systems to access Moodle securely.
A user can obtain a security key via My profile settings > Security keys then enter the key in an external application accessing Moodle.
At any time, a user can reset their key by clicking the reset link. A new different key is automatically generate which will then need to be entered in the external application.