I’m not sure I can even do this with the API. Any help is appreciated, even if it’s a pointer to the relevant docs.
I’ve been asked to run up some basic tasks via API - report on the number of users, for example.
Reading the docs  it seems to state I need to be an administrator with owner privileges.
This is so bonkers I can’t really believe it.
As I understand it, having the owner role allows one to access billing information, which is a role that we - and probably most orgs - restrict to managers. I don’t know about your manager but mine is too busy doing manager stuff to worry about cranking out the bits to use an API.
Surely there is another way.