Skip to main content

Create a webhook

Create a new webhook.

Paramaters​

name - required​

name of the webhook.

url - required​

URL for the webhook to POST to.

port - optional​

The port for the webhook. Defaults to 80.

Code Example​

POST - https://api.particlespace.com/api/v1/webhooks/new
var axios = require('axios');
var qs = require('qs');
const BEARER_TOKEN = 'SET_ME';
var data = qs.stringify({
'name': 'open house data',
'url': 'https://api.example.com/example',
});
var config = {
method: 'post',
url: 'https://api.particlespace.com/api/v1/webhooks/new',
headers: {
'Authorization': 'Bearer ' + BEARER_TOKEN
},
data : data
};

axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});