---
title: "Create Do Not Call"
method: POST
path: "/campaigns/do-not-call"
tags: ["campaigns"]
---

# Create Do Not Call

`POST /campaigns/do-not-call`

## Request

- Base URL: `https://dev.whispa.net` (the document declares no server; this is the origin it was published from)
- URL: `https://dev.whispa.net/campaigns/do-not-call`
- Auth: one of:
  - OAuth 2
    - Password
    - Token URL: `auth/bearer/login`
  - API key in cookie `access_token`

Add a do-not-call entry: a number and/or an account (admin only).

## Request body

- DoNotCallCreate
  - `phone_number` string, nullable
  - `provider` string, nullable
  - `external_id` string, nullable
  - `reason` string, nullable

## Response `201`

Successful Response

- DoNotCallRead
  - `id` string, uuid, required
  - `phone_number` string, nullable
  - `provider` string, nullable
  - `external_id` string, nullable
  - `reason` string, nullable
  - `source` string, required
  - `created_by` string, uuid, nullable
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/whispa/apis/whispa-api.md) - [All operations](https://skmtc.dev/whispa/apis/whispa-api/llms.txt) - [OpenAPI document](https://skmtc.dev/whispa/apis/whispa-api/revisions/12c2e4aca43c?raw)
