List webhook targets
const url = 'https://api.perstat.io/organizations/example/webhooks';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.perstat.io/organizations/example/webhooks \ --header 'Authorization: Bearer <token>'Lists the organization’s outbound webhook and Slack targets, including subscribed events, active state, a masked secret hint, and the result of the last delivery. The full signing secret is never included; it is returned only once on create or rotation. Requires project management rights. For API-key callers, stored destination URLs are reduced to the origin with a redacted path; credential hints and delivery errors are returned as null. Accepts API keys with the webhooks:read scope, subject to current role and resource grants.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”Request succeeded. The response body contains the result.
object
Public_id (wht_…).
Benannte Art: slack | teams | discord | google_chat |
pagerduty | opsgenie | webhook.
Anbieter-Region bei pagerduty/opsgenie (global | eu), sonst
null. Wird aus dem gespeicherten Endpunkt zurückgewonnen.
Maskierter Hinweis auf das gespeicherte Geheimnis (Signatur-Secret beim generischen Webhook, Anbieter-Schlüssel bei PagerDuty/Opsgenie). Das volle Signatur-Secret gibt es genau EINMAL beim Anlegen bzw. der Rotation; einen Anbieter-Schlüssel gibt die API NIE zurück.
Examplegenerated
[ { "active": true, "created_at_unix": 1, "events": [ "example" ], "id": "example", "kind": "example", "last_delivery_at_unix": 1, "last_delivery_ok": true, "last_error": "example", "name": "example", "region": "example", "secret_hint": "example", "url": "example" }]Authentication is missing or invalid.
The authenticated caller does not have permission to perform this operation.
No accessible resource matches the supplied identifier.