Skip to main content
DELETE
/
v1
/
delete-webhook
curl --location --request DELETE 'https://api.hirempire.com/v1/delete-webhook?id={webhook_id}' \
--header 'Authorization: Bearer sk-••••••••••••'
{
  "success": true,
  "id": "0c8b5e54-e053-40b2-8c9c-b45ec90acf8a",
  "message": "Webhook deleted successfully",
  "deleted": "2026-06-27T10:42:00.000Z"
}

Query Parameters

id
string
required
The unique identifier of the webhook to delete

Authentication

Authorization
string
required
Bearer authentication header of the form Bearer <token>, where <token> is your API token.
curl --location --request DELETE 'https://api.hirempire.com/v1/delete-webhook?id={webhook_id}' \
--header 'Authorization: Bearer sk-••••••••••••'

Response

success
boolean
Indicates if the webhook was deleted successfully
id
string
The unique identifier of the deleted webhook
message
string
Confirmation message
deleted
string
ISO 8601 timestamp of when the webhook was deleted
{
  "success": true,
  "id": "0c8b5e54-e053-40b2-8c9c-b45ec90acf8a",
  "message": "Webhook deleted successfully",
  "deleted": "2026-06-27T10:42:00.000Z"
}

Error Responses

400 Bad Request

{
  "success": false,
  "error": "Query parameter 'id' is required."
}
{
  "success": false,
  "error": "Only 'id' query parameter is allowed."
}

401 Unauthorized

{
  "success": false,
  "error": "Invalid token"
}
{
  "success": false,
  "error": "Token is expired"
}

404 Not Found

{
  "success": false,
  "error": "Webhook not found"
}