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"
}| Field | Type | Description |
|---|---|---|
| template_id | string | The ID of the template you want to unsubscribe from |
| hookUrl | string | The URL you previously subscribed with |
Response:
{
"success": true
}Error Responses:
- 400 Bad Request: If
template_idorhookUrlis 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.