I am trying to automate the process to export the botContent by hitting this endpoint:
https://powerva.microsoft.com/api/botmanagement/v1/botContentMetadata/exportcontent
This is possible by providing the X-CCI-TenantId, X-CCI-BotId, and a bearer token. As of now the only way I know how to retrieve the token is by logging into the PVA environment, opening up dev tools and grabbing it from a request in the network tab. Is there an endpoint that can be used to get a token to authenticate with the PVA?
One process I was considering:
I have not started the process of getting this app admin consent because I don't know if this is a viable solution. Any suggestions on a good method to obtain the token? This will be done regularly, and for a few bots so some automation would be very beneficial.