---
title: "Add SMS Blocks for Domain"
method: POST
path: "/domains/{domain}/smsblocks"
tags: ["Messages/SMS Block"]
---

# Add SMS Blocks for Domain

`POST /domains/{domain}/smsblocks`

## Request

- Base URL: `https://ns-api.com/ns-api/v2`
- URL: `https://ns-api.com/ns-api/v2/domains/{domain}/smsblocks`
- Auth: HTTP bearer

## Path parameters

- `domain` string, required: This is the main organization name. This is used to link resource to its group/tenant/organization/enterprise. Then using in path for GET you can set to "~" to use the domain name linked to your token/key instead of the domain name itself when reading for your own domain.

## Request body

- object
  - `requesting-number` string, e164, required: This is the number that is requesting the block be added against the blocked-number.
  - `blocked-number` string, e164, required: This is the number that will be blocked from sending new SMS to the requesting-number
  - `status` 'active' | 'inactive': active/inactive

## Response `202`

- SuccessResponse
  - `code` integer, required
  - `message` string, required

## Other responses

- `400`
- `401`
- `404`

## Changes

- **2026-11-03** `bce16087d479`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ns-api/apis/netsapiens-api-v2/changes/domains/:domain/smsblocks/post.md)

---

[API](https://skmtc.dev/ns-api/apis/netsapiens-api-v2.md) - [All operations](https://skmtc.dev/ns-api/apis/netsapiens-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/ns-api/apis/netsapiens-api-v2/revisions/bce16087d479?raw)
