Queue an exact-commit security run

POST/v1/security/repositories/{repositoryId}/runs

If headSha is omitted, the API resolves the selected branch through a repository-scoped, short-lived GitHub App installation token before enqueueing. The resulting run is always pinned to the returned full commit SHA.

How to call this endpoint

Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.

Path, query, and header parameters

These parameters control which ACP object the endpoint acts on and how the request is processed.

Path parameters
NameLocationTypeRequiredDescription
repositoryIdpathstringYesMonitored security repository ID
Query parameters
None.
Header parameters
NameLocationTypeRequiredDescription
X-Computer-Agents-OrganizationheaderstringNoActive organization context. If omitted, the authenticated user's personal organization is used.
Idempotency-KeyheaderstringNo

Body schema

Content type: application/json · Optional

FieldTypeRequiredDescription
headShastringNo
baseShastringNo
refstringNoBranch name or refs/heads path

What the API returns

Each response code below includes the documented payload shape for the ACP API.

202Run queuedapplication/json
FieldTypeRequiredDescription
idstringYesUnique identifier.
repositoryIdstringYes
repositoryFullNamestringNo
triggerTypemanual | schedule | pull_request | push | retryYes
triggerEventIdstringNo
baseShastringNo
headShastringNo
refstringNo
statusqueued | running | waiting_approval | succeeded | partial | failed | cancelledYesCurrent lifecycle status.
stageingest | checkout | inventory | scan | validate | triage | remediate | verify | publish | completeYes
policyVersionIdstringNo
threatModelVersionIdstringNo
promptVersionstringNo
modelVersionstringNo
scannerVersionsobjectNo
coverageobjectNo
summaryobjectNo
errorobjectNo
findingCountintegerYes
checkRunUrlstringNo
pullRequestUrlstringNo
queuedAtstringYes
startedAtstringNoISO 8601 timestamp.
completedAtstringNoISO 8601 timestamp.
createdAtstringYesISO 8601 timestamp.
updatedAtstringYesISO 8601 timestamp.
402Insufficient budgetapplication/json
FieldTypeRequiredDescription
errorstringNo
messagestringNoMessage text.
currentBudgetnumberNo
Queue an exact-commit security run
Loading...
Response 202
Loading...
See the ACP quickstart and SDK flow