Webhook can't be created

Currently in eval period, but am having zero luck creating a webhook for the CRM module. This webhook is the reason we are wanting to purchase this module.

I get a status 200, and I get this response: {“status”:true,“data”:[]} when I try to create it.
I get same response when trying to query for the created hooks

Any suggestions? Curl commands below…

Set one

curl -H "Token:  {tokenRemoved}" https://{--removed--}/admin/api/sangomacrm/rest/webhooks?url=https://postb.in/<binid>&direction=both

Show me

curl -H "Token: {tokenRemoved}" https://,{removed}./admin/api/sangomacrm/rest/webhooks/both

and the result

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    25  100    25    0     0     23      0  0:00:01  0:00:01 --:--:--    23{"status":true,"data":[]}

Try setting a webhook with:

curl -H "Token: <redacted>" -d "url=http://postb.in/<postbin_code>&direction=both" http://localhost/admin/api/sangomacrm/rest/webhooks
1 Like

Thanks for the quick response! That did the trick, thanks… So, now the magic happens? Every call sends data to the URL? Documentation is kinda slim, so wondering if there are any other steps reqd. Because no data is happening…



This is now fixed

sangomacrm v13.0.7
sangomacrm v14.0.2
sangomacrm v15.0.5

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.