Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The unique identifier of the webhook subscription
Response
204 No Content
204 No Content
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();{}This endpoint deletes a webhook by its ID
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();{}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier of the webhook subscription
204 No Content
204 No Content
Was this page helpful?