Targets
In Snyk API & Web, a target defines the scope and behavior of a scan on a website, an application, or an API.
Each target has a URL that defines the scope of the scan and also the configuration of the scan behavior as, for example:
- The authentication mechanism for the scanner to be able to log in.
- The scan profile defining how the scan is performed.
- The integration with third-party systems, like Jira, to synchronize scan results.
Learn more about targets in this article: Targets from A to Z.
Functionality
The endpoints under Targets provide the following functionality:
- Create and manage targets.
- Update and delete targets in bulk.
- Export and import targets.
- Upload and download API schema files of API targets.
- Check authentication in API targets.
- Clear authentication configurations in targets.
- Create and manage logout detectors in targets.
Related Tags
Further functionality related to Targets is provided in the following tags:
- Target Scans Configuration
- Extra Hosts - Manage extra hosts to extend the scope of target scans to more domains.
- Scanning Agents - Manage scanning agents to extend the scope of target scans to internal applications.
- Reduced Scope - Manage reduced scopes to run partial scans on a subset of the target.
- Navigation and Login Sequences - Manage recorded sequences of browser interactions to replay in target scans.
- Scan Profiles - Manage scan profiles to configure how target scans are performed.
- Target Scans
- Scans - Manage target scans.
- Scheduled Scans - Manage scheduled target scans.
- Findings
- Findings - Manage findings obtained from target scans.
- Reports
- Reports - Retrieve reports on findings from target scans.
- Dashboards - Retrieve statistical information on target scans.
- Integrations
- Slack Integration - Manage the integration with Slack to get notifications of events on target scans.
- Jira Cloud Integration - Manage the integration with Jira to synchronize findings from target scans.
- Reports - Delete reports from Jira.
- Azure DevOps Integration - Manage the integration with Azure DevOps to synchronize findings from target scans.
- Events
- Events - Manage notifications of events on targets and target scans.
- Target Management
- Account - Manage targets with unlimited scans in the account.
- Teams - Manage targets in teams.
- Target Labels - Manage labels to apply to targets to facilitate target management.
List Targets
Create Target
Retrieve Target
Update Target
Partial Update Target
Delete Target
Disable Active API Authentication Method
Disables the currently active API authentication method and, when another method is ready on the same row, switches to it so the target stays authenticated. Since BAW-2131 the stored credentials of the deactivated method (payload SA fields or browser-auth token descriptors) are preserved so the caller can toggle the active method back via a PUT of `api_login_method` without re-entering them. Callers that want to truly clear a method's stored configuration should PATCH the api-scan-settings endpoint with empty strings.
Clear Basic Authentication Configuration
Test Log In to API
Test the API login configuration by making a login request
Download API Schema File
Clear Login Form Configuration.
Endpoint for interacting with Scopes (AKA Targets).
List Collection Variable References
Return the sorted, de-duplicated list of variable names the target's Postman or Bruno collection *reads* — from ``{{placeholder}}`` references in URLs, headers, bodies and auth blocks, and from ``pm.environment.get('name')`` / ``bru.getVar('name')`` / ``bru.getEnvVar('name')`` calls in pre-request and test scripts. Setter calls are intentionally excluded; globals-scope getters (``pm.globals.get`` / ``bru.getGlobalEnvVar``) are also excluded because the engine only seeds env-scope, so surfacing them would produce silent misses at scan time.
List Postman Collection Folders
Retrieve Login Video
Streams the login video file for the specified target. If no login video is found, returns a 404.
Clear Logout Detection Configuration
Retrieve MLE Configuration for Target
Returns the current Message Level Encryption (MLE) configuration status for the target.
Create or Update MLE Configuration for Target
Create or replace the MLE configuration for a target by uploading
Update MLE Configuration for Target
Allows updating MLE metadata (enabled, key_id, scope) for a target.
Delete MLE Configuration for Target
Remove the MLE configuration for a target.
Retrieve mTLS Configuration for Target
Returns the current mTLS configuration status for the target.
Create or Update mTLS Configuration for Target
Create or replace the mTLS configuration for a target by uploading
Update mTLS Configuration for Target
Allows enabling or disabling mTLS for a target.
Delete mTLS Configuration for Target
Remove the mTLS configuration for a target.
Retrieve NTLM Configuration for Target
Returns the current NTLM configuration status for the target.
Create or Update NTLM Configuration for Target
Create or replace the NTLM configuration for a target.
Update NTLM Configuration for Target
Partially update NTLM configuration fields or toggle enabled state.
Delete NTLM Configuration for Target
Remove the NTLM configuration for a target. Previously
Clear 2FA Configuration
Send OTP
Reset OTP URL
Retrieve Postman Authentication Settings
Manage Postman Authentication settings for a target.
Update Postman Authentication Settings
Manage Postman Authentication settings for a target.
Partial Update Postman Authentication Settings
Manage Postman Authentication settings for a target.
Delete Postman Authentication Settings
Manage Postman Authentication settings for a target.
Clear Login Sequence Configuration
Retrieve Message Signature Configuration Status
Get the current message signature configuration status for the target.
Configure or Replace Message Signature
Creates a new signature configuration or completely replaces an existing one
Update Message Signature Configuration
Enable or disable message signature for the target.
Delete Message Signature Configuration
Delete message signature configuration.
Upload API Schema File
Retrieve Agentic Login Sequence Status
Returns the current agentic login sequence status.
Start Agentic Login Sequence
Initiates an agentic login sequence for the target.
Cancel Agentic Login Sequence
Cancels a running agentic login sequence.
List Logout Detectors
Create Logout Detector
Retrieve Logout Detector
Update Logout Detector
Partial Update Logout Detector
Delete Logout Detector
Bulk Delete Targets
Disable multiple Targets in one operation.
Bulk Update Targets
Update multiple Targets in one operation.
Export Targets
Import Targets
The upload functionality allows the automatic creation of new targets from multiple file formats (`.yaml`, `.csv`, `.json`).