curl -X GET "https://api.devin.ai/v2/enterprise/sessions/insights?limit=10&skip=0" \ -H "Authorization: Bearer YOUR_API_KEY"
Copy
Ask AI
{ "items": [ { "session_id": "abc123", "url": "https://app.devin.ai/sessions/abc123", "status": "exit", "title": "Fix authentication bug", "tags": ["bug-fix", "auth"], "user_id": "user_456", "org_id": "org_789", "created_at": "2024-01-15T10:30:00Z", "updated_at": "2024-01-15T11:45:00Z", "acus_consumed": 25.5, "pull_requests": [ { "pr_url": "https://github.com/example/repo/pull/123", "pr_state": "merged", "state": "merged" } ], "session_analysis": { "issues": [ { "issue": "Missing environment variables", "impact": "High", "label": "Configuration" } ], "timeline": [ { "title": "Started repository setup", "description": "Devin began setting up the development environment" } ], "action_items": [ { "issue_id": "issue_1", "type": "machine_setup", "action_item": "Configure environment variables for database connection" } ], "suggested_prompt": { "original_prompt": "Fix the bug", "suggested_prompt": "Fix the authentication bug in the login endpoint by checking the JWT token validation", "feedback_items": [ { "issue_id": "issue_1", "summary": "Prompt too vague", "excerpt": "Fix the bug", "details": "The prompt should specify which bug and provide more context" } ] } }, "initial_user_message": "Please fix the authentication issue in our login system" } ], "total": 150, "skip": 0, "limit": 10, "has_more": true, "next_cursor": 10}
Enterprise Sessions
List Enterprise Sessions (Insights)
Get a paginated list of Devin sessions with detailed analysis data for your enterprise
GET
/
v2
/
enterprise
/
sessions
/
insights
Copy
Ask AI
curl -X GET "https://api.devin.ai/v2/enterprise/sessions/insights?limit=10&skip=0" \ -H "Authorization: Bearer YOUR_API_KEY"
Copy
Ask AI
{ "items": [ { "session_id": "abc123", "url": "https://app.devin.ai/sessions/abc123", "status": "exit", "title": "Fix authentication bug", "tags": ["bug-fix", "auth"], "user_id": "user_456", "org_id": "org_789", "created_at": "2024-01-15T10:30:00Z", "updated_at": "2024-01-15T11:45:00Z", "acus_consumed": 25.5, "pull_requests": [ { "pr_url": "https://github.com/example/repo/pull/123", "pr_state": "merged", "state": "merged" } ], "session_analysis": { "issues": [ { "issue": "Missing environment variables", "impact": "High", "label": "Configuration" } ], "timeline": [ { "title": "Started repository setup", "description": "Devin began setting up the development environment" } ], "action_items": [ { "issue_id": "issue_1", "type": "machine_setup", "action_item": "Configure environment variables for database connection" } ], "suggested_prompt": { "original_prompt": "Fix the bug", "suggested_prompt": "Fix the authentication bug in the login endpoint by checking the JWT token validation", "feedback_items": [ { "issue_id": "issue_1", "summary": "Prompt too vague", "excerpt": "Fix the bug", "details": "The prompt should specify which bug and provide more context" } ] } }, "initial_user_message": "Please fix the authentication issue in our login system" } ], "total": 150, "skip": 0, "limit": 10, "has_more": true, "next_cursor": 10}
Returns a paginated list of all Devin sessions within your enterprise, including comprehensive session analysis, initial user messages, pull request information, and ACU consumption data. This endpoint provides more detailed information than the basic List Enterprise Sessions endpoint.