Block communication — API coverage
Reference page listing all APIs that enforce block communication for customers with a blocked status label.
Block communication is a restriction you configure against a customer status label in Capillary. When a customer is assigned a label that has block communication enabled, all outbound communications to that customer are suppressed, both transactional and promotional, regardless of channel or message type.
The APIs listed on this page pass user_id to downstream communication services. The downstream service uses this identifier to look up the customer's block status and suppress communications accordingly.
Related configurationFor instructions on setting up customer status and block communication labels, see Managing customer lifecycle with customer status.
How block communication works
- In Intouch, navigate to Organisation settings > Miscellaneous > Customer status configuration.
- Enable customer status for the org.
- Create or select a status label (for example,
Suspended). - Under the label, enable Block communications.
- When any of the APIs listed below trigger a communication for a customer, the
user_idis passed to the downstream communication service. - The downstream service checks whether block communication is active for that
user_id. - If the block is active, all communications are suppressed. No message is delivered regardless of channel or message type.
Secondary effect: communications appear in interaction history
When these APIs trigger a communication, the event is tagged to the customer in Capillary's system and appears in the customer's interaction history. Use the Get customer interactions API to retrieve them.
APIs that enforce block communication
Request APIs
These APIs submit and approve customer requests such as identifier changes and goodwill adjustments. They trigger SMS or email notifications as part of the request workflow.
| # | API path | Method | Communication triggered |
|---|---|---|---|
| 1 | /v1.1/request/add | POST | Change mobile SMS, change email, goodwill SMS/email |
| 2 | /v1.1/request/approve | POST | Same notifications as above, triggered on approval |
| 3 | /v2/customer/{customerId}/changeRequest | POST | Change mobile SMS, change email |
| 4 | /v2/changeRequest/{id} | PUT | Change identifier approval notification |
| 5 | /v2/customer/{customerId}/goodwillRequest | POST | Goodwill SMS/email |
| 6 | /v2/goodwillRequest/{id} | PUT | Goodwill approval notification |
Direct communication APIs
These APIs send messages directly to customers through specific channels.
| # | API path | Method | Communication triggered |
|---|---|---|---|
| 7 | /v1.1/communications/email | POST | Send email |
| 8 | /v1.1/communications/sms | POST | Send SMS |
| 9 | /v2/communications/email | POST | Send email |
| 10 | /v2/communications/sendMessage | POST | Send SMS (also supports WhatsApp, Zalo, and email via channel query param) |
| 11 | /v2/communications/wechat | POST | Send WeChat message |
OTP APIs
These APIs generate and validate OTPs sent to customers. The user_id is passed to the downstream service so that block communication is checked before the OTP is dispatched.
| # | API path | Method | Communication triggered |
|---|---|---|---|
| 12 | /v2/otp/generate | POST | OTP via WhatsApp (and other configured channels) |
| 13 | /v2/otp/validate | POST | OTP validation; no outbound message sent. user_id is passed for downstream status check |
Note on OTP behaviorThe
/v2/otp/generateAPI does not check a customer's subscription opt-in or opt-out status before sending OTPs. OTPs bypass subscription checks by design. However, block communication configured against a customer status label does suppress OTP delivery. If a customer's label has block communication enabled, OTPs are not sent.The
/v2/otp/validateAPI does not send an outbound message. It is included because it passesuser_idto the downstream service for status verification as part of the OTP validation flow.
Subscription API
| # | API path | Method | Communication triggered |
|---|---|---|---|
| 14 | /v2/internal/subscription/configuration | POST | Subscription notification |
Important notes
All communication types are blocked. When block communication is active for a customer's status label, all outbound messages are suppressed. This includes transactional messages, promotional messages, OTPs, goodwill notifications, and subscription notifications. There is no exception by message type.
Block communication vs. subscription opt-out. Block communication operates independently of a customer's subscription preferences. A customer can be opted in to all channels and still have all communications suppressed if their status label has block communication enabled.
Related
Updated about 9 hours ago
