SDK reference · Node SDK

prov.webhooks

prov.webhooks in the Node SDK: 7 methods. The webhooks methods.

Methods

list

prov.webhooks.list(): Promise<{ data: WebhookEndpoint[] }>

Calls GET /v1/webhook_endpoints.

create

prov.webhooks.create(params: CreateWebhookParams): Promise<WebhookEndpoint>

Create an endpoint; the response includes the one-time secret.

Calls POST /v1/webhook_endpoints.

update

prov.webhooks.update(id: string, params: UpdateWebhookParams): Promise<WebhookEndpoint>

Calls PATCH /v1/webhook_endpoints/{id}.

delete

prov.webhooks.delete(id: string): Promise<{ deleted: boolean; endpointId: string }>

Calls DELETE /v1/webhook_endpoints/{id}.

rotateSecret

prov.webhooks.rotateSecret(id: string): Promise<WebhookEndpoint>

Rotate the signing secret; the response includes the new one-time secret.

Calls POST /v1/webhook_endpoints/{id}/rotate_secret.

test

prov.webhooks.test(id: string): Promise<WebhookDelivery>

Send a signed ping now; the response is the delivery result.

Calls POST /v1/webhook_endpoints/{id}/test.

deliveries

prov.webhooks.deliveries(id: string, params?: { limit?: number }): Promise<{ data: WebhookDelivery[] }>

Calls GET /v1/webhook_endpoints/{id}/deliveries.

Was this page helpful? Send us feedback

LLM? Read llms.txt.