Accessing root API token after headless install

I’m also wondering how to achieve this since username/password authentication is no longer accepted by the API.

Update: I ended up finding the solution here.