Skip to main content
The Opt-Outs API keeps Connectly’s suppression list in step with the consent records in your own system. Send the contacts you must not message and Connectly stops delivering to them; send the ones who opted back in and Connectly resumes. Both routes are symmetric and safe to repeat, so the same daily export can be sent every night without special handling for what changed since yesterday.

How it works

1

Export your consent changes

Produce the list of contacts to suppress and the list to re-enable. Repeats inside one list are fine β€” the same contact listed twice counts once.
2

Suppress

Call Add opt-outs with up to 10,000 contacts. Campaigns and messages skip them from that point on.
3

Re-enable

Call Remove opt-outs for contacts who consented again. This reverses only the suppressions this API recorded.
4

Reconcile

Each response reports what changed, what was already in that state, and which entries could not be read. Unreadable entries are dropped and counted rather than failing the whole batch.
Remove only reverses what this API suppressed. A contact who replied STOP, tapped an unsubscribe button, turned marketing off in WhatsApp itself, or was uploaded through the Audience screen in Connectly stays suppressed. Those contacts come back under notOptedOutCount, and messages to them are still blocked.This is deliberate. Your re-enable list is your record of who consented with you β€” it is not evidence that someone who opted out on the channel itself changed their mind.

Identifying a contact

Every entry names one contact through either field: client takes precedence when both are set. userId is read only when client is empty. These are the same identifier rules as Send Campaigns, so a system that already targets contacts for campaigns can suppress them without a second identifier mapping.
Opt-outs are recorded per channel. Both routes act on WhatsApp.

Endpoints

Add opt-outs

POST /v1/businesses/{businessId}/add/opt_outs β€” suppress up to 10,000 contacts.

Remove opt-outs

POST /v1/businesses/{businessId}/remove/opt_outs β€” re-enable contacts this API suppressed.