1

Webhook - Data structure

I've been using Deftform for a few hours now, and it seems to me to be a very complete solution, despite the fact that it's only just being launched (from what I understand).

I plan to use webhooks to automate form submissions.

Checking on a webhook, I noticed the structure below.

In this structure, we can see a “data” array with “label” and “response” properties for each element.

[{

“label": ‘string’,

“response": ”string or null”

}]

For better maintainability, it would be interesting to have a structure with a technical id such as the following:

[{

“id": ‘customer_email’,

“label": ‘E-mail du client’,

“response": ”contact@google.com

}]

in this way, the developer could rely on the “id” and not on the label displayed on the form. If the label is changed, data processing via the webhook will still work.

Thank you for your answer :)

Comments

To leave a comment, please authenticate.

No comments yet
Voters
Status
Backlog
Board
Idea
Submitted
strapnpay