---
title: "Remove an SMS opt-out"
method: DELETE
path: "/v1/sms/opt-outs"
tags: ["SMS"]
---

# Remove an SMS opt-out

`DELETE /v1/sms/opt-outs`

## Request

- Base URL: `https://zernio.com/api`
- URL: `https://zernio.com/api/v1/sms/opt-outs`
- Auth: HTTP bearer

Re-subscribes a recipient you opted out with `POST /v1/sms/opt-outs`.
Succeeds as a no-op when the recipient is not opted out.

An opt-out the recipient made themselves (texting STOP) cannot be
removed here: the carrier keeps blocking the number until they text
START, so this returns `409 recipient_opted_out`.

## Request body

- SmsOptOutRequest
  - `accountId` string, required: ID of the SMS number account the opt-out applies to (from `GET /v1/accounts`).
  - `phone` string, required: Recipient phone number in E.164 format, e.g. +13105559999.

## Response `200`

Recipient is subscribed

- object
  - `accountId` string
  - `phoneNumber` string
  - `optedOut` boolean: Always false.

## Other responses

- `400`: Invalid request
- `401`: Missing or invalid API key. `code` is `missing_credentials` when no Authorization header was sent and `invalid_credentials` when the key is unknown, revoked or expired.
- `404`: Resource not found
- `409`: The recipient opted out by texting STOP. Only they can re-subscribe, by texting START.

## Changes

- **2026-11-15** `68271ba8bc8b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/zernio/apis/zernio-api/changes/v1/sms/opt-outs/delete.md)

---

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