If you’re part of an enterprise with multiple organizations or custom roles, see the Enterprise quick start instead.
Step 1: Create a service user
- Go to Settings > Devin API in your organization and open the Service users tab
- Click Provision service user
- Choose a descriptive display name (e.g., “CI Pipeline”, “Monitoring Bot”)
- Select a role in the Organization role dropdown. The form has no individual permission checkboxes: a service user gets its permissions from the role you pick.
- Admin — full access, including organization settings and membership
- Member — can create and manage Devin sessions and most organization resources, but not organization settings or membership
- Choose an Expiration. It defaults to 30 days; the other options are 7 days, 90 days, and, where your account allows it, Never. After the expiration date the service user’s API key stops working, so provision a replacement before then. A shorter expiration limits how long a leaked key can be used.
Step 2: Copy your API key
- After you provision the service user, its API key is shown in a dialog
- 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:Playbooks are moving to Skills. In a teams account that has moved,
/playbooks writes go to the playbook’s skill. An account created on or after October 24, 2026 with no playbooks gets 410 from the /playbooks endpoints.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 automations for recurring tasks

