Devin AI

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.

Learn more
PostHog Wizard hedgehog

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 — Sessions
  • ManageAccountKnowledge — Playbooks and Knowledge notes
  • ViewOrgMembership — Members
  • ManageOrgSecrets — Secrets (metadata only; values are never synced)

Your organization ID is the org-... identifier shown in your Devin organization settings.

Configuration

OptionTypeRequired
API keypasswordYes
Organization IDtextYes

Linking Devin AI to PostHog

  1. Go to the Data pipeline page in PostHog
  2. Click New source and select Devin AI
  3. Fill in the required configuration fields
  4. Click Next, select the tables you want to sync, and then press Import

Supported tables

TableDescriptionSync methodIncremental fieldPrimary 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 refreshsession_id
playbooks

A reusable Devin playbook — a saved set of instructions that can be attached to sessions.

Full refreshplaybook_id
knowledge_notes

An org-level knowledge note that Devin can reference while working.

Full refreshnote_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 refreshuser_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 refreshsecret_id