Getting started
Teams quick start
For teams and standard organizations. Create a service user and make your first API call in minutes.
Enterprise quick start
For enterprise customers with RBAC, multi-org support, and advanced permissions.
API structure
The API is organized into two scopes:Organization API
Base URL:https://api.devin.ai/v3/organizations/*
For managing resources within a single organization — sessions, knowledge, playbooks, secrets, and more. This is where most integrations start.
Enterprise API
Base URL:https://api.devin.ai/v3/enterprise/*
For cross-organization management — analytics, audit logs, user management, billing, and infrastructure. Available to enterprise customers.
Both scopes use service user credentials (cog_ prefix). See Authentication for setup.
Session attribution
Service users are separate identities from human users, but you can create sessions on behalf of any user in your organization using thecreate_as_user_id parameter. This means sessions appear in that user’s session list and count toward their usage — just like they created it themselves.
Personal Access Tokens (PATs) coming soon. PATs will let you authenticate directly as your user with the v3 API — no service user or
create_as_user_id needed. Sessions will automatically be attributed to you. Stay tuned for availability.Legacy APIs (v1 and v2)
The v1 and v2 APIs continue to work during the deprecation period but do not receive new features. We recommend migrating to the current API for role-based access control, session attribution, and new capabilities.- v1 API documentation — session management with legacy API keys
- v2 API documentation — enterprise management with legacy API keys
- Migration guide — step-by-step migration from v1/v2
Error handling
All APIs use standard HTTP status codes:200 OK: Successful request201 Created: Resource created successfully400 Bad Request: Invalid request parameters401 Unauthorized: Missing or invalid API key403 Forbidden: Insufficient permissions404 Not Found: Resource not found429 Too Many Requests: Rate limit exceeded500 Internal Server Error: Server error
