Node.js
import { PeriskopeApi } from '@periskope/periskope-client';
const client = new PeriskopeApi({
authToken: 'YOUR_API_KEY',
phone: 'YOUR_PHONE_NUMBER', // e.g., '919876543210'
});
async function deleteWebhook() {
const response = await client.webhooks.delete({
id: 'webhook-id-123'
});
console.log(response);
}
deleteWebhook();curl -X DELETE \
https://api.periskope.app/v1/webhooks/webhook-id-123 \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json'{}Webhook APIs
Delete Webhook
This endpoint deletes a webhook by its ID
Node.js
import { PeriskopeApi } from '@periskope/periskope-client';
const client = new PeriskopeApi({
authToken: 'YOUR_API_KEY',
phone: 'YOUR_PHONE_NUMBER', // e.g., '919876543210'
});
async function deleteWebhook() {
const response = await client.webhooks.delete({
id: 'webhook-id-123'
});
console.log(response);
}
deleteWebhook();curl -X DELETE \
https://api.periskope.app/v1/webhooks/webhook-id-123 \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json'{}Was this page helpful?