Agent skill · software engineering · jeremylongshore
klingai-webhook-config
Configure webhook callbacks for Kling AI task completion. Use when building
Why this skill is useful
Provides specific integration patterns and code examples for handling Kling AI webhooks that the AI wouldn't reliably generate on its own.
What it needs
Requires flask, npm installed locally. Requires klingai account access. About 3k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.
What this skill does
Kling AI Webhook Configuration Overview Instead of polling task status, pass a callbackurl when creating a task. Kling AI will POST the completed task result to your URL when generation finishes. This eliminates polling overhead and reduces API calls. Supported on: All video generation endpoints (text2video, image2video, video-extend, lip-sync, effects) How It Works 1. Include callbackurl in your task creation request 2. Kling queues the task normally 3. When task reaches terminal state (succeed or failed), Kling POSTs the full result to your URL 4. Your webhook handler processes the result Sending a Task with Callback Webhook Receiver (Flask) Webhook Receiver (Express.js) Callback Payload Shape Webhook Reliability Pattern Requirements for Your Webhook Endpoint Requirement Detail ------------ -------- Protocol HTTPS only Response Return 2xx within 5 seconds Availability Must be publicly reachable Idempotency Handle duplicate deliveries gracefully Timeout Kling retries on timeout, so process async Prerequisites An allowlisted HTTPS endpoint, secret references for signature verification, sandbox event fixture, idempotency store, redaction policy, retention window, and incident owner. Instructions 1. Register only a sandbox callback during testing and validate signatures before parsing or queueing an event. 2. Enforce idempotency, schema validation, least-privilege downstream routing, redacted logging, and draft-only handling for generated assets. 3. Reject, quarantine, and alert on unsigned, malformed, duplicate, unapproved-destination, policy, or retention-drift events; do not retry unsafe payloads. 4. Promote a callback route only after owner approval; retain aggregate redacted evidence and delete test events at the approved boundary. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills jeremylongshore/klingai-webhook-config--91f67a