Default behavior
Without custom configuration, Telnyx handles standard opt-in/out keywords automatically:- Opt-out keywords
- Opt-in keywords
These keywords create a block rule preventing further messages to the recipient:
| Keyword | Action |
|---|---|
STOP | Block messages |
STOPALL | Block messages |
STOP ALL | Block messages |
UNSUBSCRIBE | Block messages |
CANCEL | Block messages |
END | Block messages |
QUIT | Block messages |
Block rules operate at the messaging profile level. If a user opts out from one number on your profile, they’re opted out from all numbers on that profile.
Create custom auto-responses
Configure custom keyword responses for opt-in, opt-out, and help messages:Operation types
Operation (op) | Purpose | Default keywords |
|---|---|---|
start | Opt-in — removes block rule | START, UNSTOP |
stop | Opt-out — creates block rule | STOP, STOPALL, UNSUBSCRIBE, CANCEL, END, QUIT |
help | Help — sends info response | HELP |
| Custom | Any custom keyword response | (none) |
Country-specific auto-responses
Configure different responses per country using ISO 3166-1 alpha-2 codes. This enables localized language support:The feature is language agnostic — you can use keywords and responses in any language. The
country_code field determines which auto-response applies based on the sender’s number origin.Track opt-out behavior via webhooks
When a user sends an opt-in, opt-out, or help keyword, the inbound message webhook includes anautoresponse_type field:
Handle opt-out webhooks
The
autoresponse_type field is also available in your SMS Logs via Detail Record Search reporting.Limitations
Reserved keywords
Reserved keywords
START, STOP, and HELP are reserved keywords for their respective operations and cannot be reassigned to different operations. You can add additional keywords to each operation, but the defaults always remain active.
Auto-response minimum length
Auto-response minimum length
Default operations (start, stop, help) require a minimum 20 characters for the auto-response message. This ensures compliance with carrier requirements.
Maximum keywords per configuration
Maximum keywords per configuration
Each auto-response configuration supports a maximum of 20 trigger keywords.
Toll-free limitations
Toll-free limitations
Toll-free numbers have a separate carrier-level opt-out system that Telnyx cannot customize or remove. When a user texts STOP to a toll-free number:
- The carrier sends its own auto-reply:
NETWORK MSG: You replied with the word “stop” which blocks all texts sent from this number. Text back “unstop” to receive messages again.
- Your custom STOP response is also sent (if configured)
- The carrier block is applied independently of Telnyx’s block rule
NETWORK MSG: You have replied “unstop” and will begin receiving messages again from this number.
Block rule scope
Block rule scope
Block rules apply at the messaging profile level, not the individual number level. If a user opts out from any number on your profile, they’re blocked from all numbers on that profile.To manage separate opt-out lists for different programs, use separate messaging profiles.