Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Repositories, Pull Requests and Code

Operations for the repositories Nullify knows about, which of them are enrolled for scanning, pull request records, file contents from source control, and scan runs grouped by push or pull request. All calls use the tenant API URL and bearer token described in Authentication.

Unless noted otherwise, every operation on this page takes the provider scope query parameter that identifies your tenant, such as githubOwnerId, azureOrganizationId, bitbucketWorkspaceId, gitlabGroupId or installationId. Use whichever one matches your connected source control provider. For the other admin areas see Users, Teams and Findings and metrics.

Repositories

List repositories

Returns the repositories Nullify has synced for your tenant, decorated with finding counts, last scan time and languages. Use search to filter by repository name, teamIDs to restrict to repositories owned by given teams, and includeArchived=true to include repositories archived on the source platform (hidden by default). Page with limit and nextToken (or offset, which overrides nextToken); see Pagination. Requires the config:read permission. Callers whose access is limited to specific teams only see repositories for those teams.

Get Repositories

get

Get a list of repositories in the org

Query parameters
nextTokenstring · nullableOptional

Pagination token for the next page of results

offsetinteger · nullableOptional

Pagination offset; overrides nextToken when set

limitinteger · nullableOptional

Maximum number of repositories to return per page

searchstring · nullableOptional

Case-insensitive search filter for repository names

teamIDsstring[]Optional

Filter repositories by team ULID

includeArchivedboolean · nullableOptional

Include repositories archived on their source platform (default false)

includeArchivedEnrolledstring[]Optional

While archived repositories are hidden, still return those enrolled for one of these scan families: code, secrets

idsstring[] · max: 100Optional

Return exactly these repositories (at most 100), archived ones included; search, the archived filters and paging are ignored

azureOrganizationIdstringOptional

The Azure organization ID

bitbucketWorkspaceIdstringOptional

The Bitbucket workspace ID

githubOwnerIdinteger · int64Optional

The Github owner ID

githubInstallationIdinteger · int64Optional

Operator routes only: the GitHub App installation ID to use alongside githubOwnerId when the tenant's stored record has none. Ignored on customer routes.

gitlabGroupIdinteger · int64Optional

The GitLab group ID

installationIdstringOptional

The Nullify installation ID

azureRepositoryIdstring[]Optional

Filter by Azure repository IDs

githubRepositoryIdinteger · int64[]Optional

Filter by GitHub repository IDs

githubTeamIdinteger · int64Optional

Filter by GitHub team ID

bitbucketRepositoryIdstring[]Optional

Filter by Bitbucket repository IDs

Responses
200

OK

application/json
nextTokenstringRequired
numItemsintegerRequired
totalCountintegerRequired
versionstringOptional
get/admin/repositories
GET /admin/repositories HTTP/1.1
Host: api.<TENANT>.nullify.ai
Accept: */*
{
  "nextToken": "text",
  "numItems": 1,
  "repositories": [
    {
      "codePaths": {
        "exclude": [
          "text"
        ],
        "include": [
          "text"
        ]
      },
      "countsBySeverity": {
        "ANY_ADDITIONAL_PROPERTY": 1
      },
      "countsByType": {
        "ANY_ADDITIONAL_PROPERTY": 1
      },
      "defaultBranch": "text",
      "defaultBranchCommittedAt": "2026-01-01T00:00:00.000Z",
      "defaultBranchSha": "text",
      "excluded": true,
      "id": "text",
      "isArchived": true,
      "isDefaultBranch": true,
      "isEnrolled": true,
      "language": "text",
      "languages": [
        "text"
      ],
      "owner": "text",
      "ownerType": "text",
      "pii": {
        "collections": [
          {
            "collectionId": "text",
            "collections": [
              {
                "occurrences": [
                  {
                    "columnNumber": 1,
                    "excerpt": "text",
                    "fileName": "text",
                    "lineNumber": 1,
                    "sample": "text"
                  }
                ],
                "sourceId": "text"
              }
            ],
            "isSensitive": true,
            "name": "text"
          }
        ],
        "language": "text",
        "probableSinks": [
          "text"
        ],
        "processing": [
          {
            "occurrences": [
              {
                "columnNumber": 1,
                "excerpt": "text",
                "fileName": "text",
                "lineNumber": 1,
                "sample": "text"
              }
            ],
            "sourceId": "text"
          }
        ],
        "sinkProcessing": [
          {
            "occurrences": [
              {
                "columnNumber": 1,
                "excerpt": "text",
                "fileName": "text",
                "lineNumber": 1,
                "sample": "text"
              }
            ],
            "sinkId": "text"
          }
        ],
        "sources": [
          {
            "category": "text",
            "id": "text",
            "isSensitive": true,
            "name": "text",
            "sensitivity": "LOW",
            "sourceType": "text",
            "tags": {
              "ANY_ADDITIONAL_PROPERTY": "text"
            }
          }
        ]
      },
      "platform": "text",
      "repoSizeBytes": 1,
      "repository": "text",
      "repositoryId": "text",
      "sbom": "text",
      "scanScope": {
        "code": {
          "inScope": true,
          "reason": "in_scope"
        },
        "codePaths": {
          "customer": {
            "exclude": [
              "text"
            ],
            "include": [
              "text"
            ]
          },
          "effective": {
            "exclude": [
              "text"
            ],
            "include": [
              "text"
            ]
          },
          "staff": {
            "exclude": [
              "text"
            ],
            "include": [
              "text"
            ]
          }
        },
        "lockedBy": "none",
        "secrets": {
          "inScope": true,
          "reason": "in_scope"
        },
        "secretsExcludes": [
          "text"
        ]
      },
      "scopeUpdatedAt": "2026-01-01T00:00:00.000Z",
      "secretsEnrolled": true,
      "secretsExcludes": [
        "text"
      ],
      "tenantId": "text",
      "timestamp": "text",
      "timestampUnix": 1
    }
  ],
  "totalCount": 1,
  "version": "text"
}

Scan scope

Scan scope controls which repositories, and which directories within them, Nullify scans. By default scoping is off and every repository is scanned. When scoping is on, only repositories enrolled for a scan family (code or secrets) are scanned for it. Repositories are identified by their canonical repository ID, the id returned by List repositories.

The code and secrets repository caps are set by Nullify per commercial agreement and are read-only through the API; contact Nullify to change them. The earlier enrollment routes (PUT /admin/repositories/enrollment, POST /admin/repositories/enrollment/enroll-all, GET/PUT /admin/repositories/enrollment/limit, GET/PUT /admin/repositories/enrollment/scoping, POST /admin/repositories/initialize and POST /admin/repositories/uninitialize) have been removed; use the operations below.

Get scan scope

GET /admin/scan-scope returns the caps (codeRepositoryCap, secretsRepositoryCap; null means unlimited), how many repositories each family has enrolled, scopingEnabled and secretsMode. Requires config:read.

Update scan scope settings

PUT /admin/scan-scope takes scopingEnabled: true to turn scoping on (it cannot be turned off through the API) and/or secretsMode: follow_code (secrets scope equals code scope) or independent (repositories are enrolled for secrets separately). A change that would exceed a cap is refused with 412. Requires config:write.

Update repository scan scopes

PUT /admin/repositories/scan-scope applies a delta of up to 100 repositories in repositories. Each entry names a repositoryId and any of codeEnrolled, secretsEnrolled (independent mode only), codePaths (include/exclude directory lists) and secretsExcludes. Repositories not listed are left untouched. Only repositories newly entering a family are charged against its cap; a breach returns 412 and nothing is written. An unknown repository ID returns 400. Repositories newly in scope get a default-branch scan. Requires config:write.

List repository directories

GET /admin/repositories/{repositoryId}/directories?path=<dir> lists the subdirectories one level below path (empty for the root) on the repository's default branch, for choosing directory rules. Requires config:read.

Get repository proof-of-value recommendations

Returns the recommended set of repositories from the latest repo-scope scan: the smallest set that together demonstrates each Nullify capability (SAST, SCA, secrets, DAST, code-to-cloud, campaigns). Each entry carries per-capability fit scores, whether it is already enrolled (isEnrolled), and uncoveredCaps lists capabilities no repository could demonstrate. scanId and generatedAt are empty until a scan has run. This is read-only; enroll the repositories you accept with Update repository scan scopes. Requires config:read.

Get Repository PoV Recommendations

get

The capability-coverage covering set from the latest repo-scope scan — repos recommended to prove each PoV (SAST, SCA, secrets, DAST, code-to-cloud, campaigns). Repositories Nullify has not made available to scan are left out. Produce-only; confirm via enrollment.

Query parameters
azureOrganizationIdstringOptional

The Azure organization ID

bitbucketWorkspaceIdstringOptional

The Bitbucket workspace ID

githubOwnerIdinteger · int64Optional

The Github owner ID

githubInstallationIdinteger · int64Optional

Operator routes only: the GitHub App installation ID to use alongside githubOwnerId when the tenant's stored record has none. Ignored on customer routes.

gitlabGroupIdinteger · int64Optional

The GitLab group ID

installationIdstringOptional

The Nullify installation ID

azureRepositoryIdstring[]Optional

Filter by Azure repository IDs

githubRepositoryIdinteger · int64[]Optional

Filter by GitHub repository IDs

githubTeamIdinteger · int64Optional

Filter by GitHub team ID

bitbucketRepositoryIdstring[]Optional

Filter by Bitbucket repository IDs

Responses
200

OK

application/json
generatedAtstringRequired
scanIdstringRequired
uncoveredCapsstring[] · nullableRequired
get/admin/repositories/recommendations
GET /admin/repositories/recommendations HTTP/1.1
Host: api.<TENANT>.nullify.ai
Accept: */*
{
  "generatedAt": "text",
  "recommended": [
    {
      "capabilityFit": {
        "ANY_ADDITIONAL_PROPERTY": {
          "reason": "text",
          "requiresConfirmation": true,
          "score": 1,
          "strength": "text"
        }
      },
      "covers": [
        "text"
      ],
      "importanceScore": 1,
      "isEnrolled": true,
      "isRecommended": true,
      "owner": "text",
      "primaryCapability": "text",
      "repository": "text",
      "repositoryId": "text",
      "requiresConfirmation": true
    }
  ],
  "scanId": "text",
  "uncoveredCaps": [
    "text"
  ]
}

Pull requests

Pull request records are the pull requests Nullify opened or tracks for findings (for example autofix pull requests). The record id is Nullify's internal ID and is different from the pull request number on the provider.

Query pull requests

Searches pull request records for your tenant. The JSON body takes a query object with optional filters statuses, prTypes, findingIds, repositoryOwners, repositoryNames and prIdentifiers, plus page and pageSize. Requires finding:read. Pull requests are not associated with teams, so callers whose access is limited to specific teams always receive an empty list.

Query Pull Requests

post

Query the canonical finding_pull_requests records for a tenant

Query parameters
azureOrganizationIdstringOptional

The Azure organization ID

bitbucketWorkspaceIdstringOptional

The Bitbucket workspace ID

githubOwnerIdinteger · int64Optional

The Github owner ID

githubInstallationIdinteger · int64Optional

Operator routes only: the GitHub App installation ID to use alongside githubOwnerId when the tenant's stored record has none. Ignored on customer routes.

gitlabGroupIdinteger · int64Optional

The GitLab group ID

installationIdstringOptional

The Nullify installation ID

azureRepositoryIdstring[]Optional

Filter by Azure repository IDs

githubRepositoryIdinteger · int64[]Optional

Filter by GitHub repository IDs

githubTeamIdinteger · int64Optional

Filter by GitHub team ID

bitbucketRepositoryIdstring[]Optional

Filter by Bitbucket repository IDs

Body
Responses
200

OK

application/json
versionstringOptional
post/admin/pullrequests
POST /admin/pullrequests HTTP/1.1
Host: api.<TENANT>.nullify.ai
Content-Type: application/json
Accept: */*
Content-Length: 174

{
  "query": {
    "findingIds": [
      "text"
    ],
    "page": 1,
    "pageSize": 1,
    "prIdentifiers": [
      "text"
    ],
    "prTypes": [
      "text"
    ],
    "repositoryNames": [
      "text"
    ],
    "repositoryOwners": [
      "text"
    ],
    "statuses": [
      "text"
    ]
  }
}
{
  "pullRequests": [
    {
      "autofixId": "text",
      "azureProjectId": "text",
      "bitbucketWorkspace": "text",
      "ciCheckedAt": "2026-01-01T00:00:00.000Z",
      "ciDetailUrl": "text",
      "ciState": "pending",
      "closedAt": "2026-01-01T00:00:00.000Z",
      "closedAtSource": "provider",
      "closedBy": "nullify_operator",
      "createdAt": "2026-01-01T00:00:00.000Z",
      "currentIterationId": "text",
      "findingId": "text",
      "findingType": "text",
      "firstReviewedAt": "2026-01-01T00:00:00.000Z",
      "gitlabProjectId": 1,
      "hasCustomerCommit": true,
      "hasCustomerFeedback": true,
      "id": "text",
      "lastReviewedAt": "2026-01-01T00:00:00.000Z",
      "mergedAt": "2026-01-01T00:00:00.000Z",
      "platform": "text",
      "prCustomerInteracted": true,
      "prIdentifier": "text",
      "prStatus": "text",
      "prTitle": "text",
      "prType": "text",
      "prUrl": "text",
      "recovery": {
        "detail": "text",
        "disposition": "text",
        "kind": "text",
        "observedAt": "2026-01-01T00:00:00.000Z",
        "stuckDetectedAt": "2026-01-01T00:00:00.000Z",
        "stuckReason": "text"
      },
      "repositoryId": "text",
      "repositoryName": "text",
      "repositoryOwner": "text",
      "sourceBranch": "text",
      "targetBranch": "text",
      "updatedAt": "2026-01-01T00:00:00.000Z"
    }
  ],
  "version": "text"
}

Get a pull request record

Returns one record by its internal id (query parameter, required), usually taken from Query pull requests. Returns 404 when no record with that ID exists in your tenant. Requires finding:read.

Get Pull Request Record

get

Get one finding_pull_requests record by its internal ID

Query parameters
idstringRequired
azureOrganizationIdstringOptional

The Azure organization ID

bitbucketWorkspaceIdstringOptional

The Bitbucket workspace ID

githubOwnerIdinteger · int64Optional

The Github owner ID

githubInstallationIdinteger · int64Optional

Operator routes only: the GitHub App installation ID to use alongside githubOwnerId when the tenant's stored record has none. Ignored on customer routes.

gitlabGroupIdinteger · int64Optional

The GitLab group ID

installationIdstringOptional

The Nullify installation ID

azureRepositoryIdstring[]Optional

Filter by Azure repository IDs

githubRepositoryIdinteger · int64[]Optional

Filter by GitHub repository IDs

githubTeamIdinteger · int64Optional

Filter by GitHub team ID

bitbucketRepositoryIdstring[]Optional

Filter by Bitbucket repository IDs

Responses
200

OK

application/json
versionstringOptional
get/admin/pullrequests
GET /admin/pullrequests?id=text HTTP/1.1
Host: api.<TENANT>.nullify.ai
Accept: */*
{
  "pullRequest": {
    "autofixId": "text",
    "azureProjectId": "text",
    "bitbucketWorkspace": "text",
    "ciCheckedAt": "2026-01-01T00:00:00.000Z",
    "ciDetailUrl": "text",
    "ciState": "pending",
    "closedAt": "2026-01-01T00:00:00.000Z",
    "closedAtSource": "provider",
    "closedBy": "nullify_operator",
    "createdAt": "2026-01-01T00:00:00.000Z",
    "currentIterationId": "text",
    "findingId": "text",
    "findingType": "text",
    "firstReviewedAt": "2026-01-01T00:00:00.000Z",
    "gitlabProjectId": 1,
    "hasCustomerCommit": true,
    "hasCustomerFeedback": true,
    "id": "text",
    "lastReviewedAt": "2026-01-01T00:00:00.000Z",
    "mergedAt": "2026-01-01T00:00:00.000Z",
    "platform": "text",
    "prCustomerInteracted": true,
    "prIdentifier": "text",
    "prStatus": "text",
    "prTitle": "text",
    "prType": "text",
    "prUrl": "text",
    "recovery": {
      "detail": "text",
      "disposition": "text",
      "kind": "text",
      "observedAt": "2026-01-01T00:00:00.000Z",
      "stuckDetectedAt": "2026-01-01T00:00:00.000Z",
      "stuckReason": "text"
    },
    "repositoryId": "text",
    "repositoryName": "text",
    "repositoryOwner": "text",
    "sourceBranch": "text",
    "targetBranch": "text",
    "updatedAt": "2026-01-01T00:00:00.000Z"
  },
  "version": "text"
}

Refresh pull request CI

Re-reads CI check state from the source control provider for open or draft autofix pull requests and updates the stored records. Send up to 100 record IDs in ids. The response splits them into refreshedIds, failedIds (the provider call failed) and rejectedIds (unknown to your tenant, not open or draft, or missing repository details). Duplicate IDs are collapsed. The call is synchronous and does not change the pull request itself. Requires finding:read; more than 100 IDs returns 400.

Refresh Pull Request CI

post

Refresh CI state for visible active autofix pull requests

Query parameters
azureOrganizationIdstringOptional

The Azure organization ID

bitbucketWorkspaceIdstringOptional

The Bitbucket workspace ID

githubOwnerIdinteger · int64Optional

The Github owner ID

githubInstallationIdinteger · int64Optional

Operator routes only: the GitHub App installation ID to use alongside githubOwnerId when the tenant's stored record has none. Ignored on customer routes.

gitlabGroupIdinteger · int64Optional

The GitLab group ID

installationIdstringOptional

The Nullify installation ID

azureRepositoryIdstring[]Optional

Filter by Azure repository IDs

githubRepositoryIdinteger · int64[]Optional

Filter by GitHub repository IDs

githubTeamIdinteger · int64Optional

Filter by GitHub team ID

bitbucketRepositoryIdstring[]Optional

Filter by Bitbucket repository IDs

Body
idsstring[] · nullableRequired
Responses
200

OK

application/json
failedIdsstring[] · nullableRequired
refreshedIdsstring[] · nullableRequired
rejectedIdsstring[] · nullableRequired
versionstringOptional
post/admin/pullrequests/refresh-ci
POST /admin/pullrequests/refresh-ci HTTP/1.1
Host: api.<TENANT>.nullify.ai
Content-Type: application/json
Accept: */*
Content-Length: 16

{
  "ids": [
    "text"
  ]
}
{
  "failedIds": [
    "text"
  ],
  "refreshedIds": [
    "text"
  ],
  "rejectedIds": [
    "text"
  ],
  "version": "text"
}

Get pull request state

Fetches the live state of a pull request from the source control provider, including its changed files and hunks. Both repositoryId and prId are required query parameters (the provider repository ID and pull request number or ID, not a Nullify record ID). Returns 404 when the provider reports the pull request does not exist. Requires config:read.

Get PR State

get

Gets the current state of a pull request

Query parameters
repositoryIdstringRequired
prIdstringRequired
azureOrganizationIdstringOptional

The Azure organization ID

bitbucketWorkspaceIdstringOptional

The Bitbucket workspace ID

githubOwnerIdinteger · int64Optional

The Github owner ID

githubInstallationIdinteger · int64Optional

Operator routes only: the GitHub App installation ID to use alongside githubOwnerId when the tenant's stored record has none. Ignored on customer routes.

gitlabGroupIdinteger · int64Optional

The GitLab group ID

installationIdstringOptional

The Nullify installation ID

azureRepositoryIdstring[]Optional

Filter by Azure repository IDs

githubRepositoryIdinteger · int64[]Optional

Filter by GitHub repository IDs

githubTeamIdinteger · int64Optional

Filter by GitHub team ID

bitbucketRepositoryIdstring[]Optional

Filter by Bitbucket repository IDs

Responses
200

OK

application/json
get/admin/getPullRequest
GET /admin/getPullRequest?repositoryId=text&prId=text HTTP/1.1
Host: api.<TENANT>.nullify.ai
Accept: */*
{
  "pullRequestState": {
    "diffs": [
      {
        "header": "text",
        "hunks": [
          {
            "header": "text",
            "wholeRange": {
              "length": 1,
              "lines": [
                {
                  "content": "text",
                  "mode": 1,
                  "number": 1
                }
              ],
              "start": 1
            }
          }
        ],
        "mode": 1,
        "newName": "text",
        "origName": "text"
      }
    ],
    "id": "text",
    "state": "text",
    "url": "text"
  }
}

Files and ownership

Get file contents

Reads a file from source control. repositoryId, reference (branch, tag or commit) and filePath are required; projectId applies to providers that need it. Add startLine (1-based) and optionally endLine to return only a line range; line endings are normalised to \n. endLine below startLine or a startLine past the end of the file returns 400, and a missing file returns 404. Requires config:read.

Get File Contents

get

Gets contents of a file from source control. For a tenant that narrows any scan, a repository outside the scanFamily's scan scope (code by default; secrets for a secrets finding) or a path that family's directory scope leaves out is refused (412), and an unreadable scan scope is 503.

Query parameters
azureOrganizationIdstringOptional

The Azure organization ID

bitbucketWorkspaceIdstringOptional

The Bitbucket workspace ID

githubOwnerIdinteger · int64Optional

The Github owner ID

githubInstallationIdinteger · int64Optional

Operator routes only: the GitHub App installation ID to use alongside githubOwnerId when the tenant's stored record has none. Ignored on customer routes.

gitlabGroupIdinteger · int64Optional

The GitLab group ID

installationIdstringOptional

The Nullify installation ID

azureRepositoryIdstring[]Optional

Filter by Azure repository IDs

githubRepositoryIdinteger · int64[]Optional

Filter by GitHub repository IDs

githubTeamIdinteger · int64Optional

Filter by GitHub team ID

bitbucketRepositoryIdstring[]Optional

Filter by Bitbucket repository IDs

repositoryIdstringRequired
referencestringRequired
filePathstringRequired
projectIdstringOptional
startLineintegerOptional
endLineintegerOptional
scanFamilystring · enumOptional

Scan family whose scope must admit the file: code (default) or secrets

Default: codePossible values:
Responses
200

OK

application/json
datastringRequired
get/admin/getFileContents
GET /admin/getFileContents?repositoryId=text&reference=text&filePath=text HTTP/1.1
Host: api.<TENANT>.nullify.ai
Accept: */*
{
  "data": "text"
}

Get file owners

Resolves owners for file paths from the CODEOWNERS data Nullify has already cached for each repository and branch. The body is {"files": [...]} where each entry needs id, repositoryName, branchName and filePath. It reads cached data and does not fetch from your provider. Requires config:read. This endpoint may be deprecated, so avoid new dependencies on it.

Get File Owners

post

Gets the owners of a file path from previously cached codeowners files for a repo + branch

Query parameters
azureOrganizationIdstringOptional

The Azure organization ID

bitbucketWorkspaceIdstringOptional

The Bitbucket workspace ID

githubOwnerIdinteger · int64Optional

The Github owner ID

githubInstallationIdinteger · int64Optional

Operator routes only: the GitHub App installation ID to use alongside githubOwnerId when the tenant's stored record has none. Ignored on customer routes.

gitlabGroupIdinteger · int64Optional

The GitLab group ID

installationIdstringOptional

The Nullify installation ID

azureRepositoryIdstring[]Optional

Filter by Azure repository IDs

githubRepositoryIdinteger · int64[]Optional

Filter by GitHub repository IDs

githubTeamIdinteger · int64Optional

Filter by GitHub team ID

bitbucketRepositoryIdstring[]Optional

Filter by Bitbucket repository IDs

Body
Responses
200

OK

application/json
post/admin/getFileOwners
POST /admin/getFileOwners HTTP/1.1
Host: api.<TENANT>.nullify.ai
Content-Type: application/json
Accept: */*
Content-Length: 87

{
  "files": [
    {
      "branchName": "text",
      "filePath": "text",
      "id": "text",
      "repositoryName": "text"
    }
  ]
}
{
  "data": [
    {
      "id": "text",
      "owners": [
        {
          "name": "text",
          "type": "email"
        }
      ]
    }
  ]
}

Scans

List orchestrator scans

Lists scan runs grouped by orchestrator run: the per-scanner runs triggered by one push or pull request (repository, branch, commit and trigger) collapse into a single row with scanner counts, finding deltas (newFindingsCount, fixedFindingsCount, reintroducedFindingsCount, liveFindingsCount) and a coverageStatus of complete, partial or unknown. Filter with repeated scanType (sast, sca_dependencies, sca_containers, secrets), repeated status (running_scan, running_results, completed, skipped, scan_failed, results_failed, stuck_failed), and from and to as RFC3339 start times. Paginate with limit (default and maximum 100) and offset; the response returns totalCount rather than a nextToken. Invalid filter values return 400. Requires finding:read.

List Orchestrator Scans

get

Lists scans grouped by orchestrator run: the per-scanner scan_runs of one push/PR (repository, branch, commit, trigger) collapsed into a single row

Query parameters
scanTypestring[]Optional

Scan types to include (sast, sca_dependencies, sca_containers, secrets); default all

statusstring[]Optional

Scan run statuses to include (running_scan, running_results, completed, skipped, scan_failed, results_failed, stuck_failed); default all

fromstring · nullableOptional

Only include scans started at or after this RFC3339 timestamp

tostring · nullableOptional

Only include scans started at or before this RFC3339 timestamp

limitinteger · nullableOptional

Max scans per page (default 100, max 100)

offsetinteger · nullableOptional

Pagination offset (default 0)

azureOrganizationIdstringOptional

The Azure organization ID

bitbucketWorkspaceIdstringOptional

The Bitbucket workspace ID

githubOwnerIdinteger · int64Optional

The Github owner ID

githubInstallationIdinteger · int64Optional

Operator routes only: the GitHub App installation ID to use alongside githubOwnerId when the tenant's stored record has none. Ignored on customer routes.

gitlabGroupIdinteger · int64Optional

The GitLab group ID

installationIdstringOptional

The Nullify installation ID

azureRepositoryIdstring[]Optional

Filter by Azure repository IDs

githubRepositoryIdinteger · int64[]Optional

Filter by GitHub repository IDs

githubTeamIdinteger · int64Optional

Filter by GitHub team ID

bitbucketRepositoryIdstring[]Optional

Filter by Bitbucket repository IDs

Responses
200

OK

application/json
totalCountintegerOptional
get/admin/scans/orchestrator
GET /admin/scans/orchestrator HTTP/1.1
Host: api.<TENANT>.nullify.ai
Accept: */*
{
  "scans": [
    {
      "branch": "text",
      "commitHash": "text",
      "completedAt": "text",
      "completedCount": 1,
      "coverageStatus": "text",
      "failedCount": 1,
      "fixedFindingsCount": 1,
      "hasRunningScanForCommit": true,
      "isDefaultBranch": true,
      "latestScanStartedAtForCommit": "text",
      "liveFindingsCount": 1,
      "newFindingsCount": 1,
      "overallStatus": "text",
      "owner": "text",
      "platform": "text",
      "reintroducedFindingsCount": 1,
      "repository": "text",
      "repositoryId": "text",
      "runningCount": 1,
      "scannerCount": 1,
      "scanners": [
        {
          "completedAt": "text",
          "coverageStatus": "text",
          "degradedScanShards": 1,
          "fixedFindingsCount": 1,
          "incompleteEntrypoints": 1,
          "newFindingsCount": 1,
          "reintroducedFindingsCount": 1,
          "scanRunId": "text",
          "scanType": "text",
          "startedAt": "text",
          "status": "text",
          "totalScanShards": 1
        }
      ],
      "severityCritical": 1,
      "severityHigh": 1,
      "severityLow": 1,
      "severityMedium": 1,
      "skippedCount": 1,
      "startedAt": "text",
      "triggerType": "text"
    }
  ],
  "totalCount": 1
}

Context upload and triage census

Get context upload credentials

Returns short-lived (one hour) AWS credentials scoped to write only under one storage prefix, for uploading infrastructure and delivery context for a repository, such as Terraform plans or CI logs. The body needs contextType (terraform, ci_logs, config, deploy or api_spec), repository in org/repo form and name; optional fields are branch, environment (development, staging, production, unknown; default unknown), prNumber, fromPR and commitSha. The response contains credentials, bucket, keyPrefix and region; upload objects under keyPrefix with those credentials, then they expire. Requests are rejected with 400 when a value is invalid or context ingestion is not configured for your deployment. This is mainly used by the Nullify CLI. Requires config:write.

Get Context Upload Credentials

post

Returns scoped STS credentials for uploading context data to S3

Query parameters
azureOrganizationIdstringOptional

The Azure organization ID

bitbucketWorkspaceIdstringOptional

The Bitbucket workspace ID

githubOwnerIdinteger · int64Optional

The Github owner ID

githubInstallationIdinteger · int64Optional

Operator routes only: the GitHub App installation ID to use alongside githubOwnerId when the tenant's stored record has none. Ignored on customer routes.

gitlabGroupIdinteger · int64Optional

The GitLab group ID

installationIdstringOptional

The Nullify installation ID

azureRepositoryIdstring[]Optional

Filter by Azure repository IDs

githubRepositoryIdinteger · int64[]Optional

Filter by GitHub repository IDs

githubTeamIdinteger · int64Optional

Filter by GitHub team ID

bitbucketRepositoryIdstring[]Optional

Filter by Bitbucket repository IDs

Body
branchstringOptional

Git branch name (e.g. main, feat/add-vpc)

commitShastringOptional

Git commit SHA

contextTypestringRequired

Context data type (e.g. terraform, ci_logs)

environmentstring · enumOptionalPossible values:
fromPRintegerOptional

PR number that originated this deployment (set on push-to-main after merge)

namestringRequired

Logical name for this context (e.g. networking, ecs-api, CI). Auto-detected by CLI from plan file path or workflow name.

prNumberintegerOptional

Pull request number (for PR-scoped uploads)

repositorystringRequired

Repository in org/repo format

Responses
200

OK

application/json
bucketstringOptional
keyPrefixstringOptional
kmsKeyArnstringOptional
regionstringOptional
post/admin/context/ingest
POST /admin/context/ingest HTTP/1.1
Host: api.<TENANT>.nullify.ai
Content-Type: application/json
Accept: */*
Content-Length: 143

{
  "branch": "text",
  "commitSha": "text",
  "contextType": "text",
  "environment": "development",
  "fromPR": 1,
  "name": "text",
  "prNumber": 1,
  "repository": "text"
}
{
  "bucket": "text",
  "credentials": {
    "accessKeyId": "text",
    "expiration": "text",
    "secretAccessKey": "text",
    "sessionToken": "text"
  },
  "keyPrefix": "text",
  "kmsKeyArn": "text",
  "region": "text"
}

Post triage context census

Reports which of a set of findings were last triaged without organisation or repository context. Send up to 1000 IDs in findingIds (more returns 400). The response lists the blind subset with which context was missing, requested (how many IDs you sent) and tenantSummary, the tenant-wide per-finding-type shortfall. IDs that are absent from blind either had context or have no triage report. It is a read-only call despite using POST, and a transient database failure is reported as a retryable error. Requires finding:read.

Post Triage Context Census

post

Report which of the supplied findings were triaged without org or repo context, with the tenant-wide shortfall

Query parameters
azureOrganizationIdstringOptional

The Azure organization ID

bitbucketWorkspaceIdstringOptional

The Bitbucket workspace ID

githubOwnerIdinteger · int64Optional

The Github owner ID

githubInstallationIdinteger · int64Optional

Operator routes only: the GitHub App installation ID to use alongside githubOwnerId when the tenant's stored record has none. Ignored on customer routes.

gitlabGroupIdinteger · int64Optional

The GitLab group ID

installationIdstringOptional

The Nullify installation ID

azureRepositoryIdstring[]Optional

Filter by Azure repository IDs

githubRepositoryIdinteger · int64[]Optional

Filter by GitHub repository IDs

githubTeamIdinteger · int64Optional

Filter by GitHub team ID

bitbucketRepositoryIdstring[]Optional

Filter by Bitbucket repository IDs

Body
findingIdsstring[] · nullableRequired

finding IDs to census for missing triage context

Responses
200

OK

application/json
requestedintegerRequired
versionstringOptional
post/admin/triage/context-census
POST /admin/triage/context-census HTTP/1.1
Host: api.<TENANT>.nullify.ai
Content-Type: application/json
Accept: */*
Content-Length: 23

{
  "findingIds": [
    "text"
  ]
}
{
  "blind": [
    {
      "findingId": "text",
      "findingType": "text",
      "missingOrgContext": true,
      "missingRepoContext": true,
      "orgContextVersion": "text",
      "repoContextVersion": "text"
    }
  ],
  "requested": 1,
  "tenantSummary": [
    {
      "findingType": "text",
      "missingOrgContext": 1,
      "missingRepoContext": 1,
      "total": 1
    }
  ],
  "version": "text"
}

Last updated