Skip to main content
POST
/
v1
/
gateway
/
triggers
/
ingest
JavaScript
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",
      "runId": "run_abc123def456",
      "dedupeKey": "tenant_123:sub_456:trg_abc123def456:1705312200000"
    }
  ],
  "skipped": [
    {
      "reason": "expired",
      "runId": "run_abc123def456"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Headers

X-API-Key
string
required

Body

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

Response

resumed
object[]
required
triggered
object[]
required
skipped
object[]
required