PgBeam Docs
Webhooks

getWebhookEndpoint

Get a webhook endpoint

Returns a single webhook endpoint by ID.

Usage

const result = await api.webhooks.getWebhookEndpoint({
  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<WebhookEndpoint> — the webhook endpoint.

Example

import { PgBeamClient } from "pgbeam";

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

const result = await client.api.webhooks.getWebhookEndpoint({
  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