Skip to main content

Block-List Events

Webhook 

Online sends a block-list event to your webhook when a contact is blocked or unblocked.

SubscriptionSent when
block_list.contact_blockedA contact was blocked.
block_list.contact_unblockedA contact was unblocked.

Block-list events are account-wide: they are sent for every inbox, whatever the webhook's inbox_ids.

Settings:

SettingValue
URLYour webhook URL — create the webhook with Add Webhook and choose its events in subscriptions
MethodJSON via POST

Example — block_list.contact_blocked:

{
"event": "block_list.contact_blocked",
"account_id": 12,
"timestamp": 1794471000,
"contact": {
"id": 801,
"phone_number": "+972501234567",
"normalized_phone": "972501234567"
},
"source": "api",
"allow_unverified_ssl": false
}

Payload explained​

ParameterDescription / Example
eventWhat happened. See the values below.
account_idThe account ID.
timestampWhen it happened (Unix time, seconds).
contactThe contact.
sourceHow the contact was blocked or unblocked. See the values below.
allow_unverified_sslAdded by Online to every payload.

event​

ValueExplanation
block_list.contact_blockedA contact was blocked.
block_list.contact_unblockedA contact was unblocked.

source​

ValueExplanation
apiWith an access token, through the API.
manualNot through the API — for example by an agent in the dashboard.

Webhook payload

​

Your response​

Answer with any 2xx status within 5 seconds. Online ignores the body of your answer, and does not send the event again.