Videos
Removing a Webhook

Webhook Unsubscription

If you no longer want to receive notifications for a specific template, you can unsubscribe from the webhook.

Unsubscribe from Webhook

Endpoint: DELETE /api/dynamic/video/unsubscribe

Headers:

  • X-API-KEY: Your API key (required)
  • Content-Type: application/json

Request Body:

{
    "template_id": "your_template_id",
    "hookUrl": "https://your-webhook-url.com/endpoint"
}
FieldTypeDescription
template_idstringThe ID of the template you want to unsubscribe from
hookUrlstringThe URL you previously subscribed with

Response:

{
    "success": true
}

Error Responses:

  • 400 Bad Request: If template_id or hookUrl is missing
  • 401 Unauthorized: If the API key is missing or invalid
  • 500 Internal Server Error: If there's an issue unsubscribing from the webhook

Example Usage:

curl -X DELETE 'https://krumzi.com/api/dynamic/video/unsubscribe' \
-H 'X-API-KEY: your_api_key_here' \
-H 'Content-Type: application/json' \
-d '{"template_id": "template_12345abcde", "hookUrl": "https://your-webhook-url.com/endpoint"}'

After unsubscribing, you will no longer receive webhook notifications for videos created with the specified template at the specified URL.