Skip to main content
DELETE
/
v1
/
webhook
/
{webhookId}
JavaScript
import Roark from '@roarkanalytics/sdk';

const client = new Roark({
  bearerToken: process.env['ROARK_API_BEARER_TOKEN'], // This is the default and can be omitted
});

const webhook = await client.webhook.delete('webhookId');

console.log(webhook.data);
{
  "data": {
    "success": true
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

webhookId
string
required

The ID of the webhook to delete

Response

Webhook deleted successfully

data
object
required