v2
1import { PinnacleClient } from "rcs-js";23async function main() {4 const client = new PinnacleClient({5 environment: "https://api.pinnacle.sh",6 });7 await client.webhooks.get({});8}9main();
1{2 "webhooks": [3 {4 "endpoint": "https://www.pinnacle.sh/examples/check-payment",5 "id": 1,6 "name": "Payment Notification Webhook"7 },8 {9 "endpoint": "https://www.pinnacle.sh/examples/talk-to-my-friends",10 "id": 2,11 "name": "SMS Delivery Webhook"12 }13 ]14}
Returns all webhooks matching the search criteria.
Results are sorted by ID and duplicates are removed.