Remediate Code Scan Finding
Code Scans (Organization)
Remediate Code Scan Finding (Devin API)
Launch a Devin session that fixes a code scan finding and opens a pull request, via the v3 organization API
POST
Remediate Code Scan Finding
Permissions
Requires a service user or personal access token with theUseCodeScans permission at the organization level.
Behavior
Launches a Devin session to remediate the specified code scan finding: the session analyzes the vulnerable code, implements a fix, and opens a pull request. The session is attributed to the calling principal (the service user or PAT that made the request). Returns409 Conflict if the finding already has a remediation session.
Related
- Triggering Code Scans via the Devin API covers the full start → poll → findings → remediate flow.
- Start Code Scan and Start Ingestion Scan create the scans whose findings can be remediated here.
Authorizations
Service User credential (prefix: cog_)
Path Parameters
Organization ID (prefix: org-)
Example:
"org-abc123def456"

