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

# Create Scan

`POST /v1/scans`

Trigger a scan

## Request body

- object
  - `targets` string[]
  - `templates` string[]
  - `assets` string[]
  - `private_templates` object[]
    - `name` string
    - `contents` string
  - `scan_id` string
  - `name` string
  - `recommended` boolean
  - `all` boolean

## Response `200`

Example response

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

## Other responses

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

## Changes

- **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/cd865d59d034/schema)
