---
title: "Record a lead's SMS or voice opt-in or opt-out as a platform administrator."
method: POST
path: "/suppressions/admin/leads/{leadId}/{channel}/{optedIn}"
tags: ["Suppressions"]
---

# Record a lead's SMS or voice opt-in or opt-out as a platform administrator.

`POST /suppressions/admin/leads/{leadId}/{channel}/{optedIn}`

## Request

- Base URL: `https://api.leadping.ai`
- URL: `https://api.leadping.ai/suppressions/admin/leads/{leadId}/{channel}/{optedIn}`
- Auth: HTTP bearer

Records the opt-in or opt-out for the specified lead and channel.

## Path parameters

- `leadId` string, required
- `channel` string, required
- `optedIn` boolean, required

## Response `200`

The suppression status after recording the consent decision.

- SuppressionCheckResult: Reports whether Leadping may contact a recipient and identifies the active suppression when contact is blocked.
  - `allowed` boolean: Whether outreach to the recipient is allowed for the requested channel.
  - `organizationId` string, nullable: Identifier of the organization whose suppression list was checked.
  - `recipientIdentifier` string, nullable: Provider or customer identifier used to match the recipient.
  - `normalizedPhoneNumber` string, nullable: Phone number used for matching, normalized to a consistent format.
  - `normalizedEmail` string, email, nullable: Email address used for matching, normalized for comparison.
  - `channel` string, nullable: Communication channel evaluated by the suppression check.
  - `suppressionEntryId` string, nullable: Identifier of the active suppression that blocked contact, when one matched.
  - `source` string, nullable: The source value on the active suppression entry that blocked this check.
  - `suppressedAt` string, date-time, nullable: The date and time the blocking suppression became active.
  - `customerReason` string, nullable: Customer-safe explanation of why contact is blocked or allowed.

## Other responses

- `400`: The channel must be SMS or voice.
- `401`: Authentication credentials are missing or invalid.
- `403`: The caller lacks permission for this operation.
- `429`: The API rate limit for this account or client has been exceeded.

## Changes

- **2026-12-01** `bf1852acaf45`: 2 breaking, 1 info
  - removed the media type `text/json` for the response with the status `200`
  - removed the media type `text/plain` for the response with the status `200`
  - added the non-success response with the status `400`
- **2026-11-25** `0240fb1b0a48`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/leadping/apis/leadping-api/changes/suppressions/admin/leads/:leadId/:channel/:optedIn/post.md)

---

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