---
title: "Block email domains"
method: POST
path: "/blocklist/domains"
---

# Block email domains

`POST /blocklist/domains`

Block one or more email domains. Pass a comma-separated string for multiple domains (e.g. "spam.com, junk.org"). Messages from contacts with emails on these domains will be ignored.

## Request body

- BlockDomainsInputDto
  - `domains` string, required — Domain(s) to block — comma-separated for multiple (e.g. "spam.com, junk.org")
  - `reason` string — Why these domains are being blocked

## Response `200`

Default Response

- BlockDomainsOutput
  - `blocked` object[], required — Domains that were successfully blocked
    - `id` string, required — Block record ID
    - `domain` string, required — The blocked domain
    - `reason` string, nullable, required — Why the domain was blocked
    - `created_at` string, date-time, required
  - `skipped` string[], required — Domains that were already blocked
  - `summary` object, required
    - `total` number, required
    - `blocked` number, required
    - `skipped` number, required

## Other responses

- `500` — Internal Server Error

---

[API](https://skmtc.net/open/apis/opencx-api.md) · [All operations](https://skmtc.net/open/apis/opencx-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/open/opencx-api/versions/57b06b52302d/schema)
