List webhooks
client.webhooks.list(WebhookListParams { cursor, enabled, limit, tenant_id } query?, RequestOptionsoptions?): WebhookListResponse { data, limit, next_cursor, 2 more }
GET/v1/webhooks
Lists webhook endpoints with optional filters and pagination
Parameters
Returns
List webhooks
import FormbricksHub from '@formbricks/hub';
const client = new FormbricksHub({
apiKey: process.env['HUB_API_KEY'], // This is the default and can be omitted
});
const webhooks = await client.webhooks.list();
console.log(webhooks.data);{
"data": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"enabled": true,
"updated_at": "2019-12-27T18:11:19.117Z",
"url": "url",
"disabled_at": "2019-12-27T18:11:19.117Z",
"disabled_reason": "disabled_reason",
"event_types": [
"feedback_record.created"
],
"tenant_id": "tenant_id"
}
],
"limit": 0,
"next_cursor": "next_cursor",
"offset": 0,
"total": 0
}Returns Examples
{
"data": [
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"enabled": true,
"updated_at": "2019-12-27T18:11:19.117Z",
"url": "url",
"disabled_at": "2019-12-27T18:11:19.117Z",
"disabled_reason": "disabled_reason",
"event_types": [
"feedback_record.created"
],
"tenant_id": "tenant_id"
}
],
"limit": 0,
"next_cursor": "next_cursor",
"offset": 0,
"total": 0
}