---
title: "Create Scan"
method: POST
path: "/v1/scans"
tags: ["scans"]
---

# Create Scan

`POST /v1/scans`

Trigger a scan

## Request body

- object
  - `targets` string[]
  - `templates` string[]
  - `assets` string[]
  - `private_templates` PrivateTemplates[]
    - `name` string, required
    - `contents` string, required
  - `name` string
  - `recommended` boolean
  - `all` boolean
  - `alerting_config_ids` string[]
  - `scan_config_ids` string[]
  - `reporting_config_ids` string[]
  - `early_templates` string[]
  - `enumeration_ids` EnumerationIds[]
    - `id` string, required
    - `type` string[], required

## Response `200`

Example response

- object
  - `id` string
  - `message` string, required

## Other responses

- `400` — Example response
- `401` — Example response
- `500` — Example response

## Changes

- **2024-01-31** `4f557b176ebd` — 2 breaking, 1 warning, 6 info
  - the request property `private_templates/items/contents` became required
  - the request property `private_templates/items/name` became required
  - removed the request property `scan_id`
  - added the new optional request property `alerting_config_ids`
  - …5 more
- **2023-12-06** `35be9c1301b7` — 1 info
  - api tag `scans` added
- **2023-12-05** `5c3748c387f7` — 33 warning, 13 info
  - deleted the `header` request parameter `X-Team-Id`
  - removed the request property `agent_behavior`
  - removed the request property `agent_id`
  - removed the request property `agent_networks`
  - …42 more

[Change history](https://skmtc.dev/projectdiscovery/apis/pdcp-api/changes/v1/scans/post.md)

---

[API](https://skmtc.dev/projectdiscovery/apis/pdcp-api.md) · [All operations](https://skmtc.dev/projectdiscovery/apis/pdcp-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/projectdiscovery/pdcp-api/revisions/4f557b176ebd/schema)
