zone

POST {{webhook-url}}

Webhook Body Parameters

ParameterTypeDescription
topicstringtopic subscribed to
eventslistlist of events
idstringuuid of SDK-client
namestringname of the client, may be empty
site_idstringsite id
map_idstringmap id
zone_idstringzone id
triggerstringenter / exit
timestampinttimestamp of the event, epoch
macstringmac address of wifi client or asset
asset_idstringuuid of named asset

Request Body

{"topic"=>"zone", "events"=>[{"site_id"=>"4ac1dcf4-9d8b-7211-65c4-057819f0862b", "map_id"=>"845a23bf-bed9-e43c-4c86-6fa474be7ae5", "zone_id"=>"8ac84899-32db-6327-334c-9b6d58544cfe", "trigger"=>"enter", "timestamp"=>1461220784, "type"=>"sdk", "id"=>"de87bf9d-183f-e383-cc68-6ba43947d403", "name"=>"optional"}, {"site_id"=>"4ac1dcf4-9d8b-7211-65c4-057819f0862b", "map_id"=>"845a23bf-bed9-e43c-4c86-6fa474be7ae5", "zone_id"=>"8ac84899-32db-6327-334c-9b6d58544cfe", "trigger"=>"enter", "timestamp"=>1461220784, "type"=>"wifi", "mac"=>"5684dae9ac8b"}, {"site_id"=>"4ac1dcf4-9d8b-7211-65c4-057819f0862b", "map_id"=>"845a23bf-bed9-e43c-4c86-6fa474be7ae5", "zone_id"=>"8ac84899-32db-6327-334c-9b6d58544cfe", "trigger"=>"enter", "timestamp"=>1461220784, "type"=>"asset", "mac"=>"7fc2936fd243", "asset_id"=>"c180b858-8f39-11e7-a7a5-346895ed1b7d"}]}

HEADERS

KeyDatatypeRequiredDescription
X-Mist-Signaturenullwhen the webhook is configured with a secret: HMAC_SHA1(secret, body)
X-Mist-Signature-v2nullwhen the webhook is configured with a secret: HMAC_SHA256(secret, body)