API Reference / Integrations
DELETE/integrations/webhooks/:id

Delete a webhook

Remove a webhook subscription. Replace :id with the subscription id.

🔒 JWT BearerTry in Console →

Purpose

Stop receiving events at a URL — e.g. when decommissioning a service or rotating endpoints. After deletion, no further deliveries are attempted.

Authentication

Send your access token as a Bearer header: Authorization: Bearer <token>. Obtain it from Authenticate a user.

Parameters

NameInTypeDescription
id*pathnumberSubscription id

Request samples

bash
curl -X DELETE https://tourapi.nirajp.com.np/api/v1/integrations/webhooks/1 \
  -H "Content-Type: application/json"

Success response

Returns 200 OK with the shape below.

FieldTypeDescription
messagestringConfirmation text
json
{
  "success": true,
  "message": "Webhook deleted."
}

Errors

All errors share the envelope { "success": false, "message": "..." }.

401No or invalid authentication token supplied.
json
{
  "success": false,
  "message": "Unauthorized"
}
404The resource id does not exist or belongs to another organization.
json
{
  "success": false,
  "message": "Not found"
}
403Authenticated but the account/role lacks permission for this action.
json
{
  "success": false,
  "message": "Forbidden"
}
500An unexpected error occurred on our side. Retry; if it persists, contact support.
json
{
  "success": false,
  "message": "Internal server error"
}