---
title: "Add a domain to the blacklist."
method: POST
path: "/v1/blacklist-domains"
tags: ["blacklist-domains"]
deprecated: true
---

# Add a domain to the blacklist.

`POST /v1/blacklist-domains`

## Request

- Base URL: `https://developer.saleshandy.com` (the document declares no server; this is the origin it was published from)
- URL: `https://developer.saleshandy.com/v1/blacklist-domains`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/saleshandy/apis/develop-with-saleshandy/docs/v1/blacklist-domains/post.ts> (a function with typed inputs; its response is checked against the schema)

> **Deprecated.**

## Request body

- AddBlacklistDomainDto
  - `domains` string, required: List of domain names to be blacklisted seperated by ',' (not prefixed by http:// or https://). <br>Maximum domain limit is 50 & Minumum domain limit is 1.

## Response `201`

Domain added to blacklist<br><br>

- unknown

## Other responses

- `400`: 40001: Enter the valid domain name in the format domain.com that does not already exist in the blacklist<br><br>40002: Domain already exist<br><br>40003: The maximum domain limit has been exceeded. You can blacklist up to 50 domains at a time<br><br>40004: Could not add domains to blacklist<br><br>
- `500`: 5001: Internal server error, please try again later<br><br>

---

[API](https://skmtc.dev/saleshandy/apis/develop-with-saleshandy.md) - [All operations](https://skmtc.dev/saleshandy/apis/develop-with-saleshandy/llms.txt) - [OpenAPI document](https://skmtc.dev/saleshandy/apis/develop-with-saleshandy/revisions/e7a29c931aa7?raw)
