SDK reference · Node SDK

prov.webhooks.list

prov.webhooks.list in Node SDK.

Signature

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

Parameters

No parameters.

Request fields

qstringquery
Search text. Matches when the endpoint's URL or ID contains it, ignoring case. At most 200 characters.
statusarray of enumsquery
Only endpoints in these statuses. One value, or several separated by commas.

Returns

Promise<{ data: WebhookEndpoint[] }> The webhook endpoints. Secrets aren't returned.

HTTP operation

GET /v1/webhook_endpoints: List webhook endpoints

Errors

Example

const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/webhook_endpoints`, {
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();

Was this page helpful? Send us feedback

LLM? Read llms.txt.