cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
v-miroys
Microsoft
Microsoft

Bearer token authentication with PVA

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.

2 REPLIES 2
nmk
Resolver I
Resolver I

@v-miroys 

 

There could be multiple options as you have already mentioned, however, as low-code approach, I would go for power automate and use Http with Azure connector.

 

 

renatoromao
Super User
Super User

Hi @v-miroys ,

 

Do you have a preference to get data from PVA using PVA API?

Because you can use the DataVerse API, all data are storing inside the MS DataVerse and it's more easier than create App Registration, consent the App, etc.

 

View, export, and manage retention time of your bot conversation transcripts | Microsoft Power Virtu...

Use the Microsoft Dataverse Web API (Dataverse) - Power Apps | Microsoft Docs


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+2.760 students) : English | Português

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Canadian Cloud 2022 768x460.png

Register for a free PVA chatbot creation workshop.

Learn how to respond rapidly to your customers and employees at scale, using intelligent conversational chatbots.

Top Solution Authors
Top Kudoed Authors
Users online (3,278)