Skip to main content
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();
{}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The unique identifier of the webhook subscription

Response

204 No Content

204 No Content