SDK reference · Python SDK
prov.webhooks.list
prov.webhooks.list in Python SDK.
Signature
prov.webhooks.list() -> AnyParameters
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
Any 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();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.get(f"{api}/v1/webhook_endpoints", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()