How to login and get the API token with username and password?

Ahoi, this is not yet published in the Cockpit-HQ, right? Is it planned to be? @artur

I put this for local testing in the api.php but the /auth/check is not known (404). Any tipps how to make this work?

Thanks a lot.