Webhooks
Example Request
var GoSquared = require('gosquared');
var gosquared = new GoSquared({
api_key: 'demo',
site_token: 'GSN-106863-S'
});
gosquared.account.v1.webhooks(function(err, res) {
if (err) return console.log(err);
console.log(res);
});
Live Responseundefined undefined
Your API Key is not authorised for this endpoint
Please fill in the required fields in the Query Builder
Add a webhook
POSTaccount/webhooks
Adds a webhook.
POST Body
name | String |
url | StringRequired |
trigger | String Accepted values: |
value | String or number |
include_unverified | Boolean |
Example Request
The Node library does not support this function at this time
Live Responseundefined undefined
Your API Key is not authorised for this endpoint
Retrieve a webhook
GETaccount/webhooks/{webhookID}
Retrieves a webhook.
Path Parameters
webhookID | NumberRequired |
Example Request
var GoSquared = require('gosquared');
var gosquared = new GoSquared({
api_key: 'demo',
site_token: 'GSN-106863-S'
});
gosquared.account.v1.webhooks.{webhookID}(function(err, res) {
if (err) return console.log(err);
console.log(res);
});
Live Responseundefined undefined
Your API Key is not authorised for this endpoint
Please fill in the required fields in the Query Builder
Remove a webhook
DELETEaccount/webhooks/{webhookID}
Deletes a webhook.
Path Parameters
webhookID | NumberRequired |
Example Request
The Node library does not support this function at this time
Live Responseundefined undefined
Your API Key is not authorised for this endpoint
Retrieve all triggers for a webhook
GETaccount/webhooks/{webhookID}/triggers
Retrieve all triggers for a webhook.
Path Parameters
webhookID | NumberRequired |
Example Request
var GoSquared = require('gosquared');
var gosquared = new GoSquared({
api_key: 'demo',
site_token: 'GSN-106863-S'
});
gosquared.account.v1.webhooks.{webhookID}.triggers(function(err, res) {
if (err) return console.log(err);
console.log(res);
});
Live Responseundefined undefined
Your API Key is not authorised for this endpoint
Please fill in the required fields in the Query Builder
Add a trigger to a webhook
POSTaccount/webhooks/{webhookID}/triggers
Add a trigger to a webhook.
Path Parameters
webhookID | NumberRequired |
POST Body
trigger | StringRequired Accepted values: |
value | String or numberRequired |
Example Request
The Node library does not support this function at this time
Live Responseundefined undefined
Your API Key is not authorised for this endpoint
Retrieve an trigger for a webhook
GETaccount/webhooks/{webhookID}/triggers/{triggerID}
Retrieve an trigger for a webhook.
Path Parameters
webhookID | NumberRequired |
triggerID | NumberRequired |
Example Request
var GoSquared = require('gosquared');
var gosquared = new GoSquared({
api_key: 'demo',
site_token: 'GSN-106863-S'
});
gosquared.account.v1.webhooks.{webhookID}.triggers.{triggerID}(function(err, res) {
if (err) return console.log(err);
console.log(res);
});
Live Responseundefined undefined
Your API Key is not authorised for this endpoint
Please fill in the required fields in the Query Builder
Remove a trigger from a webhook
DELETEaccount/webhooks/{webhookID}/triggers/{triggerID}
Remove a trigger from a webhook.
Path Parameters
webhookID | NumberRequired |
triggerID | NumberRequired |
Example Request
The Node library does not support this function at this time
Live Responseundefined undefined
Your API Key is not authorised for this endpoint