Webhooks: Variables and Fully Custom Payloads
Problems:
1). Body content sent from the Webhook shape currently requires parsing on a custom server in order to properly integrate with some APIs.
2). You can't send custom user-specific data over the webhook shape (like custom fields, relevant to the user that triggers the shape.) This makes them significantly less useful than they could be.
Proposed Solutions:
1). Change the Webhook shape to allow a fully custom payload. Remove the current auto-generated one, and allow users to define their own JSON objects to send across.
2). Allow user-specific variables to be added to the Webhook payloads.
The proposed solution would look like this (For an imaginary API for online culinary courses):
{ "firstName" : --firstName--,
"lastName" : --lastName--,
"favouriteRecipe" : --favouriteRecipe--,
"chefLevel" : --chefLevel--,
}