> ## Documentation Index
> Fetch the complete documentation index at: https://www.vobiz.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Vobiz Messaging Opt-outs

> How Vobiz handles STOP, START and HELP replies, automatic keyword replies, how to add, list, check, and remove them by API, and how broadcasts honour the list.

An opt-out is a number that must not receive messages from your account on a channel. Vobiz builds the list for you from keyword replies and lets you add to it, query it and remove from it by API. Every send - single messages and broadcasts alike - is checked against the list before anything leaves the platform. The console shows the same list under **SMS & RCS → Opt-outs**.

> [!NOTE]
>
> Honouring opt-outs is a legal requirement in most markets (for example TCPA and CTIA guidelines in the US, and TRAI rules in India) and a condition of US 10DLC and toll-free registration. Keep the list intact, and make sure your own records of consent match it.

## Keywords are handled automatically

When a contact replies to one of your numbers or RCS senders, Vobiz trims the message, ignores case and leading or trailing punctuation, and compares the **whole** message with the standard keywords. `STOP`, `stop.` and `"Stop!"` match; `please stop` and `stop it` do not. For an RCS button tap, the button's postback data is checked too.

| Keyword reply | What Vobiz does |
| - | - |
| `STOP`, `STOPALL`, `UNSUBSCRIBE`, `CANCEL`, `END`, `QUIT`, `OPTOUT` | Records an opt-out for that number and channel with `reason: "stop"` and `source: "inbound"`, and sends a STOP confirmation. A number that was already opted out gets no second confirmation. |
| `START`, `UNSTOP`, `SUBSCRIBE` | Removes the opt-out for that number and channel, so your sends reach it again, and sends a START confirmation. |
| `YES` | Same as `START`, but only when the number is currently opted out. Otherwise it is treated as an ordinary reply. |
| `HELP`, `INFO` | Sends the HELP reply. No opt-out entry is created or changed. |

Opt-outs from an SMS or MMS reply apply to the `sms` channel; opt-outs from an RCS reply apply to the `rcs` channel. The reply itself is also stored in the contact's [conversation](https://www.vobiz.ai/docs/sms/conversations.md), where you can see it in context.

Add a manual opt-out for any request that arrives in free text.

### Automatic replies

Vobiz answers STOP, START and HELP from the number or RCS sender the contact wrote to, on the same channel. Unless you customise them, the replies read like this, where `{brand}` is the RCS sender's display name (a number has no brand until you set one) and `{support}` is a support contact from the sender's profile or your settings:

| Keyword | Default reply |
| - | - |
| STOP | `You've been unsubscribed from {brand} messages and won't receive any more. Reply START to subscribe again or HELP for help. – {brand}` |
| START | `You're subscribed to {brand} messages again. Reply STOP to unsubscribe, HELP for help.` |
| HELP | `{brand} support: {support}. Reply STOP to unsubscribe.` |

Without a brand name or support contact, a shorter version without them is used. Automatic replies are billed like other messages, are limited to one per contact and keyword per minute and five per contact per hour, and are never sent to short codes or alphanumeric senders.

### Customise the replies

Set your own reply texts, brand name and support contact per RCS sender or per number:

| Method | Path | What it does |
| - | - | - |
| `GET` | `/Sender/{id}/KeywordReply/` | Read the replies for an RCS sender. |
| `PUT` | `/Sender/{id}/KeywordReply/` | Set the replies for an RCS sender. |
| `GET` | `/Number/{e164}/KeywordReply/` | Read the replies for a number. URL-encode the `+` as `%2B`. |
| `PUT` | `/Number/{e164}/KeywordReply/` | Set the replies for a number. |

Paths are relative to `https://api.vobiz.ai/api/v1/Account/{auth_id}/Sms`. The `PUT` body takes `stop`, `start`, `help` (each up to 1000 characters), `brandName`, `supportEmail`, `supportPhone` and `supportUrl` (`https://...`). Send `null` for a field to go back to the default; an empty string is rejected. Unknown fields return `400`.

```bash cURL theme={null}
curl -X PUT "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/Sms/Number/%2B14155550100/KeywordReply/" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"brandName": "Acme", "supportEmail": "support@example.com", "help": "Acme support: support@example.com. Reply STOP to unsubscribe."}'
```

The response shows the effective configuration, including the `keywords` each reply answers.

## Add an opt-out manually

[Create an opt-out](https://www.vobiz.ai/docs/sms/api/opt-outs/create-opt-out.md) records a request that reached you another way - a support call, an email, an unsubscribe link:

```bash cURL theme={null}
curl -X POST "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/Sms/OptOut/" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "phoneNumber": "+14155550123", "channel": "sms", "reason": "support-request" }'
```

```python Python theme={null}
import requests

resp = requests.post(
    "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/Sms/OptOut/",
    headers={
        "X-Auth-ID": "MA_XXXXXXXX",
        "X-Auth-Token": "YOUR_AUTH_TOKEN",
        "Content-Type": "application/json",
    },
    json={"phoneNumber": "+14155550123", "channel": "sms", "reason": "support-request"},
)
resp.raise_for_status()
print(resp.status_code, resp.json())
```

```javascript Node theme={null}
const resp = await fetch("https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/Sms/OptOut/", {
  method: "POST",
  headers: {
    "X-Auth-ID": "MA_XXXXXXXX",
    "X-Auth-Token": "YOUR_AUTH_TOKEN",
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ phoneNumber: "+14155550123", channel: "sms", reason: "support-request" }),
});
console.log(resp.status, await resp.json());
```

| Field | Required | Notes |
| - | - | - |
| `phoneNumber` | yes | E.164 with a leading `+`. Missing it returns `400 {"error":"phoneNumber is required"}`. |
| `channel` | no | `sms` (default), `mms` or `rcs`. |
| `reason` | no | Free text for your records. Default `manual`. |

```json Response - 201 Created theme={null}
{ "status": "ok" }
```

The entry is keyed on number and channel. Adding the same number again updates its `reason` rather than creating a duplicate. Manual entries have `source: "manual"`.

## List opt-outs

[List opt-outs](https://www.vobiz.ai/docs/sms/api/opt-outs/list-opt-outs.md) returns a JSON array of entries. **Both `limit` and `offset` are required**; page through the list by increasing `offset`.

```bash cURL theme={null}
curl "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/Sms/OptOut/?limit=100&offset=0" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN"
```

```json Response - 200 OK theme={null}
[
  {
    "id": "9b2e1c40-8a3d-4f5e-9c1a-7d6b2e8f4a01",
    "accountId": "MA_XXXXXXXX",
    "phoneNumber": "+14155550123",
    "channel": "sms",
    "reason": "stop",
    "source": "inbound",
    "syncedToProvider": true,
    "createdAt": "2026-10-18T07:23:03.658669Z"
  },
  {
    "id": "3c1d7e52-6f4b-4a8e-b2d9-0e5f1a7c9b34",
    "accountId": "MA_XXXXXXXX",
    "phoneNumber": "+14155550124",
    "channel": "sms",
    "reason": "support-request",
    "source": "manual",
    "syncedToProvider": true,
    "createdAt": "2026-10-17T15:02:11.104233Z"
  }
]
```

| Field | Meaning |
| - | - |
| `phoneNumber` | The opted-out number. |
| `channel` | The channel the entry applies to. |
| `reason` | `stop` for keyword entries; `manual` or your own text for API entries. |
| `source` | `inbound` (keyword reply) or `manual` (API or console). |
| `syncedToProvider` | Whether the entry has also been propagated to the upstream network's suppression list. |
| `createdAt` | When the entry was recorded or last updated. |

## Check one number

[Check an opt-out](https://www.vobiz.ai/docs/sms/api/opt-outs/check-opt-out.md) answers a yes/no question for one number and channel. URL-encode the `+` as `%2B`. `channel` defaults to `sms`.

```bash cURL theme={null}
curl "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/Sms/OptOut/%2B14155550123/?channel=sms" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN"
```

```json Response - 200 OK theme={null}
{ "optedOut": true }
```

Call it before you add a number to a marketing list, or to explain to an agent why a send returned `422`.

## Remove an opt-out

[Remove an opt-out](https://www.vobiz.ai/docs/sms/api/opt-outs/delete-opt-out.md) deletes the entry for a number and channel. `channel` defaults to `sms`.

```bash cURL theme={null}
curl -X DELETE "https://api.vobiz.ai/api/v1/Account/MA_XXXXXXXX/Sms/OptOut/%2B14155550123/?channel=sms" \
  -H "X-Auth-ID: MA_XXXXXXXX" \
  -H "X-Auth-Token: YOUR_AUTH_TOKEN"
```

```json Response - 200 OK theme={null}
{ "status": "ok" }
```

The call returns `200` whether or not an entry existed.

> [!WARNING]
>
> A `START` reply removes the opt-out automatically. Remove an opt-out yourself only when the contact has given you fresh, documented consent - a signed form, a renewed subscription. Deleting an entry because a campaign needs more reach exposes you to complaints, carrier filtering and regulatory penalties, and can put your 10DLC or toll-free registration at risk.

## What happens when you send to an opted-out number

Every recipient of [Send a message](https://www.vobiz.ai/docs/sms/api/messages/send-message.md) is checked against the list for the message's channel before routing:

* A send where the only (or first) recipient is opted out creates no message and returns `422 {"error":"recipient has opted out: +14155550123"}`.
* In a multi-recipient send, the opted-out recipient is skipped and the others are sent; the call returns `202 Accepted` with the first created message. See [several recipients in one call](https://www.vobiz.ai/docs/sms/channels/sms.md#several-recipients-in-one-call).
* An `sms` opt-out also blocks `mms` to that number, so a STOP reply to a text message suppresses picture messages too.
* The check runs before the idempotency lookup, so replaying an earlier `idempotencyKey` to a number that has since opted out also returns `422`.

### Broadcasts

When you [upload recipients](https://www.vobiz.ai/docs/sms/api/broadcasts/upload-recipients.md) to a broadcast, numbers with an `sms` opt-out are stored with status `opted_out` and counted in the upload result's `optedOut` field. They are never sent, and they appear in the broadcast's `stats.optedOut` and in the [export](https://www.vobiz.ai/docs/sms/api/broadcasts/export-broadcast.md). See [Broadcasts](https://www.vobiz.ai/docs/sms/broadcasts.md).

## Recommended practice

* Include opt-out instructions (`Reply STOP to opt out`) in the first message of any marketing thread and in every broadcast template. US 10DLC and toll-free registration both expect this.
* Make the automatic `HELP` reply carry your brand name and a support contact: set `brandName` and a support field with the [keyword reply endpoints](#customise-the-replies).
* Mirror the list into your CRM by polling [List opt-outs](https://www.vobiz.ai/docs/sms/api/opt-outs/list-opt-outs.md) or by watching the `message.received` [webhook](https://www.vobiz.ai/docs/sms/webhooks.md) event for keyword replies.
* Record the consent that justifies every [removal](https://www.vobiz.ai/docs/sms/api/opt-outs/delete-opt-out.md).

## Before you go live

> [card] [Messaging numbers](https://www.vobiz.ai/docs/sms/numbers.md)
>
> The numbers your opt-outs apply to.

> [card] [India DLT](https://www.vobiz.ai/docs/sms/compliance/india-dlt.md)
>
> Consent and DLT rules for Indian recipients.

## Related

> [card] [Broadcasts](https://www.vobiz.ai/docs/sms/broadcasts.md)
>
> Opted-out numbers are excluded from every broadcast.

> [card] [Conversations](https://www.vobiz.ai/docs/sms/conversations.md)
>
> See keyword replies in the contact's thread.

> [card] [Compliance overview](https://www.vobiz.ai/docs/sms/compliance/overview.md)
>
> Registration requirements that depend on opt-out handling.

> [card] [Errors](https://www.vobiz.ai/docs/sms/errors.md)
>
> The `422` opt-out response and other status codes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.