This endpoint lists recent events for the passed in Resthook.
Listing Resthook Events
A GET
returns the recent resthook events on your organization. Each event has the following attributes:
- resthook - the slug for the resthook (filterable)
- data - the data for the resthook
- created_on - the datetime when this resthook was created (datetime)
Example:
GET /api/v2/resthook_events.json
Response is the list of recent resthook events on your organization, most recently created first:
{
"next": "http://example.com/api/v2/resthook_events.json?cursor=cD0yMDE1LTExLTExKzExJTNBM40NjQlMkIwMCUzRv",
"previous": null,
"results": [
{
"resthook": "new-report",
"data": {
"flow": {
"name": "Water Survey",
"uuid": "13fed2d2-160e-48e5-b52e-6eea3f74f27d"
},
"contact": {
"uuid": "dc2b3709-3261-465f-b39a-fc7312b2ab95",
"name": "Ben Haggerty",
"urn": "tel:+12065551212"
},
"channel": {
"name": "Twilio +12065552020",
"uuid": "f49d3dd6-beef-40ba-b86b-f526c649175c"
},
"run": {
"uuid": "7facea33-9fbc-4bdd-ba63-b2600cd4f69b",
"created_on":"2014-06-03T08:20:03.242525+00:00"
},
"input": {
"urn": "tel:+12065551212",
"text": "stream",
"attachments": []
}
"path": [
{
"node_uuid": "40019102-e621-4b88-acd2-1288961dc214",
"arrived_on": "2014-06-03T08:21:09.865526+00:00",
"exit_uuid": "207d919d-ac4d-451a-9892-3ceca16430ff"
},
{
"node_uuid": "207d919d-ac4d-451a-9892-3ceca16430ff",
"arrived_on": "2014-06-03T08:21:09.865526+00:00"
}
],
"results": {
"water_source": {
"node_uuid": "40019102-e621-4b88-acd2-1288961dc214",
"name": "Water Source",
"category": "Stream",
"value": "stream",
"input": "stream",
"created_on": "2017-12-05T16:47:57.875680+00:00"
}
}
},
"created_on": "2017-11-11T13:05:57.457742Z",
},
...
}