Webhook Documentation

Thanks!

I had read the API docs about how to enumerate webhooks, and how to discover what webhooks have been created. What I’m not finding is docs describing the structure of the json data that rachio will pass to those webhooks when called.

For example, let’s say I send a GET to /notification/webhook_event_type and discover the available webhhoks, for example:

{
“createDate”: 1417885403299,
“lastUpdateDate”: 1417885403299,
“id”: 6,
“name”: “RAIN_DELAY”,
“description”: “A rain delay event has occurred”,
“type”: “WEBHOOK”
}

Then i do a POST to subscribe to that event:

{
“device”: {
“id”: “my_device_id”
},
“externalId”: “id_used_by_my_application”,
“url”: “https://www.mywebhookurl.com/events/6”,
“eventTypes”: [
{
“id”: “6”
}
]
}

So now whenever there’s a raind delay, I’ll get notified at https://www.mywebhookurl.com/events/6.

What I’m trying to understand now is, what data will Rachio send me on that request. I’m assuming (perhaps incorrectly) that it’ll be a POST, and there’ll be some JSON data in the post body.

I’m sure I’m just being dense or missing something.

Thanks,
Andy

1 Like