---
title: "Toggle Do Not Contact"
method: POST
path: "/crm/contacts/{contact_id}/dnc"
tags: ["authenticated", "crm"]
---

# Toggle Do Not Contact

`POST /crm/contacts/{contact_id}/dnc`

## Request

- Base URL: `https://api-docs.upsmith.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.upsmith.com/crm/contacts/{contact_id}/dnc`
- Auth: one of:
  - API key in header `x-api-key`
  - HTTP bearer

## Path parameters

- `contact_id` string, required

## Headers

- `organization-id` string, nullable
- `x-user-id` string, nullable
- `timezone` string
- `x-actor-email` string, nullable
- `x-request-source` string, nullable
- `x-operation-id` string, nullable
- `x-commit-message` string, nullable
- `x-confirmation-id` string, nullable
- `x-chat-id` string, nullable

## Request body

- ToggleDoNotContactRequest
  - `do_not_contact` boolean, required
  - `revoked_reason` string, nullable
  - `scopes` StopScope[], nullable
  - `origins` StopRequestOrigin[], nullable

## Response `200`

Successful Response

- ContactPublic
  - `id` string, required
  - `first_name` string, required
  - `last_name` string, nullable
  - `last_contacted` string, date-time, nullable
  - `href` string, nullable
  - `do_not_contact` boolean, required
  - `stop_reason` 'lead_declined' | 'lead_already_resolved' | 'customer_opt_out' | 'canceled_appointment_already_resolved' | 'office_toggle' | 'carrier_opt_out' | 'contact_deceased' | 'customer_moved' | 'not_a_fit' | 'wrong_number' | 'service_titan_customer_note' | 'service_titan_location_note' | 'service_titan_job_note' | 'service_titan_contact_memo' | 'service_titan_job_reminders_off' | 'service_titan_marketing_updates_off' | 'unknown': Why outreach stopped. One vocabulary across every scope. The per-table reason enums this replaced diverged mostly because they lived in different tables — a campaign opt-out and a customer-scope opt-out are one reason at two scopes, so ``scope`` carries what their values encoded. UNKNOWN covers rows predating the audit columns. It is unclassified, not reversible: a bulk lift must not clear a mark it cannot explain.
  - `stop_origin` 'customer' | 'office' | 'carrier' | 'service_titan' | 'upsmith': Where the stop came from, independent of why. ``service_titan`` means we read it out of the shop's own records rather than anyone asking us — the row still stands on its own once written.
  - `stopped_at` string, date-time, nullable
  - `stopped_by_name` string, nullable
  - `stop_revocable` boolean

## Other responses

- `422`: Validation Error

---

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