Devin integration
Devin by Cognition is an AI software engineer. With the organization API (v3): start Devin sessions on a task, follow and message them, tag, archive or terminate them, upload and download attachments; manage automations that start sessions on events; run code scans, read findings and launch fix sessions; trigger Devin Reviews of pull requests; manage knowledge notes, organization secrets and repository indexing; read ACU consumption, usage metrics and organization members. Sessions, scans and reviews consume ACUs. Not exposed: the enterprise-scope API, the deprecated v3 playbooks and schedules routes and the legacy v1 and v2 APIs, environment setup (snapshot blueprints and builds), security profiles and the account-level AI Gateway metrics and model prices. Authentication is a service user API key or personal access token (cog_...) sent as a Bearer token; the connection also holds the organization id (org-..., shown at the top of Settings, Devin API). Each route needs the permission named in its description.
Say what should happen.
The workflow builds itself.
What you can do with Devin
Each of these is one operation on one endpoint, available both as a workflow step and as a tool an AI agent can call on its own. Nothing bundles several operations into one action, so what a run did stays readable afterwards.
Most endpoints run on the free plan. A few, mainly the ones that publish on your behalf, need a paid plan.
Repository indexing, 6 operations
get_repository_indexingGet repository indexingGETReturns a repository's indexing status: enabled or not, latest search and wiki index jobs and latest indexes. Needs Read.index_repositoriesIndex repositoriesPUTEnables indexing for several repositories and starts index jobs (idempotent), on the given branches or the default branch. Needs IndexOrgRepositories, or with granular repository grants Read plus repo.use_read and repo.index on each repository.index_repositoryIndex repositoryPUTEnables indexing for one repository and starts index jobs (idempotent), on the given branches or the default branch. Needs IndexOrgRepositories, or with granular repository grants Read plus repo.use_read and repo.index on each repository.list_indexed_repositoriesList indexed repositoriesGETLists the repositories with indexing enabled, their indexed branches and latest index jobs. Needs Read.unindex_repositoriesUnindex repositoriesDELETEDisables indexing and clears the configured branches of several repositories (404 if one is unknown). Needs IndexOrgRepositories, or with granular repository grants Read plus repo.use_read and repo.index on each repository.unindex_repositoryUnindex repositoryDELETEDisables indexing and clears the configured branches of one repository. Needs IndexOrgRepositories, or with granular repository grants Read plus repo.use_read and repo.index on each repository.
Session, 6 operations
archive_sessionArchive sessionPOSTArchives a session and its child sessions (is_archived true) and puts running ones to sleep. Nothing is deleted; a message resumes a sleeping archived session. Needs ManageOrgSessions.create_sessionCreate sessionPOSTStarts a Devin session (an AI software engineer) on the prompt. It runs on its own, consumes ACUs and can change code and open pull requests. Poll get_session for status. Needs UseDevinSessions.get_sessionGet sessionGETReturns one session: status (new, claimed, running, exit, error, suspended, resuming), status_detail, title, URL, ACUs used, PRs, tags, structured output. Needs ViewOrgSessions unless the caller created the session or holds a view grant.list_sessionsList sessionsGETLists the organization's Devin sessions, newest first, with status, title, URL, ACUs used, pull requests and tags; filter by tags, users, repos, origin, dates or archive state. Needs ViewOrgSessions.terminate_sessionTerminate sessionDELETETerminates a session for good: it cannot be resumed (it stays readable). archive=true also archives it and its child sessions. Needs ManageOrgSessions unless the caller created the session or holds a configure grant.unarchive_sessionUnarchive sessionPOSTUnarchives one session (not its child sessions). Needs ManageOrgSessions.
Automation, 5 operations
create_automationCreate automationPOSTCreates an automation: triggers (events) that start actions such as a Devin session; once enabled it runs on its own and consumes ACUs. Webhook trigger secrets are not returned. Needs ManageOrgAutomations.delete_automationDelete automationDELETEDeletes an automation (a soft delete: it stops firing) and returns it. There is no tool to restore it. Needs ManageOrgAutomations.get_automationGet automationGETReturns one automation: triggers, actions, run identity, limits, notifications, last invocation and next run (webhook trigger secrets are not returned). Needs ViewOrgAutomations.list_automationsList automationsGETLists the organization's automations (event triggers that start Devin sessions), newest first; filter by search, creator, enabled, event type or agent type. Needs ViewOrgAutomations.update_automationUpdate automationPATCHChanges an automation. Groups you send merge into the stored ones (members left out are kept); a sent triggers or actions list replaces the stored list. Needs ManageOrgAutomations.
Knowledge note, 5 operations
create_knowledge_noteCreate knowledge notePOSTCreates a knowledge note that Devin recalls in the organization's sessions when its trigger applies. Needs ManageOrgKnowledge (or account-level ManageAccountResources).delete_knowledge_noteDelete knowledge noteDELETEDeletes a knowledge note and returns it. There is no tool to restore it. Needs ManageAccountKnowledge.get_knowledge_noteGet knowledge noteGETReturns one knowledge note: name, body, trigger, folder, pinned repo and whether enabled. Needs UseDevinSessions.list_knowledge_notesList knowledge notesGETLists the organization's knowledge notes (what Devin recalls in sessions): name, body, trigger, folder, pinned repo and whether enabled. Search or filter by folder or repo. Needs UseDevinSessions.update_knowledge_noteUpdate knowledge notePUTUpdates a knowledge note. name, body and trigger are required on every update (read the note with get_knowledge_note and send them back). Needs ManageOrgKnowledge.
Code scan, 4 operations
get_code_scanGet code scanGETReturns one code scan with its status, repositories, profile, effort and attached files. Needs ViewCodeScans.list_code_scansList code scansGETLists the organization's code scans, newest first, with status (waiting, pending, running, completed, failed, cancelled, awaiting_user_input), repo, type and effort. Use it to poll a scan. Needs ViewCodeScans.scan_new_commitsScan new commitsPOSTRuns a code scan again now on only the commits landed since its last completed run (consumes ACUs). 409 if it has no completed run or is already running.start_code_scanStart code scanPOSTStarts a code scan (security by default, or another scan type through a profile) of one or more repositories; Devin sessions run it and consume ACUs. Poll list_code_scans, then read list_code_scan_findings. Needs UseCodeScans.
Code scan finding, 3 operations
list_code_scan_findingsList code scan findingsGETLists code scan findings, newest first: title, severity, status, category, files and snippets, recommendation, fix effort and PR. Filter by scan, repo, severity, status, payoff or dates. Needs ViewCodeScans.remediate_code_scan_findingRemediate code scan findingPOSTLaunches a Devin session that fixes one finding and opens a pull request; consumes ACUs. 409 if it already has one. Needs ManageSecurityScanFindings (security scans) or ManageCodeScanFindings.remediate_code_scan_findingsRemediate code scan findingsPOSTLaunches Devin sessions that fix several findings of a scan and open pull requests (one planner, then one fix session and PR per group). Consumes ACUs. Needs ManageSecurityScanFindings or ManageCodeScanFindings.
Code scan profile, 3 operations
get_code_scan_profileGet code scan profileGETReturns one code scan profile with its mode, scan type, include and exclude globs and all its guidance texts. Needs ViewCodeScans.list_code_scan_profilesList code scan profilesGETLists the code scan profiles available to the organization (own and shared), with mode (discover or ingest) and scan type, to pick a profile_id for start_code_scan or start_ingestion_scan. Needs ViewCodeScans.switch_code_scan_profileSwitch code scan profilePUTSwitches the profile used by a code scan's future incremental runs (same scan type and mode only); past runs are unchanged. Fails with 409 while a run is active.
Secret, 3 operations
create_secretCreate secretPOSTStores a new encrypted organization secret (key-value, cookie or TOTP) that Devin sessions can use; returns its metadata, never the value. Needs ManageOrgSecrets.delete_secretDelete secretDELETEDeletes an organization secret; sessions can no longer use it. There is no tool to restore it. Needs ManageOrgSecrets.list_secretsList secretsGETLists the organization's secrets that Devin sessions can use: key, type, note, sensitivity, who created it and when. Values are never returned. Needs ManageOrgSecrets.
Session insight, 3 operations
generate_session_insightsGenerate session insightsPOSTStarts generating a session's insights in the background (status started), or answers already_exists. Then read them with get_session_insights. Needs ManageOrgSessions.get_session_insightsGet session insightsGETReturns a session's insights: message counts, size class and AI analysis (issues, action items, category); run generate_session_insights first if missing. Needs ViewOrgSessions unless the caller created the session or holds a view grant.list_session_insightsList session insightsGETLists sessions with insights: message counts, size classification and the AI-generated analysis (issues, action items, category). Same filters as list_sessions. Needs ViewOrgSessions.
Session tag, 3 operations
add_session_tagsAdd session tagsPOSTAdds tags to a session, keeping its existing tags (duplicates are ignored). Returns the tags.get_session_tagsGet session tagsGETReturns the tags of a session.replace_session_tagsReplace session tagsPUTReplaces all the tags of a session with the given list. Returns the tags.
Attachment, 2 operations
download_attachmentDownload attachmentGETDownloads an attachment and returns it as a file (Devin answers with a redirect to a presigned URL, which is followed). Pass the uuid and name from its url. Needs ViewOrgSessions.upload_attachmentUpload attachmentPOSTUploads a file for Devin sessions and returns its attachment_id, name and url; pass the url in create_session or send_session_message attachment_urls. Needs UseDevinSessions.
Auto scan schedule, 2 operations
create_auto_scan_scheduleCreate auto scan schedulePOSTCreates a recurring schedule (iCal RRULE) that rescans the commits landed since the last run of a code scan; each run consumes ACUs. Fails with 409 if the scan already has one.delete_auto_scan_scheduleDelete auto scan scheduleDELETERemoves a code scan's recurring auto-scan schedule (deletes its schedule automation). Succeeds even when none exists.
Default platform, 2 operations
get_default_platformGet default platformGETReturns the organization's default placement for new sessions: a hosted platform (linux, windows...) or an outpost pool; all null when none is set. Beta route.set_default_platformSet default platformPUTSets the organization's default placement for new sessions: a hosted platform label or shared outpost pool name, or an outpost pool id (send one). Clearing it is not exposed. Needs ManageOrgSettings. Beta.
Org user, 2 operations
get_org_userGet org userGETReturns one organization member with both direct and IdP-group role assignments: name, email, roles. Personal data. Needs ViewOrgMembership. Beta.list_org_usersList org usersGETLists the organization's users with direct membership: user id, name, email and roles; filter by exact email. Use a user id as create_as_user_id. Personal data. Needs ViewOrgMembership. Beta.
Pr review, 2 operations
get_pr_reviewGet pr reviewGETReturns the latest Devin Review of a pull or merge request (by its URL) for a commit, the PR's current head when commit_sha is left out: status, commit, PR number and repo. 404 when none exists. Needs ViewReview.trigger_pr_reviewTrigger pr reviewPOSTStarts a Devin Review of a pull or merge request at its latest commit (queued for the review workers; consumes ACUs). Check it with get_pr_review. Needs UseReviewManual.
Session message, 2 operations
list_session_messagesList session messagesGETLists a session's messages in order (from users and from Devin), with source, author and time; cursor paging with after and first. Needs ViewOrgSessions unless the caller created the session or holds a view grant.send_session_messageSend session messagePOSTSends a message to a Devin session, which acts on it (a sleeping session is resumed and consumes ACUs again). Returns the session. Needs ManageOrgSessions.
Active users, 1 operation
get_active_usersGet active usersGETReturns the number of unique active users in a date range. A user is active when they created at least min_sessions sessions or min_searches searches. Needs ViewOrgMetrics.
Automation event schema, 1 operation
list_automation_event_schemasList automation event schemasGETReturns every trigger event type available to the organization, by source then event name, with payload fields, condition operators and reply verbs, to build automation triggers. Needs ViewOrgAutomations.
Automation template, 1 operation
list_automation_templatesList automation templatesGETLists Devin's built-in automation templates; pass a template_id to create_automation (its required MCP servers apply when tools.mcp_servers is left out). Needs ViewOrgAutomations.
Code scan effort, 1 operation
set_code_scan_effortSet code scan effortPUTSets the effort (normal or deep) of a code scan's future incremental runs; past runs are unchanged. Fails with 409 while a run is active.
Code scan metrics, 1 operation
get_code_scan_metricsGet code scan metricsGETReturns code scan totals for scans created in a time range of at most 100 days: scans, repos scanned, open findings by severity, remediation PRs created, merged and closed. Needs ViewCodeScans.
Consumption, 1 operation
get_daily_consumptionGet daily consumptionGETReturns the organization's ACU consumption per day, split by product (devin, automation, cascade, terminal, review), and the total for the range. Billing days start at midnight PST (08:00 UTC). Needs ViewOrgConsumption.
Daily active users, 1 operation
get_daily_active_usersGet daily active usersGETReturns the active-user count for each UTC day in a range. A user is active when they created at least min_sessions sessions or min_searches searches. Needs ViewOrgMetrics.
Identity, 1 operation
get_selfGet selfGETReturns who the API token authenticates as: principal_type (service_user, pat_user...), its user or service user id and name, the API key id and name, and its organization ids. Any valid token may call it.
Indexed branch, 1 operation
remove_indexed_branchRemove indexed branchDELETEStops indexing one branch of a repository; when no branch is left, indexing is disabled. 404 if the branch is not indexed. Needs IndexOrgRepositories.
Ingestion scan, 1 operation
start_ingestion_scanStart ingestion scanPOSTStarts an ingestion scan: Devin triages and validates findings from another scanner (an uploaded report) against the repository, using an ingest-mode profile. Consumes ACUs. Needs UseCodeScans.
Knowledge folder, 1 operation
list_knowledge_foldersList knowledge foldersGETReturns the knowledge folder tree with the number of notes per folder. Needs UseDevinSessions.
Monthly active users, 1 operation
get_monthly_active_usersGet monthly active usersGETReturns the active-user count for each month in a range. A user is active when they created at least min_sessions sessions or min_searches searches. Needs ViewOrgMetrics.
Org idp user, 1 operation
list_org_idp_usersList org idp usersGETLists users whose organization membership comes from identity-provider group assignments: id, name, email, IdP group and role. Personal data. Needs ViewOrgMembership. Beta.
Pr metrics, 1 operation
get_pr_metricsGet pr metricsGETReturns pull request totals for a range: PRs opened, created, merged and closed by Devin, and those taken over by people; filter by users, service users or playbook. Needs ViewOrgMetrics.
Repository, 1 operation
list_repositoriesList repositoriesGETLists the repositories available to the organization through its Git connections, with their indexing status; filter by name or paths. Needs Read.
Search metrics, 1 operation
get_search_metricsGet search metricsGETReturns the number of searches created in a time range. Needs ViewOrgMetrics.
Service user consumption, 1 operation
get_service_user_daily_consumptionGet service user daily consumptionGETReturns one service user's ACU consumption per day in the organization, split by product, and the total. Billing days start at midnight PST (08:00 UTC). Needs ViewOrgConsumption.
Session attachment, 1 operation
list_session_attachmentsList session attachmentsGETLists the files attached to or produced in a session, with name, content type, source and download URL. Needs ViewOrgSessions unless the caller created the session or holds a view grant.
Session consumption, 1 operation
get_session_daily_consumptionGet session daily consumptionGETReturns one session's ACU consumption per day, split by product, and the total. Billing days start at midnight PST (08:00 UTC). Needs ViewOrgConsumption.
Session metrics, 1 operation
get_session_metricsGet session metricsGETReturns session totals for a range: sessions created by origin and by size, average ACUs per session; filter by users, service users or playbook. Needs ViewOrgMetrics.
Usage metrics, 1 operation
get_usage_metricsGet usage metricsGETReturns usage totals for a time range: sessions, searches, PRs created and PRs merged. Needs ViewOrgMetrics.
User consumption, 1 operation
get_user_daily_consumptionGet user daily consumptionGETReturns one user's ACU consumption per day in the organization, split by product, and the total. Billing days start at midnight PST (08:00 UTC). Needs ViewOrgConsumption.
Weekly active users, 1 operation
get_weekly_active_usersGet weekly active usersGETReturns the active-user count for each week in a range. A user is active when they created at least min_sessions sessions or min_searches searches. Needs ViewOrgMetrics.
Use Devin from Claude Code, Cursor or Codex
Connect Devin in LiveContext, create an API key in Settings, then add the LiveContext MCP server to your client. Its Devin operations become tools the client can call, next to every other integration you connected.
claude mcp add --transport http livecontext https://livecontext.ai/mcp --header "X-API-Key: YOUR_API_KEY"[mcp_servers.livecontext]
url = "https://livecontext.ai/mcp"
[mcp_servers.livecontext.http_headers]
"X-API-Key" = "YOUR_API_KEY"{
"mcpServers": {
"livecontext": {
"type": "http",
"url": "https://livecontext.ai/mcp",
"headers": {
"X-API-Key": "YOUR_API_KEY"
}
}
}
}How to connect Devin
- Create your workspace
Sign up free. Nothing to install.
- Connect Devin once
Add your Devin connection in Settings. Every tool from this integration reuses it, and secrets are encrypted at rest and visible only to you.
- Describe the job in chat
The workflow builds itself in front of you and picks the endpoints it needs. Drag the steps yourself on the canvas whenever you would rather be explicit.
Devin integration FAQ
What can you do with the Devin integration?
LiveContext exposes 76 operations on Devin, covering repository indexing, session, automation and knowledge note.
