DEVELOPER CENTER
...
Webhooks (Preview)
User Unsubscribe
1 min
this api notifies the pathfix automation's webhook module to stop listening for webhooks for the given user id the api will always return a success message but will only really work if the user id is connected via pathfix oauth and the webhook is in an active state tab examples url https labs pathfix com api webhook provider user unsubscribe name user unsubscribe api method post request pathparameters queryparameters kind required name user id type string description identifier of your currently logged in user kind required name public key type string description your pathfix application s public key kind required name private key type string description your pathfix application s private key headerparameters bodydataparameters formdataparameters results languages id bhhpsilcjvcku umegek code n rows n n pincstatus success n callid 00dd76ab f623 48ae 9448 8b3f665ceef5 n data webhook subscription notification sent to pathfix automation for user id user id and provider provider n n n language 200 id 5utnllitbefzun5urh12m code unauthorized language 403 customlabel selectedlanguageid 5utnllitbefzun5urh12m examples languages id mrpkxrnjpln wchjnxhks code curl request get n url https labs pathfix com api webhook provider user unsubscribe n d user id user id n d public key public key n d private key private key n header accept application json language curl customlabel id wxffudrtswj50kkfgjr7g code const fetch require node fetch ; n nlet url https labs pathfix com api connection ; nlet options n method get nheaders n accept application json n n ; nfetch url options n then res res json n then json console log json n catch err console error error err ; language nodejs id o22umscxnzdnlhqor1eqv code import requests n nurl https labs pathfix com api connection nheaders accept application json nresponse requests request get url headers headers nprint response text language python id vyb1psi4ibaoeniwgtyh4 code const fetch require node fetch ; n nlet url https labs pathfix com api connection ; nlet options method get headers accept application json ; nfetch url options n then res res json n then json console log json n catch err console error error err ; language ruby selectedlanguageid mrpkxrnjpln wchjnxhks description call this api to unsubscribe a user from an active webhook n currentnewparameter label query parameter value queryparameters