Skip to main content
GET
/
v1
/
gateway
/
triggers
JavaScript
import Triglit from 'triglit';

const client = new Triglit({
  apiKey: 'My API Key',
});

// Automatically fetches more pages as needed.
for await (const trigger of client.triggers.list()) {
  console.log(trigger.id);
}
{
  "data": [
    {
      "id": "trg_abc123def456",
      "tenantId": "tenant_123",
      "subTenantId": "sub_tenant_456",
      "workflowVersionId": "wfv_abc123def456",
      "name": "User Registration Webhook",
      "type": "webhook",
      "config": {},
      "isActive": true,
      "createdAt": "2024-01-15T10:30:00.000Z",
      "updatedAt": "2024-01-15T10:30:00.000Z"
    }
  ],
  "page": 0,
  "lastPage": 2
}

Authorizations

X-API-Key
string
header
required

Headers

X-API-Key
string
required

Query Parameters

type
enum<string>
Available options:
schedule,
webhook
isActive
boolean
pageSize
number
Example:
page
number
Example:
workflowVersionId
string

Response

data
object[]
required
page
number
required
Example:
lastPage
number
required
Example: