If you want to get the bot id(id from azure registration), then it is currently not supported.
GET /appCatalogs/teamsApps returns the externalId which is the ID of the catalog provided by the app developer in the Microsoft Teams zip app package.
Thanks,
Meghana
*************************************************************************
If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.