> For the complete documentation index, see [llms.txt](https://docs.snyk.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.snyk.io/scan-fix-and-prevent/scan-with-snyk/snyk-api-web/configure-targets/what-is-a-target.md).

# What is a target?

A target is the URL of a web application, website, or API that defines the scope of a security scan.

## Understanding targets and scope

Targets define what Snyk API & Web scans. Examples of targets include:

* `https://app1.example.com`
* `https://example.com`
* `https://api.example.com`

The target URL sets the boundaries for scanning. The scanner only tests URLs that begin with the target base URL and never scans outside this scope.

For example, if the target is `https://example.com`, the scanner does not test `https://www.example.com` or any other hosts. The scan includes only URLs prefixed by `example.com`.

## Organize applications with targets

Use targets to organize security testing based on your application structure. For a large application at `https://example.com` with different sections or modules built by different teams, create separate targets such as:

* `https://example.com/sectionA`
* `https://example.com/sectionB`

This approach helps manage workflows and assign security testing responsibilities to specific teams.

## Target types

Snyk API & Web supports two types of targets:

### Web targets

Web targets provide full security scans of web applications, including single-page applications and web applications that interact with APIs. Choose this option to assess the security of user-facing web interfaces.

### API targets

API targets provide detailed security assessments of standalone APIs without a supporting web application. Choose this option to test REST APIs, GraphQL endpoints, or other API implementations.

To scan an API, Snyk API & Web needs the API specification (schema). Define the schema with a URL pointing to the schema file, upload it directly, or use schema introspection for GraphQL. When you select URL or introspection, Snyk API & Web fetches the schema before every scan, ensuring the most up-to-date version.

## Adding and configuring targets

{% hint style="info" %}
Navigation sequences, seeds list, and extra hosts apply only to Web targets.
{% endhint %}

Add targets individually or import multiple targets in bulk. After adding a target, configure settings to enhance scan coverage and accuracy:

* **Authentication**: Configure login forms, login sequences, two-factor authentication (2FA), or basic authentication to scan protected areas
* **Navigation sequences**: Guide the scanner to specific application states
* **Scan profiles**: Choose scan depth and coverage based on your needs
* **Seeds and reject lists**: Control which URLs the scanner includes or excludes
* **Extra hosts**: Include additional domains in the scan scope
* **Scanning agent**: Scan internal applications not accessible from the public internet


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.snyk.io/scan-fix-and-prevent/scan-with-snyk/snyk-api-web/configure-targets/what-is-a-target.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
