Generate API Token

I am trying to understand the process for creating an auth token via the API. I may be missing it in the documentation. Can someone please point me to the API to generate an API token an associate it?

I want to be able to programmatically list members of a network and get their status. I see how those API’s work, but I am trying to figure out the authentication piece. Sorry if this is a trivial question.

Creating an API token via the API itself is not a documented part of the API. It’s done via the web UI by logging in to your account at and going to the Account page.

That explains it. I want to automate that if I can, so that I can rotate the token.