What’s changing
Step 1: Create a service user
Replace your legacy API key with a service user:- Go to Settings > Service users
- Create a service user with an appropriate role
- Generate an API key (starts with
cog_) - Update your integration to use the new key
Your legacy API keys will continue to work during the deprecation period. You can migrate incrementally.
Step 2: Update endpoint URLs
Session endpoints
Knowledge endpoints
Playbook endpoints
Secret endpoints
Enterprise-only endpoints (new)
These endpoints have no v1/v2 equivalent — they are only available in the current API:GET /v3/enterprise/organizations— List organizationsGET /v3/enterprise/audit-logs— Audit logsGET /v3/enterprise/consumption/*— Usage and billing dataGET /v3/enterprise/metrics/*— Usage metricsGET /v3/enterprise/members/users— User managementGET /v3/enterprise/roles— Role management- Service user provisioning, IP access lists, ACU limits, and more
Step 3: Update pagination
The current API uses cursor-based pagination instead of offset-based:Step 4: Handle response format changes
Session status values
The current API returns more detailed status information. See the endpoint reference for the full schema.Error responses
Error format remains consistent: HTTP status code + JSON body with error details.Deprecation timeline
Legacy API keys show a deprecation banner in the Devin settings UI. During the transition period:- Now: Legacy API keys continue to work. New organizations may not have access to legacy key creation.
- Deprecation period: Both legacy keys and service user tokens work side-by-side.
- End of life: Legacy API keys will be removed soon. Monitor your Devin settings for announcements.

