The assets API can be used to list accounts including the "id" field used in other API calls.
Here is an example call which lists all accounts with a selection of fields:
https://chapi.cloudhealthtech.com/api/search?api_version=2&name=AwsAccount&fields=name,amazon_name,owner_id