Cognition Labs
Cognition Labs is the applied AI lab behind Devin, the autonomous AI software engineer that plans, writes, tests, and ships code inside its own shell, code editor, and browser. The Devin API lets teams create and drive Devin sessions programmatically - sending prompts and follow-up messages, attaching files, storing organizational knowledge and reusable playbooks, injecting secrets, and tracking Agent Compute Unit (ACU) consumption - across a legacy v1 surface, a v2 enterprise surface, and a current v3 organizations/enterprise surface built around service-user and personal access tokens.
APIs
Devin Sessions API
Create a Devin session with a natural-language prompt and optional playbook, snapshot, knowledge, secrets, tags, and a max ACU cap; list sessions with filters; retrieve full ses...
Devin Messages API
Send follow-up messages into a running Devin session to steer, correct, or add context to its work, and list the message history of a session. The session must be in a running s...
Devin Attachments API
Upload files (multipart/form-data) for Devin to work with, receiving back a file URL that is referenced in a session prompt as ATTACHMENT:"{file_url}", and download attachment f...
Devin Knowledge API
Create, list, update, and delete organization-level knowledge entries and folders - persistent notes with a trigger description that Devin automatically pulls into relevant sess...
Devin Playbooks API
Create, retrieve, list, update, and delete team playbooks - reusable, named instruction sets that seed new Devin sessions via a playbook_id so recurring tasks run the same way e...
Devin Secrets API
Create, list, and delete organization secrets (cookie, key-value, dictionary, or TOTP types) that Devin can use inside sessions without exposing values back over the API; list r...
Devin Organizations API
Current (v3) organization-scoped surface at /v3/organizations/{org_id} - create and manage sessions with optional user attribution, list/invite/delete organization users, and re...
Devin Enterprise API
Cross-organization administration at /v3/enterprise and the v2 enterprise surface - create, list, update, and delete organizations and their members, provision and revoke servic...
Devin Usage & Consumption API
Read enterprise- and session-level Agent Compute Unit (ACU) consumption - daily totals across an enterprise, per-organization and per-user daily consumption, and per-session usa...