Learn how to programmatically access enterprise-specific features and reporting using our REST API
The Devin Enterprise API provides programmatic access to enterprise-specific features including consumption tracking, member management, and organization administration.
The Enterprise API is currently in beta. While we strive to maintain backward compatibility, some endpoints may change as we improve the API.
Access the standard Devin API documentation for sessions, secrets, and knowledge management.
Enterprise API endpoints require a valid API key with enterprise admin permissions. You can obtain an API key from your settings page.
Keep your API keys secure and never share them in publicly accessible areas such as GitHub repositories or client-side code. Enterprise API keys provide access to sensitive organizational data.
Our Enterprise API provides endpoints organized into the following categories:
Track and analyze ACU consumption across your enterprise:
List all billing cycles for the enterprise
Get daily consumption data for the current billing cycle
Get daily consumption data for a specific user
Track pull request and usage metrics for your enterprise:
Get pull request metrics for your enterprise
Get usage metrics (sessions and searches) for your enterprise
Get search count metrics for your enterprise
Manage enterprise members and their access:
Get a paginated list of all members in your enterprise
Get detailed information about a specific enterprise member
Permanently delete an enterprise member
Get organizations that a specific user has access to
Manage enterprise IdP (Identity Provider) groups and their organization associations:
IdP groups must be explicitly enabled for your enterprise and are only supported for some enterprise SSO connections. Contact your administrator to enable group support.
Get a paginated list of all IdP groups in your enterprise
Get detailed information about a specific IdP group
List organizations that an IdP group belongs to
Manage organizations within your enterprise:
Get a paginated list of all organizations in your enterprise
Create a new organization within your enterprise
Get detailed information about a specific organization
Update the ACU limit for a specific organization
Get groups within a specific organization
Add an IdP group to an organization with a specific role
Remove an IdP group from an organization
Get members within a specific organization
Get git permissions for a specific organization
Monitor and manage your VPC infrastructure:
Track and analyze audit logs across your enterprise:
All Enterprise API endpoints use the base URL:
Many Enterprise API endpoints support pagination using the following query parameters:
skip
: Number of items to skip (default: 0)limit
: Maximum number of items to return (default: 100, max: 1000)Paginated responses include:
items
: Array of result itemstotal
: Total number of items availableskip
: Number of items skippedlimit
: Maximum items per pagehas_more
: Whether more items are availablenext_cursor
: Cursor for the next page (if applicable)The Enterprise API uses standard HTTP status codes and returns detailed error information in JSON format:
For questions about the Enterprise API or to report issues, email support@cognition.ai.