This guide walks you through setting up API access for teams and standard organizations (non-enterprise). You’ll create a service user, get your credentials, and make your first API call in minutes.Documentation Index
Fetch the complete documentation index at: https://docs.devin.ai/llms.txt
Use this file to discover all available pages before exploring further.
If you’re part of an enterprise with multiple organizations, custom roles, or SSO, see the Enterprise quick start instead.
Step 1: Create a service user
- Go to Settings > Service users in your organization
- Click Create service user
- Choose a descriptive name (e.g., “CI Pipeline”, “Monitoring Bot”)
- Select a role:
- Admin — full access to manage sessions, knowledge, playbooks, secrets, and settings
- Member — can create and manage Devin sessions, view resources
Step 2: Generate an API key
- After creating the service user, click Generate API key
- Copy the key immediately — it starts with
cog_and won’t be shown again - Store it securely as an environment variable:
Step 3: Make your first API call
Create a Devin session:Want sessions attributed to your user? By default, sessions are attributed to the service user. To create sessions on behalf of a specific user (so they appear in that user’s session list), add
"create_as_user_id": "user_abc123" to the request body. This requires the Admin role (which includes the ImpersonateOrgSessions permission). See Session attribution for details.Step 4: Common operations
List your sessions
Send a message to a running session
Manage knowledge
Permissions for teams users
Teams organizations have a simple permission model:| Role | Can create sessions | Can manage resources | Can manage settings |
|---|---|---|---|
| Member | Yes | Yes (knowledge, playbooks, secrets) | No |
| Admin | Yes | Yes | Yes |
Next steps
- Browse the Organization API endpoints in the sidebar
- See common flows for common integration patterns
- Learn about authentication in depth
- Set up scheduled sessions for recurring tasks
