Logo: Webhooks

Webhooks

Communautéit
nahid-sparktales
webhooks

Receive or send HTTP webhooks correctly — signature verification on the raw body, fast acknowledgement, deduplication, out-of-order handling, retry and dead-letter behaviour, and the delivery contract a consumer needs. Use when adding or debugging a webhook endpoint, when integrating a provider's events, or when your own service has to notify others of changes. Not for internal queue or event-bus messages that never cross an HTTP boundary, and not for general outbound API retry policy.

Add to TypingMind

Iwwersiicht

Editeurnahid-sparktales
Repositoryagent-dispatcher
Skill-Nummwebhooks
Stären
58
Forks
5
Matgeliwwert Dateien
1
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    nahid-sparktales huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Webhooks an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/backend/webhooks
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nahid-sparktales/agent-dispatcher.git /tmp/agent-dispatcher
mkdir -p .claude/skills
cp -r /tmp/agent-dispatcher/skills/backend/webhooks .claude/skills/webhooks
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Webhooks an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Webhooks automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Webhooks net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Webhooks

A webhook is an untrusted HTTP request that claims to be an event. Almost every webhook bug is one of four things: the signature was checked against a re-serialized body, the handler did its work before acknowledging, the same event arrived twice, or events arrived out of order.

When this fires

Building or reviewing a webhook receiver, integrating a provider's events, or designing outbound event delivery to consumers. It does not fire for an internal queue consumer — that has no HTTP trust boundary, though its idempotency requirements are the same.

Procedure — receiving

  1. Verify before you parse. Compute the signature over the raw request body exactly as received, before any JSON decode or middleware re-serialization, and compare in constant time. Check the signed timestamp against a tolerance window so an old capture cannot be replayed. A request that fails verification gets a 4xx and nothing else — no logging of the payload as if it were real, no side effects. Never identify the sender by a field inside the payload.
  2. Confirm the secret's source. Per-endpoint secret from configuration, never committed, and the verification path must fail closed when the secret is missing rather than skipping the check.
  3. Acknowledge fast, work later. Persist the raw body and headers, return 2xx, and process asynchronously. A handler that does its work inline will eventually exceed the sender's timeout, the sender will retry, and you will get duplicates on top of the original that actually succeeded.
  4. Deduplicate on the provider's event id. A persisted record with a unique constraint is the arbiter; a read-then-write check is a race, not a guard. At-least-once delivery is the norm — a second delivery of an event you already applied must be a no-op that still returns 2xx.
  5. Do not trust arrival order. Order by the event's own sequence number, version, or emitted timestamp, and ignore an event whose version is older than the state you already hold. Where the payload is thin or ordering matters more than latency, treat the event as a signal and fetch current state from the provider's API instead of applying the payload.
  6. Make the effect idempotent, not just the dispatch — see idempotency-and-retries. Dedupe keeps you from processing twice; idempotent effects keep you correct when it happens anyway.
  7. Use status codes to mean what the sender thinks they mean. 2xx: delivered, stop retrying. 4xx: permanent — the sender will not retry and may disable the endpoint, so return it only for events you will never be able to process. 5xx: retry me. Never return 2xx to silence a failure you have not recorded, and never return 5xx for a malformed event that will fail identically forever.
  8. Dead-letter after the retry budget, keeping the raw body, headers, receipt time and failure reason. Provide a deliberate replay path. Replaying events into a production system is an outward-facing action with real side effects: stop and ask before running one.
  9. Log without secrets. Event id, type, verification result, outcome. Not the signature header, not tokens or card data inside the payload.

Procedure — sending

  1. Publish the contract before the first delivery. Event types and their payload schemas, a stable event id, an emitted timestamp, the signature scheme and which bytes it covers, the delivery headers, the retry schedule, and — stated plainly — the ordering guarantee you actually offer, which is usually none. Promise at-least-once and tell consumers to be idempotent.
  2. Sign every delivery with a per-endpoint secret, include the timestamp in the signed material, and support two active secrets so a consumer can rotate without dropping events.
  3. Retry with exponential backoff plus jitter, a capped attempt count, and a per-endpoint concurrency limit so one slow consumer cannot drain your workers. Disabling a customer's endpoint after sustained failure is a customer-visible action — notify, and ask before doing it by hand.
  4. Treat the destination URL as hostile. It is user-supplied: block private and link-local address ranges, resolve and check the address actually connected to, refuse redirects to internal hosts, set connect and read timeouts, and cap the response size you read. This is the SSRF surface of your whole cluster.
  5. Version payloads additively. Adding a field is safe only if consumers were told to ignore unknown ones; removing or re-typing a field needs a new event type or version.

Checklist

  • Signature verified on raw bytes, constant time, with a timestamp window
  • Missing or misconfigured secret fails closed
  • Endpoint acknowledges before doing the work, within the sender's timeout
  • Duplicate delivery of the same event id is a no-op, enforced by a unique constraint
  • Out-of-order and stale events are detected by version or timestamp, not ignored
  • 2xx / 4xx / 5xx each returned for the case the sender interprets them as
  • Dead-letter store keeps raw body and headers, with a replay path that asks first
  • Outbound: contract published, deliveries signed, backoff bounded, destination URL restricted
  • Verified against a real signed delivery, or stated as only exercised with a sample payload

Failure handling

  • Signature fails against a known-good delivery — suspect body mutation first: a framework that parses and re-serializes, a proxy that rewrites encoding, trailing-newline handling. Do not "solve" it by weakening or skipping verification; an endpoint that accepts unsigned requests is a remote write primitive for anyone who learns the URL.
  • Events arrive but nothing happens — check the async path, not the endpoint. A 2xx from a receiver whose queue consumer is dead looks perfect from outside.
  • Duplicate side effects in production — this is the dedupe or idempotency gap, not the provider misbehaving. At-least-once means exactly what it says.
  • Cannot receive a real delivery locally — say the handler was exercised with a constructed payload and that live delivery is unverified. A tunnelled or sandbox delivery is better evidence; a unit test with a hand-made signature is the weakest and must be labelled as such.
  • Provider's documented headers or schema are uncertain — read their current documentation rather than assuming. Header names, signature formats and tolerance windows differ per provider and change.

Evidence to report

The verification path and what bytes it covers. One delivery you actually observed — event id, type, status returned, elapsed time to acknowledge. The duplicate test: the same event id delivered twice, and proof of one effect. An out-of-order or stale event, and what the handler did with it. For outbound work, the published contract and the retry schedule's actual numbers. And which of these were executed against a real signed delivery versus only constructed in a test — never let "the webhook works" stand in for either.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Webhooks?

Receive or send HTTP webhooks correctly — signature verification on the raw body, fast acknowledgement, deduplication, out-of-order handling, retry and dead-letter behaviour, and the delivery contract a consumer needs. Use when adding or debugging a webhook endpoint, when integrating a provider's events, or when your own service has to notify others of changes. Not for internal queue or event-bus messages that never cross an HTTP boundary, and not for general outbound API retry policy.

Firwat Webhooks op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Webhooks besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Webhooks an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/nahid-sparktales/agent-dispatcher/tree/main/skills/backend/webhooks an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Webhooks benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Webhooks benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Webhooks domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Webhooks gratis?

Jo. nahid-sparktales huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇