Online/offline webhook integration (spark/status event)

Hi guys,

Do you have any idea how I can make a webhook or any kind of intriguers for the offline/online events?
I want to use aws lambda instead of a client that will always need to be connected to the Server Sent Events.

I tried to make a webhook to the “spark/status” event but its only visible to the devices, and cant be intriguer the webhook.

I just the spark/status event with my Lambda. I had to use custom json for it to work with my AWS lambda. Here the API call I used to set it up. It’s for a product, so you’ll need to modify it for your use case.

curl \
  -X POST \
  -H "Authorization:Bearer 1234567890" \
  -H "Content-Type: application/json" \
  -d '{
    "event": "spark/status",
    "url": "",
    "headers": {
      "x-api-key": "abcdefg"
    "json": {
      "id": "{{PARTICLE_DEVICE_ID}}",
      "value": "{{PARTICLE_EVENT_VALUE}}",
      "name": "{{PARTICLE_EVENT_NAME}}"
    "product_id": "123",
    "requestType": "POST",
    "responseTopic": "{{PARTICLE_DEVICE_ID}}/hook-response/{{PARTICLE_EVENT_NAME}}"