Create a new webhook endpoint
1 min
code examples curl request post \\ \ url https //api nue io/webhook endpoints \\ \ header 'accept application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); var requestoptions = { method 'post', headers myheaders, redirect 'follow' }; fetch("https //api nue io/webhook endpoints", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "net/http" url = uri("https //api nue io/webhook endpoints") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" response = https request(request) puts response read body import requests url = "https //api nue io/webhook endpoints" payload = {} headers = { 'accept' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // successfully created webhook endpoint {}// bad request // not found // webhook endpoint url invalid