ReferenceSDKClient
Webhooks
SDK reference for webhooks — Create and manage webhook endpoints that can trigger graph executions.
Create and manage webhook endpoints that can trigger graph executions.
getWebhook
Get stable webhook identity and preferred snapshot
GET
Usage:
const result = await swirls.client.webhooks.getWebhook({
projectId: '...',
id: '...',
})Input:
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | |
id | string | Yes |
Output:
| Field | Type | Description |
|---|---|---|
webhook | object | |
snapshot | object |
listWebhooks
List stable webhooks with preferred snapshot
GET
Usage:
const result = await swirls.client.webhooks.listWebhooks({
projectId: '...',
})Input:
| Parameter | Type | Required | Description |
|---|---|---|---|
projectId | string | Yes | |
pagination | object | No |
Output:
| Field | Type | Description |
|---|---|---|
pagination | object | |
results | object[] | |
totalCount | number |