import Triglit from 'triglit';
const client = new Triglit({
apiKey: 'My API Key',
});
const response = await client.triggers.ingest({ event: 'x' });
console.log(response.resumed);{
"resumed": [
{
"runId": "run_abc123def456",
"workflowVersionId": "wfv_abc123def456",
"entityId": "user_123"
}
],
"triggered": [
{
"triggerId": "trg_abc123def456",
"dedupeKey": "tenant_123:sub_456:trg_abc123def456:1705312200000",
"runId": "run_abc123def456"
}
],
"skipped": [
{
"reason": "expired",
"runId": "run_abc123def456"
}
]
}Intelligently resumes paused executions for the same entityId and event, or triggers new workflows if no paused executions exist. This endpoint simplifies integration by automatically handling the decision between resuming and triggering.
import Triglit from 'triglit';
const client = new Triglit({
apiKey: 'My API Key',
});
const response = await client.triggers.ingest({ event: 'x' });
console.log(response.resumed);{
"resumed": [
{
"runId": "run_abc123def456",
"workflowVersionId": "wfv_abc123def456",
"entityId": "user_123"
}
],
"triggered": [
{
"triggerId": "trg_abc123def456",
"dedupeKey": "tenant_123:sub_456:trg_abc123def456:1705312200000",
"runId": "run_abc123def456"
}
],
"skipped": [
{
"reason": "expired",
"runId": "run_abc123def456"
}
]
}Chave de API do tenant (publishable key ou secret key)
Chave de API do tenant (publishable key ou secret key)
Was this page helpful?