Setting up a webhook for a form

Beta - we're testing this new feature with selected organisations and the functionality is subject to change without warning.

If you're building a service and you need to receive each submission to a particular form, you can set up a webhook.

Each form in Aiir supports adding one webhook. How you set up the receiving end is entirely up to you.

The data is sent in JSON as a POST request, shortly after each submission occurs.

Here's an example of the JSON payload. The 'date_time' attribute is in ISO 8601 format.

{
	"action": "created",
	"submission": {
		"form_id": "123",
		"date_time": "2018-01-01T12:00:00+00:00",
		"fields": [
			{
				"field_id": "1",
				"name": "Name",
				"value": "Barry Scott"
			},
			{
				"field_id": "2",
				"name": "Comment",
				"value": "Hello world"
			}
		]
	}
}