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

# SMS channel

> The SMS channel is built on OneSignal, but no event uses it yet: what exists, what is missing and how it will work.

> [!NOTE]
>
> **Coming soon.** The SMS channel is built, but no catalog event declares it yet, so no SMS goes out today. This page
> describes how it will work.

## What it will be for

An SMS arrives as a text message on any phone, with no app or internet. It will be for urgent notifications to
people without the app, such as a verification code or a failed charge.

## Planned behaviour

**1. An event declares the SMS channel**

The technology team adds the SMS channel to the event in the code. It shows on the event's **Channels** tab with
its template and rules.

**2. Horizon builds the message**

It takes the published template in the recipient's language. The editor counts the segments: a long SMS is
charged as several.

**3. It waits for quiet hours**

Like push, SMS respects the recipient's quiet hours.

**4. OneSignal delivers it**

It leaves on the `notification-sms` lane and reports whether it was delivered or failed. An invalid number moves
to suppressions.

| Template field | Limit |
| - | - |
| Text | 1,600 characters; segments are counted (GSM-7, or UCS-2 with accents or emojis) |
| Sender | Provider sender id or number |
| Maximum segments | 1 to 4: publishing fails if any language goes above |

| State | What it will mean |
| - | - |
| **Sent** | OneSignal accepted the SMS |
| **Delivered** | It reached the phone |
| **Failed** | It could not be delivered; an invalid number moves to suppressions |

## What exists and what is missing

| Already exists | Missing |
| - | - |
| The OneSignal adapter, the template contract and the `notification-sms` lane | An event that declares the SMS channel |
| Automatic suppression of invalid numbers | The SMS rate in [**Channel rates**](https://docs.bbrands.io/enterprise/notifications/settings/rates.md) |
| The initial marketing cap (1 SMS per 7 days per account) | Verified phone numbers on the accounts that will receive it |

## Planned rules

| Rule |
| - |
| The recipient needs a phone in international format (E.164); otherwise the send is skipped with **Unreachable** |
| Quiet hours apply |
| Permanent failures (invalid number, carrier blocked) add the number to suppressions |

## FAQ and support cases

> [accordion] I want an event to go out by SMS
>
> Ask the technology team with the event, the reason and the proposed text. See
> [Keeping it current](https://docs.bbrands.io/enterprise/notifications/getting-started/keeping-it-current.md#request-a-new-event-or-channel).

## Technical detail

| Aspect | Detail |
| - | - |
| Adapter | `backend/horizon-api/lib/notification/channel/onesignal/sms.adapter.ts` |
| Contract | `sms/sms.contract.ts` (`body`, `from`, `max_segments`) |
| Lane | `notification-sms` |

## Related and history

* [Channels overview](https://docs.bbrands.io/enterprise/notifications/channels/overview.md)

| Date | Change |
| - | - |
| 2026-11-11 | First version |


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