Inconsistency between JSON and Form key for Webhooks

I just wanted to call out something that is annoying and potentially unexpected to new users such as myself.

If you submit a JSON Webhook the key value for the Event Name is “name”. If you submit a Form Webhook the key value for the Event Name is “event”.

JSON:
{
“name”: “spark/status”,
“data”: “test-event”,
“ttl”: 60,
“published_at”: “2018-01-02T01:38:19.633Z”,
“coreid”: “api”
}

Form:
Array
(
[event] => spark/status
[data] => test-event
[published_at] => 2018-01-02T01:38:19.633Z
[coreid] => api
)

2 Likes