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. Add "list_id:": "XXXXXXXX" to the payload to send the contacts to the specific list on BayEngage
    1. You can get the list_id value from the BayEngage list
  12. Your final payload should look like this:
  13. Press the Send a Test request button

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

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

  18. Select the Traffic sources from where you want to receive the data
  19. Click Create Connections
  20. Select the connections and Click Publish
  21. 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