> For the complete documentation index, see [llms.txt](https://docs.nullify.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nullify.ai/api-reference/api-reference/orchestrator.md). Agents can also search and read this documentation through its [MCP server](https://docs.nullify.ai/~gitbook/mcp).

# Scans, Reviews & Remediation API

The `/orchestrator` endpoints start and track the work that runs on your repositories: repository scans, pull request reviews, batch autofix, retriage, and onboarding. They also expose code reviews and the Nullify check runs published on commits.

Authenticate as described in [Authentication](https://docs.nullify.ai/api-reference/api-reference/authentication.md). Every operation needs the provider scope parameter for your git provider (for example `githubOwnerId`, `gitlabGroupId`, `bitbucketWorkspaceId` or `azureOrganizationId`) so Nullify can resolve your tenant. A bearer token alone does not select one.

## How start and poll pairs work

Operations that start work return as soon as the job is accepted. An accepted response means the job was queued, not that it finished, and you must poll a separate read operation for the outcome.

| You start it with                                                                                                  | You poll it with                                      | Identifier carried between them  |
| ------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------- | -------------------------------- |
| [Start a repository scan](#start-a-repository-scan) or [Start a pull request review](#start-a-pull-request-review) | [Get a repository scan](#get-a-repository-scan)       | `runId`                          |
| [Start a batch autofix](#start-a-batch-autofix)                                                                    | [Get batch autofix status](#get-batch-autofix-status) | `executionId`                    |
| [Retriage findings](#retriage-findings)                                                                            | [Get a retriage activity](#get-a-retriage-activity)   | `activityId`                     |
| [Start onboarding](#start-onboarding)                                                                              | [Get onboarding status](#get-onboarding-status)       | none (one onboarding per tenant) |

Stop polling when the poll response reports a terminal state, not when the start call returns. Poll at a modest interval and back off; see [Retries](https://docs.nullify.ai/api-reference/api-reference/authentication.md#retries).

## Repository scans and pull request reviews

### Scan coverage by type

Default-branch scans and pull-request reviews use the same repository scanners. The manual starts below dispatch the existing push and PR pipelines, so their scanner coverage and skip rules also apply to event-driven runs. A default-branch start selects services explicitly; a PR review uses the pipeline's scanner selection and has no `services` request field. Selecting a service requests its analysis, but configuration, onboarding, admission and scanner relevance can still prevent a run or part of it from executing. Check the returned coverage before treating a commit as fully scanned.

| Scan type                        | Default-branch service selector     | Pull-request review                                                 | Findings                                                                                                                 | Scan history                                                                                                                       |
| -------------------------------- | ----------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------- |
| Code analysis (SAST)             | `sast`                              | Included when the default-branch baseline gate permits it           | [Code findings](https://docs.nullify.ai/api-reference/api-reference/code-review.md#list-findings)                        | [SAST runs](https://docs.nullify.ai/api-reference/api-reference/code-review.md#list-scan-runs)                                     |
| Dependency vulnerabilities (SCA) | `sca`                               | Included when the default-branch baseline gate permits it           | [Dependency findings](https://docs.nullify.ai/api-reference/api-reference/dependency-analysis.md#list-findings)          | [SCA runs](https://docs.nullify.ai/api-reference/api-reference/dependency-analysis.md#list-scan-runs), `scanType=sca_dependencies` |
| Container vulnerabilities (SCA)  | `sca`                               | Included with SCA, subject to container inputs and coverage         | [Container findings](https://docs.nullify.ai/api-reference/api-reference/dependency-analysis.md#list-container-findings) | [SCA runs](https://docs.nullify.ai/api-reference/api-reference/dependency-analysis.md#list-scan-runs), `scanType=sca_containers`   |
| Secrets credentials              | `secrets`                           | Included without the SAST baseline requirement                      | [Credential findings](https://docs.nullify.ai/api-reference/api-reference/secrets-guardrails.md#list-findings)           | [Secrets runs](https://docs.nullify.ai/api-reference/api-reference/secrets-guardrails.md#list-scan-runs)                           |
| Secrets sensitive data           | `secrets`                           | Included through the Secrets pipeline, subject to its configuration | [Sensitive-data findings](https://docs.nullify.ai/api-reference/api-reference/secrets-guardrails.md#list-findings)       | [Secrets runs](https://docs.nullify.ai/api-reference/api-reference/secrets-guardrails.md#list-scan-runs), shared with credentials  |
| Supply-chain posture (SCPM)      | `scpm`, when detections are enabled | Included when SCPM detections are enabled                           | [SCPM findings](https://docs.nullify.ai/api-reference/api-reference/scpm.md#list-findings)                               | [SCPM runs](https://docs.nullify.ai/api-reference/api-reference/scpm.md#list-scan-runs)                                            |

The PR pipeline checks for a stored SAST default-branch baseline. If no baseline exists, it skips both SAST and SCA for the PR while Secrets and enabled SCPM still run. Establish the repository's default-branch baseline before relying on PR coverage. A baseline lookup error currently lets the PR scan proceed.

The `sca` selector covers dependencies and containers together; `secrets` covers credentials and sensitive data together. These are not separate service selectors. Sensitive-data findings require that capability to be enabled; choosing `secrets` alone does not enable it. Secrets history has one `secrets` scan type, so use both finding inventories to inspect its two categories. SCA records separate `sca_dependencies` and `sca_containers` runs and exposes `scaOutcome`, including degraded analysis and coverage gaps.

### Scans with other targets

These scan types have their own start and result operations. They do not run merely because you start a repository scan or review a PR. To assess an application version built from a PR or the default branch, deploy that version to an authorized target and use its application scan workflow.

| Scan type                                   | Start                                                                                                                                                                                                     | Follow progress and read results                                                                                                                                                                                                                                                           |
| ------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| DAST application pentest                    | [Start an engagement](https://docs.nullify.ai/api-reference/api-reference/pentester/engagements.md#start-an-engagement)                                                                                   | [Poll live status](https://docs.nullify.ai/api-reference/api-reference/pentester/engagements.md#poll-live-status), then [engagement findings](https://docs.nullify.ai/api-reference/api-reference/pentester/engagements.md#list-engagement-findings)                                       |
| DAST external attack surface (Bug Hunts)    | [Start a scan](https://docs.nullify.ai/api-reference/api-reference/bug-hunts.md#start-a-scan) or [run one suite](https://docs.nullify.ai/api-reference/api-reference/bug-hunts.md#run-a-single-suite-now) | [Poll scan status](https://docs.nullify.ai/api-reference/api-reference/bug-hunts.md#poll-scan-status), then [scan findings](https://docs.nullify.ai/api-reference/api-reference/bug-hunts.md#list-a-scans-findings)                                                                        |
| Cloud misconfigurations (CSPM)              | [Start a cloud audit](https://docs.nullify.ai/api-reference/api-reference/cloud-audits.md#start-a-scan)                                                                                                   | [Get the scan](https://docs.nullify.ai/api-reference/api-reference/cloud-audits.md#get-a-scan), then [cloud findings](https://docs.nullify.ai/api-reference/api-reference/cloud-audits.md#list-findings) filtered by `scanId`                                                              |
| Exploit validation of a SAST or SCA finding | [Start validation](https://docs.nullify.ai/api-reference/api-reference/pentester/exploit-validation.md#start-validation-for-a-finding)                                                                    | [Get the validation run](https://docs.nullify.ai/api-reference/api-reference/pentester/exploit-validation.md#get-an-exploit-validation-run) and its attempts                                                                                                                               |
| Package malware analysis                    | [Request dependency analysis](https://docs.nullify.ai/api-reference/api-reference/scpm.md#request-dependency-analysis)                                                                                    | Repeat the idempotent request or [batch query the package](https://docs.nullify.ai/api-reference/api-reference/scpm.md#batch-query-dependencies); an unknown or missing analysis is unverified                                                                                             |
| Container malware analysis                  | [Request container analysis](https://docs.nullify.ai/api-reference/api-reference/scpm.md#request-container-analysis)                                                                                      | Follow the request's status and cached verdict by repeating the idempotent request; this differs from SCA container CVE analysis                                                                                                                                                           |
| Cloud inventory and recon                   | [Start a cloud scan](https://docs.nullify.ai/api-reference/api-reference/context/cloud-recon.md#start-a-cloud-scan)                                                                                       | [Get cloud scan status](https://docs.nullify.ai/api-reference/api-reference/context/cloud-recon.md#get-cloud-scan-status), then [cloud recon](https://docs.nullify.ai/api-reference/api-reference/context/cloud-recon.md#cloud-recon); inventory collection is separate from CSPM findings |

### Start a repository scan

Scans the head of a repository's default branch with the scanners you choose. Send `services` (one or more of `sast`, `sca`, `secrets`, `scpm`) in the JSON body. To request every repository scan type, send `["sast","sca","secrets","scpm"]`; omit `scpm` if detections are disabled, because requesting it then returns 412. `repositoryId` in the path is the provider's repository id, as returned by the repository list in the [Admin API](https://docs.nullify.ai/api-reference/api-reference/api-admin.md). Requires the finding-write permission.

Optional body fields: `branch` (must be the default branch, which is also the default if omitted), `commitSha` (the scan is refused with 400 if the branch head is a different commit), and `triage` (`on` by default; `off` runs no AI triage but is refused for `sca` and `scpm`). Archived repositories are refused with 412.

If the branch already has a run in flight, the call returns 200 with `alreadyRunning: true` and the `runId` of that run instead of starting a second one, so retrying a start is safe. `sideEffects` lists what the push pipeline does besides the chosen scanners: the commit's check run, a repo-context preflight, and SBOM generation. It is empty when `alreadyRunning` is true.

```bash
curl -s -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <TOKEN>" \
  -d '{"services": ["sast", "sca", "secrets", "scpm"]}' \
  'https://api.<TENANT>.nullify.ai/orchestrator/repositories/<REPOSITORY_ID>/scans?githubOwnerId=1234'
```

{% openapi src="/files/gPJULkHAwatlcFMluIL1" path="/orchestrator/repositories/{repositoryId}/scans" method="post" %}
[nullify-openapi-bundle.yaml](https://3946391995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FId2OtLCL6O6V3XSRYxtr%2Fuploads%2Fgit-blob-8b1f76e406c42d968d27bf06411eb15272949cc2%2Fnullify-openapi-bundle.yaml?alt=media)
{% endopenapi %}

### Start a pull request review

Runs the repository security review on the head commit of an open pull request, covering SAST, both SCA categories, both Secrets categories and enabled SCPM as described in the [coverage table](#scan-coverage-by-type). `repositoryId` is the provider's repository id and `number` is the pull request number. The pull request must be open, and archived repositories are refused with 412. The response carries a `runId` that you poll with [Get a repository scan](#get-a-repository-scan); it also returns `alreadyRunning: true` with the in-flight `runId` when a review is already running. Requires the finding-write permission.

```bash
curl -s -X POST \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <TOKEN>" \
  'https://api.<TENANT>.nullify.ai/orchestrator/repositories/<REPOSITORY_ID>/pull-requests/<PR_NUMBER>/reviews?githubOwnerId=1234'
```

{% openapi src="/files/gPJULkHAwatlcFMluIL1" path="/orchestrator/repositories/{repositoryId}/pull-requests/{number}/reviews" method="post" %}
[nullify-openapi-bundle.yaml](https://3946391995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FId2OtLCL6O6V3XSRYxtr%2Fuploads%2Fgit-blob-8b1f76e406c42d968d27bf06411eb15272949cc2%2Fnullify-openapi-bundle.yaml?alt=media)
{% endopenapi %}

### Get a repository scan

Reads the state of a pipeline run started by either of the two operations above. `runId` comes from the start response and must belong to the `repositoryId` in the path; otherwise the call returns 404, as it does for another tenant's run.

The top-level `state` is one of `PENDING`, `RUNNING`, `SUCCEEDED`, `FAILED`, `SKIPPED`, `TIMED_OUT` or `ABORTED`, and `terminal` is true once it will not change. `scanRuns` lists each scanner's run for the commit with its own status and finding counts. These appear once the pipeline run has left the running state, so an empty `scanRuns` while `RUNNING` is normal. The optional `services` query parameter (comma-separated) narrows which scanners the run is waited on; it defaults to every scanner the run dispatches.

For complete coverage, poll with a bounded timeout until `terminal` is true, then inspect `scanConclusion`, `incompleteScanners`, `skippedScanners`, and every expected `scanRuns` entry. A terminal run, a neutral check, zero findings, or an omitted scanner is not proof that every scan type completed. Leave `services` unset when checking the full run; a subset only waits for that subset. When `alreadyRunning` was returned by the start call, check the existing run's `commitSha` and coverage against your requested scanners.

Scan history includes `branch`, `commitHash`, `triggerType` and `isDefaultBranch`; match those fields to the PR head or default-branch commit you are assessing. The history calls use `repositoryId`, time bounds and offset pagination rather than a PR-number filter. For SAST, SCA and SCPM finding lists, explicitly pass `workflow=pull-request` with the PR source `branch`, or `workflow=push` with the default `branch`, to distinguish the inventories. Secrets uses branch-scoped credential and sensitive-data lists without a `workflow` selector. Finding inventories can change after another scan; use the run's commit and coverage for the assessment you are reporting.

```bash
curl -s \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <TOKEN>" \
  'https://api.<TENANT>.nullify.ai/orchestrator/repositories/<REPOSITORY_ID>/scans/<RUN_ID>?githubOwnerId=1234'
```

{% openapi src="/files/gPJULkHAwatlcFMluIL1" path="/orchestrator/repositories/{repositoryId}/scans/{runId}" method="get" %}
[nullify-openapi-bundle.yaml](https://3946391995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FId2OtLCL6O6V3XSRYxtr%2Fuploads%2Fgit-blob-8b1f76e406c42d968d27bf06411eb15272949cc2%2Fnullify-openapi-bundle.yaml?alt=media)
{% endopenapi %}

## Code reviews and check runs

### List code reviews

Lists the tenant's code review runs. Each entry's `status` reports whether the review pipeline was dispatched, while `scanConclusion` (`success`, `neutral` or `failure`) reports the outcome. `incompleteScanners` and `skippedScanners` tell you which scanners contributed no findings. Page with `limit` (default 10, maximum 100) and `nextToken`; an `offset` parameter overrides `nextToken` when you set it. See [Pagination](https://docs.nullify.ai/api-reference/api-reference/pagination.md).

{% openapi src="/files/gPJULkHAwatlcFMluIL1" path="/orchestrator/codereviews" method="get" %}
[nullify-openapi-bundle.yaml](https://3946391995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FId2OtLCL6O6V3XSRYxtr%2Fuploads%2Fgit-blob-8b1f76e406c42d968d27bf06411eb15272949cc2%2Fnullify-openapi-bundle.yaml?alt=media)
{% endopenapi %}

### Get a code review

Returns one code review by `id`, taken from the list above or from a `runId` returned by a scan or review start. Returns 404 if the id does not exist for your tenant.

{% openapi src="/files/gPJULkHAwatlcFMluIL1" path="/orchestrator/codereviews/{id}" method="get" %}
[nullify-openapi-bundle.yaml](https://3946391995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FId2OtLCL6O6V3XSRYxtr%2Fuploads%2Fgit-blob-8b1f76e406c42d968d27bf06411eb15272949cc2%2Fnullify-openapi-bundle.yaml?alt=media)
{% endopenapi %}

### Get code review controls

Reads the code review's pull request live from your git platform: whether it is open (`pullRequestOpen`, and `pullRequestState` of `open`, `merged` or `closed`), whether the reviewed commit is still its head (`currentHead`, `headSha`), whether the provider supports formal reviews, and how many Nullify reviews still request changes (`blockingReviewCount`). After a [withdrawal](#withdraw-nullify-change-requests) it reports `withdrawnAt` and `withdrawnBy`, and `withdrawalAuditPending` while the audit record is unwritten; each read retries that record. A failed provider read still returns 200 with `readError` set, and a code review without a pull request returns the empty defaults. Returns 404 if the id does not exist for your tenant. Requires the finding-read permission.

{% openapi src="/files/gPJULkHAwatlcFMluIL1" path="/orchestrator/codereviews/{id}/controls" method="get" %}
[nullify-openapi-bundle.yaml](https://3946391995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FId2OtLCL6O6V3XSRYxtr%2Fuploads%2Fgit-blob-8b1f76e406c42d968d27bf06411eb15272949cc2%2Fnullify-openapi-bundle.yaml?alt=media)
{% endopenapi %}

### Withdraw Nullify change requests

Dismisses Nullify's blocking "changes requested" reviews on the code review's pull request, for the reviewed commit only, which unblocks a pull request gated on them. Like [overriding a check run](#override-a-check-run), this waves a security gate through, so it needs the config-write permission (admin). A `reason` of 1 to 1000 characters is required and is posted on the pull request with the administrator's name, and the withdrawal is recorded in the audit log. The call returns 400 for a missing or overlong reason, 404 for an unknown code review, and 412 when the review has no pull request, the pull request head has moved on, or the provider does not support formal reviews.

Check the response rather than the status code: `dismissed` says whether any review was withdrawn, `uncleared` counts blocking reviews that remain, `partial` and `message` explain incomplete work, `headChanged` reports a moved head, and `auditRecorded` whether the audit record was written. A pending audit record is retried by the next read of [Get code review controls](#get-code-review-controls).

{% openapi src="/files/gPJULkHAwatlcFMluIL1" path="/orchestrator/codereviews/{id}/override" method="post" %}
[nullify-openapi-bundle.yaml](https://3946391995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FId2OtLCL6O6V3XSRYxtr%2Fuploads%2Fgit-blob-8b1f76e406c42d968d27bf06411eb15272949cc2%2Fnullify-openapi-bundle.yaml?alt=media)
{% endopenapi %}

### List check runs

Reads the Nullify check runs (GitHub) or commit statuses (GitLab, Azure DevOps, Bitbucket) live from your git platform. Nothing is stored on the Nullify side, so reads are bounded to protect your provider's API quota. By default it covers the last 24 hours (`since`, an RFC3339 timestamp) and every open pull request in up to 50 repositories (`maxRepositories`, maximum 200). Add `includeDefaultBranch=true` to include default-branch pushes, `repositoryId` (repeatable) to filter, or `repositoryCommit=<repositoryId>:<commitSha>` (repeatable, at most 50) to read exact commits.

Check `scopeTruncated` and `partial` before treating an empty list as clean: they report repositories that were left out by the cap or could not be read, which are named in `unreadableRepositories`. Each check run has an `overridable` flag that tells you whether [Override a check run](#override-a-check-run) can act on it.

{% openapi src="/files/gPJULkHAwatlcFMluIL1" path="/orchestrator/checkruns" method="get" %}
[nullify-openapi-bundle.yaml](https://3946391995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FId2OtLCL6O6V3XSRYxtr%2Fuploads%2Fgit-blob-8b1f76e406c42d968d27bf06411eb15272949cc2%2Fnullify-openapi-bundle.yaml?alt=media)
{% endopenapi %}

### Override a check run

Force-completes a Nullify check run as passing and records an audit event, unblocking a pull request gated on that check. Requires the `config:write` (admin) permission.

Address the check by `repository`, `commitSha` and the exact `checkName` from [List check runs](#list-check-runs). Optionally add a `reason` (up to 1000 characters), which records why you overrode the gate. The check is re-read from the provider first. A missing check returns 404. A check published outside Nullify returns 400.

A stale in-progress check can be eligible if it has a recorded start time more than two hours ago. A check that already passed, was overridden, or otherwise fails the override eligibility check returns 412. If the check turned green but the audit write failed, the response is still 200 with `auditRecorded: false`. Treat that response as an applied override.

{% openapi src="/files/gPJULkHAwatlcFMluIL1" path="/orchestrator/checkruns/override" method="post" %}
[nullify-openapi-bundle.yaml](https://3946391995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FId2OtLCL6O6V3XSRYxtr%2Fuploads%2Fgit-blob-8b1f76e406c42d968d27bf06411eb15272949cc2%2Fnullify-openapi-bundle.yaml?alt=media)
{% endopenapi %}

## Autofix

### Start a batch autofix

Starts one job that generates fixes for several findings. Send the finding ids in `sastFindingIDs`, `scaDependencyFindingIDs`, `scaContainerFindingIDs` and `dastPentestFindingIDs`; at least one id is required across them. Bug hunt findings (`dastBugHuntFindingIDs`) are rejected with 400. Requires the finding-write permission.

Findings on archived repositories are dropped before the job starts, and the call returns 400 if that leaves nothing. Dropped ids are not reported in the response, so compare against the status call. The response returns an `executionId`, which you pass to [Get batch autofix status](#get-batch-autofix-status). A 503 means the dispatch failed transiently and can be retried. A start response only means the job was accepted.

{% openapi src="/files/gPJULkHAwatlcFMluIL1" path="/orchestrator/autofix/batch" method="post" %}
[nullify-openapi-bundle.yaml](https://3946391995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FId2OtLCL6O6V3XSRYxtr%2Fuploads%2Fgit-blob-8b1f76e406c42d968d27bf06411eb15272949cc2%2Fnullify-openapi-bundle.yaml?alt=media)
{% endopenapi %}

### Get batch autofix status

Returns the status of one batch autofix execution by `executionId` from the start response, with the finding ids it covers, timestamps, an `errorMessage` on failure, and `results` (including the pull requests opened) when available. Returns 404 for an unknown id or another tenant's execution.

{% openapi src="/files/gPJULkHAwatlcFMluIL1" path="/orchestrator/autofix/batch/{executionId}" method="get" %}
[nullify-openapi-bundle.yaml](https://3946391995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FId2OtLCL6O6V3XSRYxtr%2Fuploads%2Fgit-blob-8b1f76e406c42d968d27bf06411eb15272949cc2%2Fnullify-openapi-bundle.yaml?alt=media)
{% endopenapi %}

### Iterate an autofix pull request

Queues an existing Nullify autofix pull request to be rebased onto its base branch and promoted to ready for review. Send `repository` and `pullRequest` in the body, and an optional free-text `reason`. The `ownerProvider` you send is ignored: the repository is resolved with your authenticated tenant's git credentials, and an unresolvable or mismatched repository returns 400. The response (`accepted: true`) only means the request was queued; the rebase happens afterwards and there is no status operation for it. Requires the finding-write permission.

{% openapi src="/files/gPJULkHAwatlcFMluIL1" path="/orchestrator/autofix/iterate-pr" method="post" %}
[nullify-openapi-bundle.yaml](https://3946391995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FId2OtLCL6O6V3XSRYxtr%2Fuploads%2Fgit-blob-8b1f76e406c42d968d27bf06411eb15272949cc2%2Fnullify-openapi-bundle.yaml?alt=media)
{% endopenapi %}

### Get a finding's autofix iterations

Returns the timeline of autofix iterations for one finding, oldest first. `findingType` is a required query parameter, one of `sast`, `sca_dependencies`, `sca_containers`, `secrets_credentials`, `secrets_sensitive_data`, `scpm`, `cspm`, `dast_bughunt` or `dast_pentest`, and must match the finding id in the path.

{% openapi src="/files/gPJULkHAwatlcFMluIL1" path="/orchestrator/findings/{findingID}/autofix-iterations" method="get" %}
[nullify-openapi-bundle.yaml](https://3946391995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FId2OtLCL6O6V3XSRYxtr%2Fuploads%2Fgit-blob-8b1f76e406c42d968d27bf06411eb15272949cc2%2Fnullify-openapi-bundle.yaml?alt=media)
{% endopenapi %}

## Retriage and tickets

### Retriage findings

Queues findings to be triaged again, for example after you add context that changes the verdict. Send `findingType`, `filters.findingIds` (1 to 100 ids; `filters.branch` and `filters.priorityMinimum` are rejected) and `message.gitOwnerProvider`, which must reference the tenant your token is authorized for or the call returns 403. Requests may be merged into a debounce window rather than run immediately. Requires the finding-write permission.

Each id starts a full triage run and consumes triage budget. `debounceBypass` and `filters.forceRetriage` are reserved for admin and internal callers and return 403 for anyone else. The response returns an `activityId` (empty if the request could not be tracked), which you pass to [Get a retriage activity](#get-a-retriage-activity).

{% openapi src="/files/gPJULkHAwatlcFMluIL1" path="/orchestrator/findings/retriage" method="post" %}
[nullify-openapi-bundle.yaml](https://3946391995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FId2OtLCL6O6V3XSRYxtr%2Fuploads%2Fgit-blob-8b1f76e406c42d968d27bf06411eb15272949cc2%2Fnullify-openapi-bundle.yaml?alt=media)
{% endopenapi %}

### Get a retriage activity

Reports a retriage activity and the outcome of each finding in it. The activity `status` is one of `PENDING`, `RUNNING`, `SUCCEEDED`, `FAILED`, `SKIPPED`, `TIMED_OUT` or `ABORTED`, and `terminal` tells you when to stop polling. Each finding has its own status: `queued`, `dispatched`, `completed`, `failed`, `denied`, `deferred` or `not_needed`, with a `reason` where one was recorded. Returns 404 for an unknown activity or another tenant's.

{% openapi src="/files/gPJULkHAwatlcFMluIL1" path="/orchestrator/findings/retriage/{activityId}" method="get" %}
[nullify-openapi-bundle.yaml](https://3946391995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FId2OtLCL6O6V3XSRYxtr%2Fuploads%2Fgit-blob-8b1f76e406c42d968d27bf06411eb15272949cc2%2Fnullify-openapi-bundle.yaml?alt=media)
{% endopenapi %}

### Close a finding's ticket

Closes the ticket linked to a finding in your ticketing integration. Put the finding id in the path and send `findingType` (same values as the autofix iterations call) in the body. `resolution` is posted as a comment before the ticket is closed, and `reason` is stored in the ticket audit trail. The call is idempotent: if the ticket is already closed it returns 200 with `alreadyClosed: true`. It returns 404 when the finding has no active ticket and 412 when the tenant's ticket integration is unavailable.

{% openapi src="/files/gPJULkHAwatlcFMluIL1" path="/orchestrator/findings/{findingID}/ticket/close" method="post" %}
[nullify-openapi-bundle.yaml](https://3946391995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FId2OtLCL6O6V3XSRYxtr%2Fuploads%2Fgit-blob-8b1f76e406c42d968d27bf06411eb15272949cc2%2Fnullify-openapi-bundle.yaml?alt=media)
{% endopenapi %}

## Run control

These operations act on a running agent, named by `kind` and `runId` in the path. Control accepts the kinds `pentest`, `autofix`, `threat_investigation` and `code_review`; any other kind returns 400. Callers whose role is limited to specific teams cannot control runs.

### Get run control capabilities

Reports which actions you can use on a run right now: `stop`, `steer` and `approve` (which also covers deny). `stopVia` is `stop_endpoint` for pentests, which you stop with [Stop an engagement](https://docs.nullify.ai/api-reference/api-reference/pentester/engagements.md#stop-an-engagement), and `control_row` for the other kinds. A finished run, a `scan` run or a team-scoped caller gets every action false. Steering and approvals also depend on the agent doing the work and on run control being turned on for your tenant. An unknown run returns 404. Requires the finding-read permission.

{% openapi src="/files/gPJULkHAwatlcFMluIL1" path="/orchestrator/runs/{kind}/{runId}/control/capabilities" method="get" %}
[nullify-openapi-bundle.yaml](https://3946391995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FId2OtLCL6O6V3XSRYxtr%2Fuploads%2Fgit-blob-8b1f76e406c42d968d27bf06411eb15272949cc2%2Fnullify-openapi-bundle.yaml?alt=media)
{% endopenapi %}

### Control a running agent

Records a `stop`, `steer`, `approve` or `deny` for a live run. The agent picks it up and acknowledges it on the run's event stream, so a 200 means the control was recorded, not that it took effect. `idempotencyKey` (8 to 64 letters, digits, `-` or `_`) is required: a retry with the same key and body records nothing new and returns `duplicate: true`, while the same key with a different body returns 412. A `steer` needs a `message` of 1 to 2,000 characters, sent to the agent as an instruction, and `approve` or `deny` needs the `approvalId` of a pending approval request; an unknown run, or an approval that is unknown or already answered, returns 404.

The call returns 412 when the run is not live, when its agent does not accept controls or steering, or for a `stop` on a pentest, which uses [Stop an engagement](https://docs.nullify.ai/api-reference/api-reference/pentester/engagements.md#stop-an-engagement) instead. Steering and approvals return 403 when run control is not turned on for your tenant, and every action returns 403 for a team-scoped caller. More than 20 controls on one run within a minute return 429. Requires the finding-write permission.

{% openapi src="/files/gPJULkHAwatlcFMluIL1" path="/orchestrator/runs/{kind}/{runId}/control" method="post" %}
[nullify-openapi-bundle.yaml](https://3946391995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FId2OtLCL6O6V3XSRYxtr%2Fuploads%2Fgit-blob-8b1f76e406c42d968d27bf06411eb15272949cc2%2Fnullify-openapi-bundle.yaml?alt=media)
{% endopenapi %}

## Onboarding

### Get onboarding requirements

Returns the setup items your tenant must finish before onboarding can start (`required`) and the ones its current connections do not yet satisfy (`unmet`). The items are `scm` (source control connected with at least one active repository), `cloud` (any cloud account or Kubernetes cluster), `cloud:aws`, `cloud:gcp`, `cloud:azure`, `cloud:k8s`, and `team_access` (at least one active administrator who is not Nullify staff). The default is `scm`, `cloud` and `team_access`; `customized: true` means Nullify set different requirements for your tenant. [Start onboarding](#start-onboarding) returns 412 naming the items while any are unmet. Requires the config-read permission.

{% openapi src="/files/gPJULkHAwatlcFMluIL1" path="/orchestrator/onboarding/requirements" method="get" %}
[nullify-openapi-bundle.yaml](https://3946391995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FId2OtLCL6O6V3XSRYxtr%2Fuploads%2Fgit-blob-8b1f76e406c42d968d27bf06411eb15272949cc2%2Fnullify-openapi-bundle.yaml?alt=media)
{% endopenapi %}

### Start onboarding

Starts the onboarding pipeline for the tenant (organization context, repository context and the initial scan). Requires the config-write permission. Send `gitOwnerProvider`, which must reference your tenant, and optionally `repositoryIds` to limit which repositories are onboarded (empty means all). Set `force` to re-onboard a tenant whose previous run finished or failed; it never takes over a run that is still in progress, which returns 409.

Starting onboarding can be held for a Nullify-staff start. In that case the call returns 200 with a `message` explaining the hold and `executionStarted: false`, so check `executionStarted` before assuming a run started. Poll [Get onboarding status](#get-onboarding-status) either way.

{% openapi src="/files/gPJULkHAwatlcFMluIL1" path="/orchestrator/onboarding/start" method="post" %}
[nullify-openapi-bundle.yaml](https://3946391995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FId2OtLCL6O6V3XSRYxtr%2Fuploads%2Fgit-blob-8b1f76e406c42d968d27bf06411eb15272949cc2%2Fnullify-openapi-bundle.yaml?alt=media)
{% endopenapi %}

### Get onboarding status

Returns the tenant's onboarding state. `status` is one of `not_started`, `in_progress`, `completed` or `failed`, alongside `currentPhase`, `progressPct`, `completedSteps`, repository counts, `executionStarted` once the run's pipeline has started, and `errorMessage` on failure. `recordMissing: true` means the tenant has no onboarding record. Requires the config-read permission.

{% openapi src="/files/gPJULkHAwatlcFMluIL1" path="/orchestrator/onboarding/status" method="get" %}
[nullify-openapi-bundle.yaml](https://3946391995-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FId2OtLCL6O6V3XSRYxtr%2Fuploads%2Fgit-blob-8b1f76e406c42d968d27bf06411eb15272949cc2%2Fnullify-openapi-bundle.yaml?alt=media)
{% endopenapi %}

## Published operation index

This index comes from the [published specification](https://docs.nullify.ai/api-reference/api-reference/openapi-spec.md). Check its request and response schemas before calling an operation; deployment versions and feature availability can differ.

| Method | Path                                                                       | Operation                             |
| ------ | -------------------------------------------------------------------------- | ------------------------------------- |
| `POST` | `/orchestrator/autofix/batch`                                              | Start Batch Autofix                   |
| `GET`  | `/orchestrator/autofix/batch/{executionId}`                                | Get Batch Autofix Status              |
| `POST` | `/orchestrator/autofix/iterate-pr`                                         | Iterate Autofix PR                    |
| `GET`  | `/orchestrator/checkruns`                                                  | Get Check Runs                        |
| `POST` | `/orchestrator/checkruns/override`                                         | Override Check Run                    |
| `GET`  | `/orchestrator/codereviews`                                                | Get Code Reviews                      |
| `GET`  | `/orchestrator/codereviews/{id}`                                           | Get Code Review                       |
| `GET`  | `/orchestrator/codereviews/{id}/controls`                                  | Get current code review controls      |
| `POST` | `/orchestrator/codereviews/{id}/override`                                  | Withdraw Nullify change requests      |
| `POST` | `/orchestrator/findings/retriage`                                          | Retriage Findings                     |
| `GET`  | `/orchestrator/findings/retriage/{activityId}`                             | Get Retriage Activity                 |
| `GET`  | `/orchestrator/findings/{findingID}/autofix-iterations`                    | Get Finding Autofix Iterations        |
| `POST` | `/orchestrator/findings/{findingID}/ticket/close`                          | Close Finding Ticket                  |
| `GET`  | `/orchestrator/onboarding/requirements`                                    | Get Onboarding Requirements           |
| `POST` | `/orchestrator/onboarding/start`                                           | Start Onboarding                      |
| `GET`  | `/orchestrator/onboarding/status`                                          | Get Onboarding Status                 |
| `POST` | `/orchestrator/onboarding/team-coverage`                                   | Get Selected Onboarding Team Coverage |
| `POST` | `/orchestrator/repositories/{repositoryId}/pull-requests/{number}/reviews` | Start Pull Request Review             |
| `POST` | `/orchestrator/repositories/{repositoryId}/scans`                          | Start Repository Scan                 |
| `GET`  | `/orchestrator/repositories/{repositoryId}/scans/{runId}`                  | Get Repository Scan                   |
| `POST` | `/orchestrator/runs/{kind}/{runId}/control`                                | Control Run                           |
| `GET`  | `/orchestrator/runs/{kind}/{runId}/control/capabilities`                   | Get Run Control Capabilities          |
