Data Integration

How to use webhook to send form & promo results to any third-party system, instantly

Feversocial’s Form System includes built-in Webhook notifications. Register a Webhook URL in your dashboard, and every time someone submits a new form, Feversocial automatically notifies that URL and sends the submission data along with it.

What is a webhook?

Have you ever given your email address to a service so it could notify you whenever there was news? A webhook works on a similar idea to an email subscription — it’s a subscription mechanism between two systems. The difference is that instead of an email address, the two systems communicate through a URL, and that URL is called the webhook URL.

In short, think of a webhook as a web notification technology, or simply a web address. Two different systems can exchange data with each other through this agreed-upon address.

Feversocial’s forms and promos support the same notification feature. Register a Webhook URL in your dashboard, and Feversocial will notify that URL whenever a form receives a new submission or someone completes a promo — sending the form or promo data straight to that address. (See the data format below.)

Plenty of database and marketing systems accept webhook data out of the box — Google Sheets, CRM (Customer Relationship Management) and CDP (Customer Data Platform) tools, chatbots, email platforms, and integration platforms like Zapier and Make.

You can also have your IT team log form submissions directly into your company’s database in real time.

Webhook 資料傳遞示意圖

Feversocial form webhook format

Below is a sample format for one form
{
    "webhook_id": “f2f7a357-971f-459d-97b6-636f09d913bd”,
    "event_type": "formSubmit",
    "version": "1",
    "payload": {
        "form_id": 104,
        "title": "form example",
        “serial_number”: 190,
        “uid”: "temp_8fd49340-950b-11ea-b0fb-79250516b2b6",
        “login_id”:  "12345",
        "submitted_at": 1585129540,
        "fields": [
            {
                "id": 1,
                "name": "full name",
                "value": "John Doe",
                "ref": "your name"
            },
            {
                "id": 2,
                "name": "email",
                "value": "[email protected]",
                "ref": ""
            },
            {
                "id": 3,
                "name": "what's your favorite pets",
                "value": "dogs,cats,rabbits",
                "ref": ""
            },
            {
                "id": 4,
                "name": "what's your gender",
                "value": "male",
                "ref": ""
            },
            {
                "id": 5,
                "name": "county/city",
                "value": "Taipei City",
                "ref": "address1"
            },
            {
                "id": 6,
                "name": "district",
                "value": "Zhongshan District",
                "ref": "address2"
            },
            {
                "id": 7,
                "name": "term of use",
                "value": true,
                "ref": ""
            },
            {
                "id": 8,
                "name": "rf",
                "value": "some hidden value",
                "ref": ""
            }
        ],
       "tracking": {            
                "ga_client_id": "1855437272.1588751465",            
                "utm_source": "",            
                "utm_campaign": "",            
                "utm_medium": "",            
                "utm_term": "",            
                "utm_content": ""        
         }
    }
}

Outer fields (header)

Header/KeyData TypeDescription
X-Fever-SignaturestringDigital signature from Feversocial, generated with HMAC-SHA256
webhook_idstringUnique webhook ID
event_typestringWebhook event type
versionstringWebhook API version number
payloadobjectThe main data payload

Payload field reference

KeyData TypeDescription
form_idnumberUnique form ID
titlestringForm Title
serial_numbernumberPromo participant sequence number
uidstringFeversocial’s internal unique identifier
login_idstringUser ID (Facebook, LINE, or member ID)
submitted_atnumberUNIX timestamp
fieldsarrayForm field data
fields[].idnumberUnique field ID
fields[].namestringField display name
fields[].valuestring, boolValue submitted by the respondent
fields[].refstringKey-Value settings for data mapping
fields[].is_multiple_choiceboolWhether this is a multiple-choice field
trackingobjectTracking code — automatically saved if the form’s URL contains UTM parameters
tracking.ga_client_idstring
tracking.utm_campaignstring
tracking.utm_sourcestring
tracking.utm_mediumstring
tracking.utm_termstring
tracking.utm_contentstring
icon_BackToTop