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:
- [Dataverse Web API Reference] https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/overview
- [Power Platform CLI Reference] https://learn.microsoft.com/en-us/power-platform/developer/cli/introduction?tabs=windows
- [Dataverse .NET SDK] https://learn.microsoft.com/en-us/power-apps/developer/data-platform/org-service/overview
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.