Creating a token
To create a token:
Navigate to Site administration > Server > Web services > Manage tokens.
Click on Create token.
Fill in the User and Service fields. Select the created uder and service. Leave the "Restrict IP addresses" field empty, as well as the "Valid until" setting does not require any configuration.

Click Save changes.
Here is the Moodle token:
