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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Copilot studio api to ...
Copilot Studio
Unanswered

Copilot studio api to list copilots and get their configuration

(0) ShareShare
ReportReport
Posted on by 2

Hello,

I've created several copilots in our environment and we would like to obtain a list of them, along with the configuration of each, via an API. Is that supported? If so, I would prefer to perform these API HTTP requests using a servicePrincipal identity rather than a user identity.

 

For example: GET https://<some-microsoft-api-url>/listCopilots

I would greatly appreciate your help, whether it's possible or currently not.

Thank you.

Categories:
I have the same question (0)
  • MattJimison Profile Picture
    577 Most Valuable Professional on at

    Hi, @yaiaim .

     

    Yes! You can use the Dataverse web api to get this information from the 'Bots' table.

     

    Here is an example 'get' query where you'd simply need to fill in your Environment Url:
    https://[enter-your-org].crm.dynamics.com/api/data/v9.1/bots?$select=name,authenticationmode

     

    Here's more information on using the API:

    https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query-data-web-api#select-columns

     

    Here's a sample of what the results look like on the above query (remove the ?$select=name,authenticationmode and you'll be able to see all of the properties that are available)

    MattJimison_0-1712988904309.png

     

    Cheers,
    Matt

     


    Find this post helpful? Please mark it as the solution and/or provide kudos so that it will help others in the future.

    Cheers,
    Matt

  • yaiaim Profile Picture
    2 on at

    Thank you @MattJimison .

    My Web API Endpoint is: https://***.crm4.dynamics.com/api/data/v9.2

    When I try this (even with v9.1), I receive a 401 Unauthorized HTTP status. I assume there is some authentication process required on behalf of the servicePrincipal. Could you help with that, please?

    Are there any CURL examples for both authentication and querying those custom copilots?

    Thanks in advance.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 255 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 205 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard