CTA Submitted

Upon submitting a CTA instance of a Form CTA Type, this webhook is executed asynchronously.

The event identifier is cta_submitted.

Webhook Request

Body Parameters Properties Type Description
event   String The event identifier, cta_submitted
occurred_at   String The date and time the event occurred in ISO 8601 format
cta_id   Integer The unique identifier of the CTA
hub_id   Integer The unique identifier of the Hub where the CTA belongs
submission   Object  
-> url String The URL from which the CTA was submitted
-> ip_address String The IP address from which the CTA was submitted
-> fields Object The Form Fields key / value pairings submitted through the CTA
-> item_id Integer The unique identifier of the Item from which the CTA was submitted (if Stream and Item CTA Placement is enabled)
-> stream_id Integer The unique identifier of the Stream of the Item from which the CTA was submitted (if Stream and Item CTA Placement is enabled)
-> previous_item_id Integer The unique identifier of the Item visited prior to submitting the CTA
-> previous_stream_id Integer The unique identifier of the Stream visited prior to submitting the CTA

Sample request:

POST /ICl8ohgw5f5XDCRDSsz HTTP/1.1
Host: putsreq.com
Content-Type: application/json

{
    "event": "cta_submitted",
    "occurred_at": "2016-05-31T11:24:33-04:00",
    "account_id": 8227,
    "cta_id": 10194,
    "hub_id": 4003,
    "submission": {
        "url": "http:\/\/hub.dev.flyptech.com\/h\/i\/1232097-7-google-docs-hacks-for-more-efficient-content-creation",
        "ip_address": "10.5.5.6",
        "fields": {
            "first_name": "John",
            "last_name": "Doe",
            "email_address": "john.doe@gmail.com",
            "favourite_ice_cream": "dark_chocolate",
            "opt_in_flag": "1"
        },
        "item_id": 1232097,
        "stream_id": 38898,
        "previous_item_id": 1232094,
        "previous_stream_id": 38898
    }
}