Ticatag Platform | Documentation

Ticatag Platform | Documentation

    ›Webhooks

    Presentation

    • Introduction
    • Connect
    • Available devices

    API

    • Introduction
    • Devices
    • Sensor data

    Webhooks

    • Introduction
    • Setting up Webhooks
    • Events v1
    • Events v2

    Events v2

    A new version called v2 of webhooks was developed to be more consistent with the API.

    New location

    The event is triggered when a location is received on the plateform.

    Payload

    PathTypeDescription
    hook_eventStringEquals to "location_changed" for new location event
    device.nameStringDevice name
    device.serial_numberStringLPWAN Device #ID ; DevEUI for or Sigfox #ID ; Not set if device type is not LPWAN
    device.mac_addressStringDevice macaddress if device type is not LPWAN
    device.minorIntegerIBeacon minor if device supports IBeacon protocol; Not set if not the case
    device.majorIntegerIBeacon major if device supports IBeacon protocol; Not set if not the case
    device.proximity_uuidStringIBeacon proximity UUID if device supports IBeacon protocol; Not set if not the case
    event.nameStringEquals to "location" for location event
    event.timestampStringUTC Datetime in ISO 8601 format
    event.latitudedoubleLocation latitude
    event.longitudedoubleLocation longitude
    event.accuracylongAccuracy (in meters) might be added to location in case we get location from wifi or tdoa - Not present in the payload if null
    event.formatted_addressStringReverse geocoded address from lat/lng. Not present if no results

    Example

    {
        "hook_event": "location_changed",
        "device": {
            "name": "TiFiz",
            "serial_number": "85153223"
        },
        "event": {
            "name": "location",
            "timestamp": "2019-03-21T14:03:12.759Z",
            "latitude": 48.759,
            "longitude": -3.45983,
            "accuracy": 50,
            "formatted_address": "Moulin de Kergomar, Rue Louis de Broglie, 22300 Lannion, France"
        }
    }
    

    Button press

    The event is triggered when a button press is received on the plateform.

    Payload

    PathTypeDescription
    hook_eventStringEquals to "button_pressed" for new button press
    device.nameStringDevice name
    device.serial_numberStringLPWAN Device #ID ; DevEUI for or Sigfox #ID ; Not set if device type is not LPWAN
    device.mac_addressStringDevice macaddress if device type is not LPWAN
    device.minorIntegerIBeacon minor if device supports IBeacon protocol; Not set if not the case
    device.majorIntegerIBeacon major if device supports IBeacon protocol; Not set if not the case
    device.proximity_uuidStringIBeacon proximity UUID if device supports IBeacon protocol; Not set if not the case
    event.nameStringEquals to "button" for new location event
    event.timestampStringUTC Datetime in ISO 8601 format
    event.click_typeStringValues=["click","double_click","hold"]
    last_locationObjectNot present if no location exits on the platform
    last_location.timestampStringUTC Datetime in ISO 8601 format
    last_location.latitudedoubleLocation latitude
    last_location.longitudedoubleLocation longitude
    last_location.accuracylongAccuracy (in meters) might be added to location in case we get location from wifi or tdoa - Not present in the payload if null
    last_location.formatted_addressStringReverse geocoded address from lat/lng. Not present if no results

    Example

    {
        "hook_event": "button_pressed",
        "device": {
            "name": "TiFiz",
            "serial_number": "85153223"
        },
        "event": {
            "name": "button",
            "timestamp": "2019-03-21T14:21:05.619Z",
            "click_type": "hold"
        },
        "last_location": {
            "timestamp": "2019-03-21T14:21:05.621Z",
            "latitude": 48.759,
            "longitude": -3.45983,
            "accuracy": 50,
            "formatted_address": "Moulin de Kergomar, Rue Louis de Broglie, 22300 Lannion, France"
        }
    }
    

    Button press - Single click

    The event is triggered when a simple click is received on the plateform.

    Payload

    PathTypeDescription
    hook_eventStringEquals to "button_pressed_click" for new button press simple click
    device.nameStringDevice name
    device.serial_numberStringLPWAN Device #ID ; DevEUI for or Sigfox #ID ; Not set if device type is not LPWAN
    device.mac_addressStringDevice macaddress if device type is not LPWAN
    device.minorIntegerIBeacon minor if device supports IBeacon protocol; Not set if not the case
    device.majorIntegerIBeacon major if device supports IBeacon protocol; Not set if not the case
    device.proximity_uuidStringIBeacon proximity UUID if device supports IBeacon protocol; Not set if not the case
    event.nameStringEquals to "button" for new button simple click event
    event.timestampStringUTC Datetime in ISO 8601 format
    event.click_typeStringValue="click"
    last_locationObjectNot present if no location exits on the platform
    last_location.latitudedoubleLocation latitude
    last_location.longitudedoubleLocation longitude
    last_location.accuracylongAccuracy (in meters) might be added to location in case we get location from wifi or tdoa - Not present in the payload if null
    last_location.formatted_addressStringReverse geocoded address from lat/lng. Not present if no results

    Example

    {
        "hook_event": "button_pressed_click",
        "device": {
            "name": "TiFiz",
            "serial_number": "85153223"
        },
        "event": {
            "name": "button",
            "timestamp": "2019-03-21T14:28:17.823Z",
            "click_type": "click"
        },
        "last_location": {
            "timestamp": "2019-03-21T14:28:17.825Z",
            "latitude": 48.759,
            "longitude": -3.45983,
            "accuracy": 50,
            "formatted_address": "Moulin de Kergomar, Rue Louis de Broglie, 22300 Lannion, France"
        }
    }
    

    Button press - Double click

    The event is triggered when a double click is received on the plateform.

    Payload

    PathTypeDescription
    hook_eventStringEquals to "button_pressed_double_click" for new button press
    device.nameStringDevice name
    device.serial_numberStringLPWAN Device #ID ; DevEUI for or Sigfox #ID ; Not set if device type is not LPWAN
    device.mac_addressStringDevice macaddress if device type is not LPWAN
    device.minorIntegerIBeacon minor if device supports IBeacon protocol; Not set if not the case
    device.majorIntegerIBeacon major if device supports IBeacon protocol; Not set if not the case
    device.proximity_uuidStringIBeacon proximity UUID if device supports IBeacon protocol; Not set if not the case
    event.nameStringEquals to "button" for new button double click event
    event.timestampStringUTC Datetime in ISO 8601 format
    event.click_typeStringValue="double_click"
    last_locationObjectNot present if no location exits on the platform
    last_location.latitudedoubleLocation latitude
    last_location.longitudedoubleLocation longitude
    last_location.accuracylongAccuracy (in meters) might be added to location in case we get location from wifi or tdoa - Not present in the payload if null
    last_location.formatted_addressStringReverse geocoded address from lat/lng. Not present if no results

    Example

    {
        "hook_event": "button_pressed_double_click",
        "device": {
            "name": "TiFiz",
            "serial_number": "85153223"
        },
        "event": {
            "name": "button",
            "timestamp": "2019-03-21T14:28:17.823Z",
            "click_type": "double_click"
        },
        "last_location": {
            "timestamp": "2019-03-21T14:28:17.825Z",
            "latitude": 48.759,
            "longitude": -3.45983,
            "accuracy": 50,
            "formatted_address": "Moulin de Kergomar, Rue Louis de Broglie, 22300 Lannion, France"
        }
    }
    

    Button press - Hold click

    The event is triggered when a hold press is received on the plateform.

    Payload

    PathTypeDescription
    hook_eventStringEquals to "button_pressed_hold" for new button press
    device.nameStringDevice name
    device.serial_numberStringLPWAN Device #ID ; DevEUI for or Sigfox #ID ; Not set if device type is not LPWAN
    device.mac_addressStringDevice macaddress if device type is not LPWAN
    device.minorIntegerIBeacon minor if device supports IBeacon protocol; Not set if not the case
    device.majorIntegerIBeacon major if device supports IBeacon protocol; Not set if not the case
    device.proximity_uuidStringIBeacon proximity UUID if device supports IBeacon protocol; Not set if not the case
    event.nameStringEquals to "button" for new button hold click event
    event.timestampStringUTC Datetime in ISO 8601 format
    event.click_typeStringValue="hold"
    last_locationObjectNot present if no location exits on the platform
    last_location.latitudedoubleLocation latitude
    last_location.longitudedoubleLocation longitude
    last_location.accuracylongAccuracy (in meters) might be added to location in case we get location from wifi or tdoa - Not present in the payload if null
    last_location.formatted_addressStringReverse geocoded address from lat/lng. Not present if no results

    Example

    {
        "hook_event": "button_pressed_hold",
        "device": {
            "name": "TiFiz",
            "serial_number": "85153223"
        },
        "event": {
            "name": "button",
            "timestamp": "2019-03-21T14:28:17.823Z",
            "click_type": "hold"
        },
        "last_location": {
            "timestamp": "2019-03-21T14:28:17.825Z",
            "latitude": 48.759,
            "longitude": -3.45983,
            "accuracy": 50,
            "formatted_address": "Moulin de Kergomar, Rue Louis de Broglie, 22300 Lannion, France"
        }
    }
    

    New temperature measure

    The event is triggered when a new temperature measure is received on the plateform.

    Payload

    PathTypeDescription
    hook_eventStringEquals to "new_temperature" for new temperature measure
    device.nameStringDevice name
    device.serial_numberStringLPWAN Device #ID ; DevEUI for or Sigfox #ID ; Not set if device type is not LPWAN
    device.mac_addressStringDevice macaddress if device type is not LPWAN
    device.minorIntegerIBeacon minor if device supports IBeacon protocol; Not set if not the case
    device.majorIntegerIBeacon major if device supports IBeacon protocol; Not set if not the case
    device.proximity_uuidStringIBeacon proximity UUID if device supports IBeacon protocol; Not set if not the case
    event.nameStringEquals to "temperature" for new temperature event
    event.timestampStringUTC Datetime in ISO 8601 format
    event.valueDoubleTemperature value
    event.unitStringTemperature unit ; Values=[celsius,fahrenheit]

    Example

    {
        "hook_event": "new_temperature",
        "device": {
            "name": "TiFiz",
            "serial_number": "85153223"
        },
        "event": {
            "name": "temperature",
            "timestamp": "2019-03-21T14:35:03.092Z",
            "value": 19.3,
            "unit": "celsius"
        }
    }
    

    New humidity measure

    The event is triggered when a new humidity measure is received on the plateform.

    Payload

    PathTypeDescription
    hook_eventStringEquals to "new_humidity" for new humidity measure
    device.nameStringDevice name
    device.serial_numberStringLPWAN Device #ID ; DevEUI for or Sigfox #ID ; Not set if device type is not LPWAN
    device.mac_addressStringDevice macaddress if device type is not LPWAN
    device.minorIntegerIBeacon minor if device supports IBeacon protocol; Not set if not the case
    device.majorIntegerIBeacon major if device supports IBeacon protocol; Not set if not the case
    device.proximity_uuidStringIBeacon proximity UUID if device supports IBeacon protocol; Not set if not the case
    event.nameStringEquals to "humidity" for new humidity event
    event.timestampStringUTC Datetime in ISO 8601 format
    event.valueDoubleHumidity value
    event.unitStringHumidity unit ; Values=[percent]

    Example

    {
        "hook_event": "new_humidty",
        "device": {
            "name": "TiFiz",
            "serial_number": "85153223"
        },
        "event": {
            "name": "humidity",
            "timestamp": "2019-03-21T14:42:16.543Z",
            "value": 75.5,
            "unit": "percent"
        }
    }
    

    New door measure

    The event is triggered when a door state is received on the plateform.

    Payload

    PathTypeDescription
    hook_eventStringEquals to "new_door" for new door status
    device.nameStringDevice name
    device.serial_numberStringLPWAN Device #ID ; DevEUI for or Sigfox #ID ; Not set if device type is not LPWAN
    device.mac_addressStringDevice macaddress if device type is not LPWAN
    device.minorIntegerIBeacon minor if device supports IBeacon protocol; Not set if not the case
    device.majorIntegerIBeacon major if device supports IBeacon protocol; Not set if not the case
    device.proximity_uuidStringIBeacon proximity UUID if device supports IBeacon protocol; Not set if not the case
    event.nameStringEquals to "door" for new door event
    event.timestampStringUTC Datetime in ISO 8601 format
    event.statusStringDoor status ; Values=[open,closed]

    Example

    {
        "hook_event": "new_door",
        "device": {
            "name": "TiFiz",
            "serial_number": "85153223"
        },
        "event": {
            "name": "door",
            "timestamp": "2019-03-21T14:44:45.382Z",
            "status": "closed"
        }
    }
    

    New shock measure

    The event is triggered when a shock state is received on the plateform.

    Payload

    PathTypeDescription
    hook_eventStringEquals to "new_shock" for new shock status
    device.nameStringDevice name
    device.serial_numberStringLPWAN Device #ID ; DevEUI for or Sigfox #ID ; Not set if device type is not LPWAN
    device.mac_addressStringDevice macaddress if device type is not LPWAN
    device.minorIntegerIBeacon minor if device supports IBeacon protocol; Not set if not the case
    device.majorIntegerIBeacon major if device supports IBeacon protocol; Not set if not the case
    device.proximity_uuidStringIBeacon proximity UUID if device supports IBeacon protocol; Not set if not the case
    event.nameStringEquals to "shock" for new shock event
    event.timestampStringUTC Datetime in ISO 8601 format
    event.statusStringShock status ; Values=[clear,detected]

    Example

    {
        "hook_event": "new_shock",
        "device": {
            "name": "TiFiz",
            "serial_number": "85153223"
        },
        "event": {
            "name": "shock",
            "timestamp": "2019-03-21T14:47:13.117Z",
            "status": "detected"
        }
    }
    

    New rollover measure

    The event is triggered when a rollover state is received on the plateform.

    Payload

    PathTypeDescription
    hook_eventStringEquals to "new_rollover" for new rollover status
    device.nameStringDevice name
    device.serial_numberStringLPWAN Device #ID ; DevEUI for or Sigfox #ID ; Not set if device type is not LPWAN
    device.mac_addressStringDevice macaddress if device type is not LPWAN
    device.minorIntegerIBeacon minor if device supports IBeacon protocol; Not set if not the case
    device.majorIntegerIBeacon major if device supports IBeacon protocol; Not set if not the case
    device.proximity_uuidStringIBeacon proximity UUID if device supports IBeacon protocol; Not set if not the case
    event.nameStringEquals to "rollover" for new rollover event
    event.timestampStringUTC Datetime in ISO 8601 format
    event.statusStringRollover status ; Values=[clear,detected]

    Example

    {
        "hook_event": "new_rollover",
        "device": {
            "name": "TiFiz",
            "serial_number": "85153223"
        },
        "event": {
            "name": "rollover",
            "timestamp": "2019-03-21T14:48:14.960Z",
            "status": "detected"
        }
    }
    

    New battery measure

    The event is triggered when a new battery measure is received on the plateform.

    Payload

    PathTypeDescription
    hook_eventStringEquals to "new_battery" for new battery measure
    device.nameStringDevice name
    device.serial_numberStringLPWAN Device #ID ; DevEUI for or Sigfox #ID ; Not set if device type is not LPWAN
    device.mac_addressStringDevice macaddress if device type is not LPWAN
    device.minorIntegerIBeacon minor if device supports IBeacon protocol; Not set if not the case
    device.majorIntegerIBeacon major if device supports IBeacon protocol; Not set if not the case
    device.proximity_uuidStringIBeacon proximity UUID if device supports IBeacon protocol; Not set if not the case
    event.nameStringEquals to "battery" for new battery event
    event.timestampStringUTC Datetime in ISO 8601 format
    event.valueIntegerBattery value
    event.unitStringBattery unit ; Values=[percent,millivolt]

    Example

    {
        "hook_event": "new_battery",
        "device": {
            "name": "TiFiz",
            "serial_number": "85153223"
        },
        "event": {
            "name": "battery",
            "timestamp": "2019-03-21T14:45:48.229Z",
            "value": 75,
            "unit": "percent"
        }
    }
    

    New battery status

    The event is triggered when a new battery status is received on the plateform.

    Payload

    PathTypeDescription
    hook_eventStringEquals to "new_battery_status" for new door measure
    device.nameStringDevice name
    device.serial_numberStringLPWAN Device #ID ; DevEUI for or Sigfox #ID ; Not set if device type is not LPWAN
    device.mac_addressStringDevice macaddress if device type is not LPWAN
    device.minorIntegerIBeacon minor if device supports IBeacon protocol; Not set if not the case
    device.majorIntegerIBeacon major if device supports IBeacon protocol; Not set if not the case
    device.proximity_uuidStringIBeacon proximity UUID if device supports IBeacon protocol; Not set if not the case
    event.nameStringEquals to "battery_status" for new battery status event
    event.timestampStringUTC Datetime in ISO 8601 format
    event.statusStringBattery status ; Values=[good,bad]

    Example

    {
        "hook_event": "new_battery_status",
        "device": {
            "name": "TiFiz",
            "serial_number": "85153223"
        },
        "event": {
            "name": "battery",
            "timestamp": "2019-03-21T14:50:13.651Z",
            "status": "good"
        }
    }
    

    New motion measure

    The event is triggered when a new motion status is received on the plateform.

    Payload

    PathTypeDescription
    hook_eventStringEquals to "new_motion" for new motion status
    device.nameStringDevice name
    device.serial_numberStringLPWAN Device #ID ; DevEUI for or Sigfox #ID ; Not set if device type is not LPWAN
    device.mac_addressStringDevice macaddress if device type is not LPWAN
    device.minorIntegerIBeacon minor if device supports IBeacon protocol; Not set if not the case
    device.majorIntegerIBeacon major if device supports IBeacon protocol; Not set if not the case
    device.proximity_uuidStringIBeacon proximity UUID if device supports IBeacon protocol; Not set if not the case
    event.nameStringEquals to "motion" for new motion event
    event.timestampStringUTC Datetime in ISO 8601 format
    event.statusStringMotion status ; Values=[still,moving]

    Example

    {
        "hook_event": "new_motion",
        "device": {
            "name": "TiFiz",
            "serial_number": "85153223"
        },
        "event": {
            "name": "battery",
            "timestamp": "2019-03-21T14:52:44.795Z",
            "status": "moving"
        }
    }
    
    ← Events v1
    • New location
      • Payload
      • Example
    • Button press
      • Payload
      • Example
    • Button press - Single click
      • Payload
      • Example
    • Button press - Double click
      • Payload
      • Example
    • Button press - Hold click
      • Payload
      • Example
    • New temperature measure
      • Payload
      • Example
    • New humidity measure
      • Payload
      • Example
    • New door measure
      • Payload
      • Example
    • New shock measure
      • Payload
      • Example
    • New rollover measure
      • Payload
      • Example
    • New battery measure
      • Payload
      • Example
    • New battery status
      • Payload
      • Example
    • New motion measure
      • Payload
      • Example
    Copyright © 2020 Ticatag SAS