PgBeam Docs
Webhooks

testWebhookEndpoint

Send a test event

Enqueues a test event delivery to the webhook endpoint.

Usage

const result = await api.webhooks.testWebhookEndpoint({
  pathParams: { project_id: "prj_xxx", webhook_id: "whk_xxx" },
});

Parameters

ParameterTypeRequiredDescription
pathParams.project_idstringYesUnique project identifier (prefixed, e.g. prj_xxx).
pathParams.webhook_idstringYesUnique webhook endpoint identifier (prefixed, e.g. whk_xxx).

Response

Promise<unknown> — the result.

Example

import { PgBeamClient } from "pgbeam";

const client = new PgBeamClient({
  token: "pbk_...",
  baseUrl: "https://api.pgbeam.com",
});

const result = await client.api.webhooks.testWebhookEndpoint({
  pathParams: { project_id: "prj_xxx", webhook_id: "whk_xxx" },
});

Errors

StatusDescription
400Invalid request parameters.
401Missing or invalid authentication.
403Operation not allowed by current plan limits.
404Resource not found.

On this page