Skip to main content
The v3 API provides full RBAC support with service user authentication. This is the recommended API for production automation.
The v3 API is currently in beta. Some endpoints may change as we improve the API.
Base URLs:
  • https://api.devin.ai/v3beta1/enterprise/* – endpoints that require enterprise (account-level) permissions
  • https://api.devin.ai/v3beta1/organizations/* – endpoints scoped to a single organization
Authentication: Service User Credentials (Enterprise or Organization level) (learn more)
Some enterprise endpoints operate on specific organizations but are still guarded by enterprise-level permissions. These use paths like /v3beta1/enterprise/organizations/{org_id}/... (for example, GET /v3beta1/enterprise/organizations/{org_id}/audit-logs). Even though they include an org_id path parameter, they still require enterprise-level permissions such as ManageEnterpriseSettings.

Permissions and RBAC

The v3 API uses Role-Based Access Control (RBAC) with service users. Each endpoint requires specific permissions that are assigned to the service user’s role. Service users can be created at either the enterprise level or organization level, and their permissions determine which endpoints they can access.

Permission Types

The v3 API uses the following permissions:
PermissionDescriptionEndpoints
ManageAccountKnowledgeManage knowledge notes at enterprise or organization levelNotes endpoints (GET, POST, PUT, DELETE)
ManageAccountPlaybooksManage playbooks at enterprise or organization levelPlaybooks endpoints (GET, POST, PUT, DELETE)
ManageEnterpriseSettingsManage enterprise-wide settings including organization tagsTags endpoints, Organization management

Service User Scopes

Enterprise Service Users have access to enterprise-wide resources and can operate across all organizations within the enterprise. They use endpoints under /v3beta1/enterprise/*. Organization Service Users are scoped to a specific organization and can only access resources within that organization. They use endpoints under /v3beta1/organizations/{org_id}/*.

Creating Service Users

Service users can be created via:
  • Enterprise Settings → Service Users: Create enterprise-level or organization-level service users with custom roles
For detailed information on authentication and token generation, see the Authentication Guide.

Self

Get information about the authenticated service user:

Audit Logs

Access comprehensive audit trails:

Consumption

Track detailed consumption metrics:

Organizations

Manage organizations with full RBAC:

Service Users

Manage service users at enterprise and organization levels:

Users

Manage users at enterprise and organization levels:

IDP Groups

Manage IdP groups at enterprise and organization levels:

Git Permissions

Manage repository access:

Notes

Manage knowledge notes at enterprise and organization levels:

Playbooks

Manage playbooks at enterprise and organization levels:

Sessions

Manage organization sessions:

Tags

Manage organization tags (requires session tags feature):

Roles & Metrics

Usage Examples

View Code Examples

Check out code examples and common use cases for the v3 API