
Devin AI
Let AI connect your sources for you
Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Connect Devin AI to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.
Enter your Devin service user API key and organization ID to sync your Devin data into the PostHog Data warehouse.
Create a service user API key (prefixed cog_) in your Devin organization settings. The service user needs the following organization-level permissions:
ViewOrgSessions— SessionsManageAccountKnowledge— Playbooks and Knowledge notesViewOrgMembership— MembersManageOrgSecrets— Secrets (metadata only; values are never synced)
Your organization ID is the org-... identifier shown in your Devin organization settings.
Configuration
| Option | Type | Required |
|---|---|---|
API key | password | Yes |
Organization ID | text | Yes |
Linking Devin AI to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select Devin AI
- Fill in the required configuration fields
- Click Next, select the tables you want to sync, and then press Import
Supported tables
| Table | Description | Sync method | Incremental field | Primary key |
|---|---|---|---|---|
sessions | A Devin agent session — one run of the autonomous engineer against a task, including its status, consumed ACUs, and any pull requests it opened. | Full refresh | — | session_id |
playbooks | A reusable Devin playbook — a saved set of instructions that can be attached to sessions. | Full refresh | — | playbook_id |
knowledge_notes | An org-level knowledge note that Devin can reference while working. | Full refresh | — | note_id |
members | A member of the Devin organization. Join sessions.user_id to members.user_id to resolve who ran a session to their email and name. | Full refresh | — | user_id |
secrets | Metadata for an org-level secret available to Devin sessions. Secret values are never returned by the API and are not synced. | Full refresh | — | secret_id |