Issues With Triggering Campaigns App With An Alert

Esten
Esten Member
edited September 2022 in APIs & Domo Developer

I've been following along with https://domohelp.domo.com/hc/en-us/articles/1500000316201-Triggering-a-Campaign-from-a-Domo-DataSet-Alert#2.2.

I am currently at the point of testing the POST to the API in the WebHook and I am getting the Error:

{

"status": 400,

"error": "Bad Request",

"path": "/api/v1/campaigns/bae/start"

}

Below is my current JSON Included in the WebHook:

{

  "campaignId": CampaignNum,

  "instance": "Instance",

  "domoAccessToken": "AccessToken",

  "domoAccessTokenOwnerEmailAddress": "Email",

  "emailAddresses": ["Email" ],

  "isTest": true

}

I've found that I could POST the previous JSON to https://campaigns-prod.domolabs.io/api/v1/campaigns/start while testing the API on another program, but I am not able to get a successful POST while using the Domo WebHook.

I've also tried to POST to https://campaigns-prod.domolabs.io/api/v1/campaigns/bae/start, but I have also only gotten the error from above. 

Tagged:

Best Answer

Answers