---
title: "POST /public/v1/warmlist/{workspaceId}/prospects/dnc"
method: POST
path: "/public/v1/warmlist/{workspaceId}/prospects/dnc"
tags: ["Warm List"]
---

# POST /public/v1/warmlist/{workspaceId}/prospects/dnc

`POST /public/v1/warmlist/{workspaceId}/prospects/dnc`

## Request

- Base URL: `https://api.joinvalley.co`
- URL: `https://api.joinvalley.co/public/v1/warmlist/{workspaceId}/prospects/dnc`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/joinvalley/apis/valley-public-api/docs/public/v1/warmlist/:workspaceId/prospects/dnc/post.ts> (a function with typed inputs; its response is checked against the schema)

Add warmlist prospects to the Do Not Contact list by ID or filter.

## Path parameters

- `workspaceId` string, required

## Request body

- object
  - `prospectIds` string[]: Specific prospect IDs.
  - `selectAll` boolean: Target all prospects matching the filters below.
  - `engagementType` string: Required when selectAll is true.
  - `monitoredProfileId` string: Only for POST_ENGAGEMENTS.
  - `postId` string: Only for POST_ENGAGEMENTS.
  - `postEngagementType` string: COMMENT or REACTION.
  - `icpFit` string[]
  - `profilePrivacy` string: "open" or "closed".

## Response `200`

Default Response

- object
  - `statusCode` number
  - `status` boolean
  - `message` string
  - `data` object
    - `queued` number

## Other responses

- `400`: Default Response
- `401`: Default Response
- `403`: Default Response
- `429`: Default Response
- `500`: Default Response

---

[API](https://skmtc.dev/joinvalley/apis/valley-public-api.md) - [All operations](https://skmtc.dev/joinvalley/apis/valley-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/joinvalley/apis/valley-public-api/revisions/798c2eb1b512?raw)
