web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Bearer token authentic...
Copilot Studio
Unanswered

Bearer token authentication with PVA

(1) ShareShare
ReportReport
Posted on by Microsoft Employee

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.

Categories:
I have the same question (1)
  • nmk Profile Picture
    193 on at

    @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.

     

     

  • CU22081450-0 Profile Picture
    Most Valuable Professional on at

    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 Virtual Agents

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 240 Super User 2026 Season 1

#2
Valantis Profile Picture

Valantis 226

#3
Arild Aarnes Profile Picture

Arild Aarnes 73 Super User 2026 Season 1

Last 30 days Overall leaderboard