---
sourceDocument: Brazil Impact
sourceDocumentLink: https://www.servicenow.com/docs/r/impact

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Impact

ft:clusterId :

    - ipact

bundleId :

    - ipact


---

# Scan Engine Headless REST API

# Scan Engine Headless REST API {#ariaid-title1}

Release version: Brazil  
Updated September 23, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Scan Engine Headless REST API

The Scan Engine Headless REST API enables ServiceNow customers to programmatically trigger and manage security scans without using the user interface.
This API supports integration with Continuous Integration/Continuous Deployment (CI/CD) pipelines, scheduled jobs, and custom workflows, facilitating automated and scalable scan operations.
It allows users to initiate scans, monitor progress in real-time, retrieve detailed findings, and manage scan results efficiently within server-side environments.
Show full answer Show less  

## Key Features

* **Automated Scan Triggering:** Start scans against instances, update sets, applications, or content programmatically via REST endpoints.
* **Real-Time Monitoring:** Poll scan status endpoints to track progress and receive error, warning counts, and overall health scores.
* **Findings Retrieval:** Fetch detailed scan results after completion, including severity, descriptions, and affected records for prioritization.
* **Scan Cancellation:** Cancel scans mid-process if no longer necessary.
* **Resolved Findings Access:** Query historical scan data to monitor fixed or resolved issues over time.
* **Headless Operation:** Run scans in server-side environments without dependence on the user interface.

## Practical Use Cases

* Integrate scans into CI/CD pipelines to block deployments if vulnerabilities are detected, preventing issues before production deployment.
* Automate nightly health checks on CMDB or service mapping data without manual intervention.
* Run parallel scans across multiple applications within larger automation workflows.
* Aggregate and report scan results over time for continuous monitoring and compliance tracking.

## Requirements

* ServiceNow instance with Scan Engine enabled, running Impact Platform version 12.0.0 or later.
* User account assigned the **snse.scanengineuser** role.
* Valid session token or OAuth credentials for API authentication.
* API access enabled on the ServiceNow instance.

## How the API Works

The API follows a straightforward request-response workflow:

* **Trigger a Scan:** Send a POST request specifying the scan scope, receiving a unique scan result ID for tracking.
* **Check Status:** Poll the status endpoint to determine if the scan is running or complete, with health metrics returned.
* **Retrieve Findings:** After completion, fetch detailed findings to understand discovered issues.
* **Act on Results:** Use findings to automate actions such as failing builds, sending alerts, or generating reports.
* **Optional Actions:** Cancel ongoing scans or retrieve resolved findings for historical insight.

## Key Concepts

* **Scan Result ID:** Unique identifier for each scan used to track and retrieve results; persists for audit and history.
* **Scan Mode:** Defines scan scope (instance, updateset, application, or content), with backward-compatible naming conventions.
* **Health Score:** Numeric value (0--100) indicating overall scan health; lower scores mean more findings and can guide automated thresholds.
* **Findings:** Individual issues detected by scans including severity and details, crucial for prioritizing remediation.
* **Trigger Channel:** Indicates if the scan was initiated via API, UI, or scheduled job, useful for tracking scan origins.  
The Scan Engine API gives you a way to trigger scans programmatically, retrieve findings in real-time, and integrate scan automation into your business processes. Rather than running scans from the user interface, call REST
endpoints from Continuous Integration/Continuous Deployment (CI/CD) pipelines, scheduled jobs, or custom workflows.
With Scan Engine API, you can:

* Automate scans by triggering them from CI/CD pipelines, scheduled jobs, or custom workflows
* Retrieve findings programmatically and integrate scan results into your tooling
* Run headless scans in server-side environments without the user interface
* Monitor scans in real-time by polling scan status and acting on results immediately
* Cancel scans that are no longer needed
* Retrieve findings that have been resolved or fixed over time
{#scan-engine-headless-api-overview__ul_ny3_l23_lkc}

## When to use the Scan Engine API {#scan-engine-headless-api-overview__section_when_to_use}

Use the Scan Engine API to:

* Block deployments based on scan findings and integrate into your CI/CD pipeline to catch issues before code moves to production
* Run nightly health checks on your CMDB or service mapping without manual action
* Scan multiple applications in parallel as part of a larger automation workflow
* Collect and report on scan results over time as part of your monitoring strategy
{#scan-engine-headless-api-overview__ul_oy3_l23_lkc}

## Before you start {#scan-engine-headless-api-overview__section_requirements}

Requirements:

* A ServiceNow instance with Scan Engine enabled, running Impact Platform v12.0.0 or later
* A user account with the sn_se.scan_engine_user role
* Valid session token or OAuth credentials for authentication
* API access enabled on your instance
{#scan-engine-headless-api-overview__ul_py3_l23_lkc}

## How the API works {#scan-engine-headless-api-overview__section_how_it_works}

The Scan Engine API follows a request-response pattern:
{#scan-engine-headless-api-overview__section_how_it_works__entry__2}

| Request | Response |
|-|-|
| Trigger a scan | * Send a POST request to start a scan against an instance, update set, application, or content. * Returns a unique scan result ID you can use to track progress. {#scan-engine-headless-api-overview__ul_jb5_wwg_rkc} |
| Check status | Poll the status endpoint to see whether the scan is still running or complete. Returns error and warning counts, and an overall health score. |
| Retrieve findings | Once the scan completes, fetch the findings endpoint to get detailed results about what was found and where. |
| Act on results | Use the findings in your workflow to fail a CI/CD build, send an alert, or generate a report. |
| Cancel scan (optional) | Cancel before the scan completes if it is no longer needed, |
| Retrieve resolved findings (optional) | Query for findings that have been fixed or resolved over time to track long-term improvements. |
[Table 1. Scan Engine API workflow]

## Key concepts {#scan-engine-headless-api-overview__section_key_concepts}

Scan result ID
:   A unique identifier returned when you start a scan. Use this ID to check status and retrieve findings. It persists in your instance so you can access scan history.

Scan mode
:   The type of scan you're running, either `instance`, `update_set`, `application`, or `content`. Each mode targets a different scope. Suffixed spellings such as
    `instance_scan` and `application_scan` are also accepted for backward compatibility. The response always echoes the canonical unsuffixed mode name.

Health score
:   A 0--100 score reflecting the overall health of the scanned target. Lower scores indicate more findings. Use this to set thresholds for automated decisions.

Findings
:   Individual violations discovered during a scan. Each finding includes a severity level, a description of the issue, and the affected record. Use findings to prioritize fixes. For a complete list of fields returned in finding
    responses, see [Scan Engine API field reference](https://www.servicenow.com/docs/cixtE6FmZ4q9Ow6l5mxHmQ "Field reference for scan status, findings, and resolved findings API responses.").

Trigger channel
:   The declared origin of the scan request, either API, UI, or Scheduled. Use this field to determine whether a scan was triggered programmatically.

