How to access Copilot Studio agent definitions and metrics via API or SDK?

Nachiketha N 0 Reputation points
2025-06-26T14:15:24.18+00:00

I'm working with Microsoft Copilot Studio and want to programmatically access agent definitions (e.g., name,tools, triggers,knowledgebase ,instruction) and usage metrics.

Are there supported Dataverse tables, Web APIs, or SDKs (e.g..NET SDK) that expose this?

If not yet available, is this on the roadmap or in preview

Microsoft Copilot | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Karan Shewale 170 Reputation points Microsoft External Staff
    2025-06-27T05:38:17.74+00:00

    Hi Nachiketha N,

    Thanks for reaching out about programmatic access to Copilot Studio data. Here's what's currently available and some guidance on next steps:

    Current Options Available:

    Dataverse Tables - Your best bet right now

    • Copilot Studio agents are stored in Dataverse tables (bot, botcomponent, botcomponentcollection)
    • You can access agent definitions including name, instructions, knowledge bases, and triggers
    • Use standard Dataverse Web API with Azure AD authentication

    Power Platform Web API

    • RESTful endpoints for querying bot-related tables
    • Supports most CRUD operations for agent definitions
    • Good documentation available in Microsoft docs
    • Power Platform CLI & PowerShell
    • pac copilot commands for basic operations
    • Useful for automation scripts and bulk operations

    Current Limitations:

    • Usage metrics and analytics have limited API access (this is the main gap)
    • Conversation logs are restricted for privacy/compliance reasons
    • No dedicated .NET SDK for Copilot Studio yet (though standard Dataverse SDK works for table access)

    Recommended Approach: Start with the Dataverse Web API to access your agent definitions. For metrics, you'll need to work with what's available in the Power Platform admin center APIs for now.

    Official Microsoft Documentation:

    Roadmap: Microsoft is actively expanding these APIs, particularly around analytics and monitoring capabilities. I'd recommend checking their quarterly platform updates for new releases.

    Let me know if you need help with specific implementation details.

    Thanks,  

    Karan Shewale 

    *************************************************************************  

    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via [Microsoft Teams Developer Feedback] link. Click here to escalate.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.