import Triglit from 'triglit';
const client = new Triglit({
apiKey: 'My API Key',
});
const response = await client.triggers.triggerByEvent({ event: 'x' });
console.log(response.total);{
"triggers": [
{
"triggerId": "trg_abc123def456",
"dedupeKey": "tenant_123:sub_456:trg_abc123def456:1705312200000"
}
],
"total": 3
}Finds and triggers all active webhook triggers matching the specified event and subTenantId (if provided). This is a helper endpoint to facilitate workflow initiation by event name instead of trigger ID.
import Triglit from 'triglit';
const client = new Triglit({
apiKey: 'My API Key',
});
const response = await client.triggers.triggerByEvent({ event: 'x' });
console.log(response.total);{
"triggers": [
{
"triggerId": "trg_abc123def456",
"dedupeKey": "tenant_123:sub_456:trg_abc123def456:1705312200000"
}
],
"total": 3
}Was this page helpful?