TypeScript
const options = { method: 'PATCH', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: JSON.stringify({url: '<string>', events: ['<string>']}) }; fetch('https://api.prudra.dev/webhooks/{id}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "id": "wh_abc123", "url": "https://example.com/webhook", "events": [ "*" ], "isActive": true, "createdAt": "2023-11-07T05:31:56Z" }
Documentation IndexFetch the complete documentation index at: https://docs.prudra.dev/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.prudra.dev/llms.txt
Use this file to discover all available pages before exploring further.
Your Prudra API key. Get one at dashboard.prudra.com/settings/api-keys
Updated webhook
"wh_abc123"
"https://example.com/webhook"
["*"]