Flow Documentation
Back to Flow Platform
  • Back to Flow Platform
  • Getting Started
  • Publisher Documentation
    • Introduction
    • Integrating with Flow
      • The Integration Journey
      • How to choose your integration method
        • Set-up requirements for the different integration methods
      • Integrating via Console, Link-Out and Smartfeed
        • Console
          • Console Set-Up Steps
          • Flow Console Authentication
            • Authentication method: SAML Single Sign-On
              • Final URL
        • Link-Out (self-serve)
          • Link-Out Road Map
          • Choosing between Link-Out Advanced or Basic
          • Link-Out Set-Up Steps
          • Link-Out Authentication
          • Link-Out Advanced: For clients with a feed configured
          • Link-Out Basic: Alternative to a Content Feed
        • Smartfeed
          • Smartfeed Set-up Steps
          • How the Smartfeed Engine Works
          • Campaign Triggers
      • Content Feeds
        • Content Feed Overview: What is it, why we use it, do you need it
        • Setting up a Content Feed
        • Listing API
      • Campaign Packages
        • Campaign Packages Overview: What is it, why we use it, do you need it
        • Structuring a Package
        • Understanding Campaign Objectives
      • Webhooks
        • Campaigns Webhooks
        • Leads Webhooks
      • Analytics API
        • Campaigns
        • Insights
    • Account Configuration
      • Navigating the Flow Console
      • Channel Configuration
      • Audience Tracking
      • Custom Ad Templates
      • Whitelabelling
    • Managing the Flow Console
      • Navigating the Flow Console
      • Campaigns
        • Publishing Campaigns
        • Monitoring Campaigns
        • Managing Subscriptions
      • Analytics
        • Flow Insights Dashboard: Enterprise Organisation
        • Flow Enterprise Dashboard: Filtering your Data
        • Flow Enterprise Dashboard: Insights Available
      • Content
        • Editing Content Manually
        • Add Content Manually
        • Previewing Content
        • Viewing Your Brands
      • Enquiries
      • Packages
        • How to create Campaign Packages
        • How to edit a Campaign Package
      • Brand Library
        • Editing Brand Assets
        • Ad Templates
      • General - Flow Settings
        • Reset Your Password
        • Wallet
        • Linking Your Social Media Pages
        • Adding Your Meta Pixel
        • Settings
          • General Section: Organisation, Enquiries, Colors, Address, Partners Settings
          • Users Section: Managing user profiles
          • Channel Configuration Section: Managing linked channels
          • Developer Section: Feed logs, manage Campaign Settings
    • Data Publisher Integration
      • Data Collection Methods
      • Uploading Hashed Files
  • Advertiser Documentation
    • Introduction
    • Navigating the Flow Console
    • Campaigns
      • Publishing Campaigns
      • Monitoring Campaigns
      • Managing Subscriptions
    • Analytics
      • Analytics Dashboards
    • Enquiries
    • General - Flow Settings
      • Reset Your Password
      • Wallet
      • Linking Your Social Media Pages
      • Profile - Your Own Information
  • Changelog
Powered by GitBook
On this page
  1. Publisher Documentation
  2. Integrating with Flow
  3. Webhooks

Campaigns Webhooks

These are the steps that the client will need to take:

  1. Define the Endpoint URL

Create an endpoint URL on the client’s server where Flow will send webhook notifications. This URL should be publicly accessible without authentication other than IP whitelisting, and should be configured to receive a JSON payload. Flow will send a POST request with the payload in JSON format in the body.

Here is an example of a Webhook payload:

{
    "event" : "draft", //"draft" or "publish"
    "draftExpiryDate" : "2024-10-01" //only on draft
    "flowCampaignId" : "12345",
    "facebookCampaignId" : "34567", //only on publish
    "campaignStartDate": "2024-06-21", //only on publish
    "campaignEndDate" : "2024-07-01", //only on publish & for FlowFuel
    "agentEmail": "johndoe@enterprise.com",
    "agentExternalId": "15",
    "campaignName": "F202403445 - FlowFuel...", //only on publish
    "campaignType": "FlowFuel",
    "externalBranchId": "9",
    "flowPropertyId": "3423545kj23523l", //only on FlowFuel
    "listingReference": "XXX-15" //only on FlowFuel
    "externalRef" : optional, if provided in the JWT
    "environment" : "Test" //Test or Live
}

  1. Secure the Endpoint

If security is required, configure the endpoint to authenticate incoming requests:

  • IP Whitelisting: Limit access to known IP addresses, ensuring only Flow servers can send data to this endpoint.

  1. Provide Endpoint Details to Flow

Share the endpoint URL and any authentication requirements (such as the API token) with Flow. Flow will configure its system to direct webhook events to this specified endpoint.

  1. Specify Events to Track

Work with Flow to select the specific events that will trigger webhook notifications. Common webhook events include:

  • Campaign Draft Created: Notifies when a new draft campaign is created.

  • Campaign Published: Sends data when a campaign is successfully published.

  • Campaign Status Updates: Sends updates on campaign progression or completion.

  1. Test the Webhook Setup

Flow will send a test payload to the endpoint to ensure data is received and processed correctly. The client should validate that their endpoint processes and logs data as expected.

Last updated 2 months ago