import LightsparkGrid from '@lightsparkdev/grid';
const client = new LightsparkGrid({
username: process.env['GRID_CLIENT_ID'], // This is the default and can be omitted
password: process.env['GRID_CLIENT_SECRET'], // This is the default and can be omitted
});
const response = await client.sandbox.sendTestWebhook();
console.log(response.response_status);{
"response_status": 200,
"url": "https://api.mycompany.com/webhooks/uma",
"response_body": "<string>"
}Send a test webhook to the configured endpoint
import LightsparkGrid from '@lightsparkdev/grid';
const client = new LightsparkGrid({
username: process.env['GRID_CLIENT_ID'], // This is the default and can be omitted
password: process.env['GRID_CLIENT_SECRET'], // This is the default and can be omitted
});
const response = await client.sandbox.sendTestWebhook();
console.log(response.response_status);{
"response_status": 200,
"url": "https://api.mycompany.com/webhooks/uma",
"response_body": "<string>"
}API token authentication using format <api token id>:<api client secret>
Webhook delivered successfully
Was this page helpful?