---
title: "Add Config"
method: POST
path: "/v1/scans/config"
tags: ["configurations"]
---

# Add Config

`POST /v1/scans/config`

Add a new scan configuration

## Headers

- `X-Team-Id` string

## Request body

- object
  - `config` string, required
  - `config_type` 'scan' | 'reporting' | 'template' | 'alerting' | 'cloudlist' | 'subfinder'
  - `name` string, required
  - `global` boolean
  - `oauth_config_id` string — ID of existing OAuth config to update with the complete configuration

## Response `200`

Example response

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

## Other responses

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

## Changes

- **2025-11-18** `41ee26b930f3` — 1 info
  - added the new optional request property `oauth_config_id`
- **2025-08-13** `c41cd7ae7718` — 1 info
  - added the new `subfinder` enum value to the request property `config_type`
- **2024-09-22** `407b73d9ce28` — 1 info
  - added the new optional `header` request parameter `X-Team-Id`
- **2024-04-19** `ba8a20839440` — 27 info
  - the endpoint scheme security `X-API-Key` was added to the API
  - api tag `configurations` added
  - added the optional property `code` to the response with the `400` status
  - added the optional property `code` to the response with the `401` status
  - …23 more
- **2024-01-31** `4f557b176ebd` — 1 info
  - endpoint added

[Full history](https://skmtc.dev/projectdiscovery/apis/pdcp-api/changes/v1/scans/config/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/220f0adf9efd/schema)
