Skip to main content
POST
/
v1
/
gateway
/
triggers
/
webhook
/
by-event
JavaScript
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
}

Authorizations

X-API-Key
string
header
required

Headers

X-API-Key
string
required

Body

application/json
event
string
required
Minimum length: 1
subTenantId
string
eventData
object

Response

triggers
object[]
required
total
number
required
Example: