Since v. 2.6.2 we added the ability to fetch the list of all created companies via REST API. You can find the '
amasty/module-company-account-subscription-functionality' package for installing in composer suggest. Kindly note that the feature is available as a part of an
active product subscription or support subscription.