How do I integrate Opensend to BayEngage with a custom webhook?

Steps to integrate:

  1. Go to the integrations tab on the Opensend Dashboard
  2. Click Main Connections
  3. Click Add Destination
  4. Select Custom Webhook
  5. Add Name, Description, and Click Next
  6. Select the "BayEngage template" under the Webhook configuration dropdown
  7. Select the Webhook method (POST)
  8. Select API Key under the Authentication method dropdown and add the following details for authorization:
    1. x-client-secret
    2. x-public-id
    3. To get the values for x-client-secret and x-public-id from BayEngage follow these steps:
      1. Go to the BayEngage dashboard
      2. Click on Apps
      3. Click on Settings in the Custom Integration section
      4. Copy Client ID and Client Secret (private key) and add the following details in Opensend Webhook configuration

  9. Under the fields dropdown select any default fields from Opensend and any custom fields, you want to send to Custom Webhook
  10. The Custom Webhook URL is auto-filled: https://api.bayengage.com/api/v1/customer
  11. Press the Send a Test request button

  12. In the popup add the email address to send as a test to Custom Webhook and Press Send

  13. You will find a test request with the email you have entered in your Contacts page on BayEngage
  14. Press Done to close the Popup
  15. Click Next

  16. Select the Traffic sources from where you want to receive the data
  17. Click Create Connections
  18. Select the connections and Click Publish
  19. Request Data format:
    1. For DTC: In the case of DTC product, on the bottom, you should be able to see Example request data

    2. For B2B: In the case of B2B product, on the bottom, you should be able to see Example request data and JavaScript example code you can use to post data on your end. 
      Note: If you are using our B2B product and you want to integrate with Bayengage, only the "person" additional field will be available for delivery:
      • First/Last name of the contact
      • Address details