With the following Url I found a way how to extract the secret keys of a webchat bot:
https://dev.botframework.com/api/bots/{bot_id}/channels/webchat"
It will return a JSON response like following: webchat secret keys
This works well when I call it in a browser and when I am logged in on https://dev.botframework.com/. Now I would like to script it with powershell. Before starting to script it, I tried to call it with Postman. My problem is that I need a token (access token?) to call it with Postman. If I grab the IntercomAuthCookie from my browser session into the headers in Postman, I get the expected result, like here.
Now my question is: with which API can I get the IntercomAuthCookie?
I tried to get a Bearer access token here with OAuth on https://login.microsoftonline.com/common/oauth2/v2.0/token, but when I use it on the other request I get a "login expired"