Using CheckMK rest-api extract metrics

In WATO → Users you need to cerate a user with automation secret:

And give him the necessary permissions.

I hope that helps.

regards

Michael