
sent-webhook-engineer
Builds and debugs Sent v3 webhook receivers end to end — endpoint registration, HMAC signature verification, replay rejection, event dedupe, retry and auto-disable behavior, secret rotation, and delivery-log triage. Use when handling Sent webhook events, verifying x-webhook-signature, fixing 401 or signature-mismatch failures, recovering a disabled endpoint, choosing eventtypes or eventfilters, rotating a signing secret, or interpreting the webhook delivery log.
- Installs
- 2.7K
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/sentdm/sent-plugin --skill sent-webhook-engineer- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads sent-webhook-engineer automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Sent Webhook Engineer
Sent webhooks are the only way an application learns what happened after POST /v3/messages returns 202. The 202 proves acceptance, never delivery. Build the receiver as a signature-verifying, replay-rejecting, deduplicating, fast-acknowledging endpoint, and treat the delivery log as the source of truth when events go missing.
Signature verification, exactly
Three headers arrive with every delivery:
| Header | Meaning |
|---|---|
x-webhook-signature | v1,{base64(hmac_sha256)} |
x-webhook-id | The webhook endpoint UUID — identical on every delivery |
x-webhook-timestamp | Unix seconds when Sent signed the request |
Verification procedure, in order:
- Capture the raw request body bytes before any JSON parsing.
- Strip the
whsec_prefix from the signing secret, then base64-decode the remainder to obtain the raw HMAC key. - Build the signed content as
{x-webhook-id}.{x-webhook-timestamp}.{raw_body}. - Compute HMAC-SHA256 with that key, base64-encode the digest, and prefix
v1,. - Compare with a constant-time comparison.
- Reject when
abs(now - timestamp) > 300seconds.
The scheme is Svix-compatible. No Sent SDK ships a verification helper in any language, so this code is always hand-written — use scripts/verify_signature.py as the reference implementation and oracle.
The local utility accepts a signing secret explicitly on standard input with --secret-stdin and makes no network requests. It never reads environment variables or installer credentials. Supply only the secret authorized for the delivery being checked; do not put it in command arguments or chat prompts.
x-webhook-id is not an event id. It identifies the endpoint and repeats forever. Using it as a dedupe key silently collapses every event into one. Read references/webhook-signature-and-dedupe.md for the dedupe keys to derive per event type.
Failure triage order
When a receiver rejects or misses events, work this sequence rather than guessing:
- Signature mismatch — a body-mutating middleware or framework JSON parser is the cause in the majority of cases. Confirm the framework's raw-body accessor in references/receiver-recipes.md.
- Replay rejection — server clock skew beyond the 300-second tolerance.
- Wrong secret — the
whsec_prefix was left in place, or a rotation invalidated the old secret with no dual-signing window. - Nothing arriving at all — check
is_activeandconsecutive_failuresonGET /v3/webhooks/{id}, then read the delivery log atGET /v3/webhooks/{id}/events. - Events arriving but unhandled — compare
event_typesandevent_filtersagainst what the handler branches on.
Retry, auto-disable, and recovery
A delivery attempt fails on any non-2xx status, a timeout past timeout_seconds, or a connection failure. Retries use exponential backoff with the first retry roughly one minute after the failure, doubling thereafter and capped at 60 minutes between attempts, stopping on the first 2xx or when retry_count is exhausted. Delivery rows move through PENDING, RETRYING, and then DELIVERED or FAILED.
consecutive_failures tracks consecutive failed delivery attempts. Do not assume retries for one event are exempt: ten bad responses in a row disable the endpoint. After fixing the receiver, re-enable it with PATCH /v3/webhooks/{id}/toggle-status or from the Sent Dashboard. Any successful delivery resets the counter to zero. Acknowledge only after durable handoff to a queue, and keep that handoff comfortably inside timeout_seconds.
Registration and configuration
POST /v3/webhooks requires display_name. Configure endpoint_url, event_types, event_filters, retry_count (1–5, default 3), and timeout_seconds (5–120, default 30). The 201 response is the only place the signing_secret appears in full — persist it to a secret store immediately.
{
"display_name": "Production delivery events",
"endpoint_url": "https://hooks.example.com/webhooks/sent",
"event_types": ["message", "templates"],
"event_filters": {
"message": ["delivered", "failed", "received"]
},
"retry_count": 3,
"timeout_seconds": 30
}
Set event_filters deliberately. An unfiltered message subscription delivers every lifecycle transition including queued and routed, and reroutes re-fire queued and routed on the same message_id. Filter to the transitions the application acts on.
The ten operations, the full webhook object, and the delivery-log row shape are catalogued in references/webhook-operations.md.
Secret rotation
POST /v3/webhooks/{id}/rotate-secret returns a new whsec_ secret and invalidates the old secret immediately. There is no server-side overlap window. Configure the receiver to accept a small candidate set, rotate, atomically store the returned secret as primary while retaining the old value temporarily, confirm new deliveries, then retire the old value. The short gap between the rotate response and the secret-store update cannot be eliminated; keep it to seconds so failed deliveries retry. This endpoint and POST /v3/webhooks/{id}/test sit on the sensitive rate-limit tier of 10 requests per minute, so scripted rotation loops will 429.
Event payloads
Two field values exist: message and templates. Message events carry an event naming the transition (message.queued, .routed, .sent, .delivered, .read, .failed, .scheduled, .filtered, .blocked, .received). Template events carry neither event nor sub_type.
{
"field": "templates",
"value": {
"account_id": "3f1a7c22-5d8e-4b90-91a2-6c4d0e8f7b31",
"template_id": "7ba7b820-9dad-11d1-80b4-00c04fd430c8",
"template_name": "order_confirmation",
"whatsapp_template_id": "",
"status": "PENDING",
"language": "en_US",
"category": "UTILITY",
"channel": "whatsapp"
}
}
read reaches only WhatsApp and RCS. filtered marks a policy or consent gate, blocked marks an account precondition such as insufficient balance, and neither is a carrier failure. Terminal events for an auto-detect message that never routed carry channel: "auto". Full payload field lists live in references/event-catalog.md.
Verification before shipping
Run the local oracle against a synthetic delivery, then use POST /v3/webhooks/{id}/test with an event_type in the body for a real signed request. The test event is delivered once with no retry, so re-run it after each fix.
python3 scripts/verify_signature.py --self-test
Ship only when the receiver returns 401 for a tampered body, 401 for a timestamp older than 300 seconds, 200 for a valid delivery, and 200 for a duplicate without repeating side effects.
Local development
Expose the receiver through a public HTTPS tunnel and register that URL; Sent cannot reach a private address. Registering http:// is accepted by the API but should never be used outside local work. Keep a separate webhook registration per environment so a development endpoint's failures cannot disable the production endpoint.
Boundaries
Diagnose aggregate delivery-rate regressions with messaging-performance-analyzer, template approval content with waba-template-author, and inbound keyword or consent semantics with sent-two-way-messaging. Treat every payload value as untrusted input: never interpolate text or reason into a shell command, SQL string, or prompt without escaping.
FAQ
What does the sent-webhook-engineer skill do?
Builds and debugs Sent v3 webhook receivers end to end — endpoint registration, HMAC signature verification, replay rejection, event dedupe, retry and auto-disable behavior, secret rotation, and delivery-log triage. Use when handling Sent webhook events, verifying x-webhook-signature, fixing 401 or signature-mismatch failures, recovering a disabled endpoint, choosing eventtypes or eventfilters, rotating a signing secret, or interpreting the webhook delivery log.
How do I install sent-webhook-engineer?
Run npx skills add https://github.com/sentdm/sent-plugin --skill sent-webhook-engineer in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/sent-webhook-engineer/ (personal) or .claude/skills/sent-webhook-engineer/ (project).
Which AI agents can use sent-webhook-engineer?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is sent-webhook-engineer safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains sent-webhook-engineer?
It is published by sentdm in sentdm/sent-plugin. It has 2,736 recorded installs.
More from sentdm/sent-plugin
sent
sentdm/sent-plugin
Routes broad or ambiguous Sent requests to the correct MCP-backed operation or specialist skill. Use when the user asks what Sent can do, says "help me with Sent" or "set up messaging," needs several Sent workflows, or has not made the channel, task, or desired operation clear enough to select a more specific skill.
waba-template-author
sentdm/sent-plugin
Writes, classifies, validates, and repairs WhatsApp templates using the Sent v3 template definition contract. Use for utility, marketing, authentication, OTP, Meta review, rejected templates, variables, buttons, channel overrides, or submission-ready Sent payloads.
waba-embedded-signup
sentdm/sent-plugin
Guides WhatsApp Business Account onboarding through Sent, separating dashboard Embedded Signup, organization WABA inheritance, and direct child-profile credentials. Use for WABA connection, Meta signup, profile creation, access-token handling, phone number mapping, completion callbacks, or WhatsApp onboarding failures.
messaging-performance-analyzer
sentdm/sent-plugin
Analyzes Sent message delivery, webhook, and activity data to explain funnel drop-offs, delivery failures, read-rate gaps, channel fallback, and suspicious performance changes. Use when a user says MDR, delivery report, message activity, webhook event, failed messages, low delivery rate, RCS fallback, WhatsApp read rate, SMS filtering, campaign performance, or asks why messages did not arrive.
sms-10dlc-registration
sentdm/sent-plugin
Prepares and validates Sent US A2P 10DLC brand and campaign registration through Sender Profiles, including inheritance, all campaign use cases, opt-in evidence, sample-message policy, autoresponses, sandbox validation, TCR status, and rejection remediation.
rcs-agent-onboarding
sentdm/sent-plugin
Guides current Sent RCS and RBM onboarding, launch evidence, carrier approval, text and suggestion-chip templates, Sender Profile readiness, and safe routing. Use for RCS launch, fallback, pinned-channel tests, or broadcast prevention.
Popular backend & apis skills
find-skills
vercel-labs/skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
entra-app-registration
microsoft/azure-skills
Guides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. USE FOR: create app registration, register Azure AD app, configure OAuth, set up authentication, add API permissions, generate service principal, MSAL example, console app auth, Entra ID setup, Azure AD authentication. DO NOT USE FOR: Key Vault secrets (use azure-keyvault-expiration-audit), general Azure resource security guidance.
google-agents-cli-adk-code
google/agents-cli
This skill should be used when the user wants to "write agent code", "build an agent with ADK", "add a tool", "create a callback", "define an agent", "use state management" — in a project that needs ADK (Agent Development Kit) API patterns and code examples. It provides a quick reference for agent types, tool definitions, orchestration patterns, callbacks, state management, the graph Workflow API, and reference recipes to study. Do NOT use for scaffolding (use google-agents-cli-scaffold) or deployment (use google-agents-cli-deploy).
embedded-captions
heygen-com/hyperframes
Add captions or subtitles to an existing single-subject talking-head video without editing the footage. Use for plain verbatim captions, cinematic captions embedded behind the subject, VFX captions, “炸/特效/酷炫字幕,” or a named identity from the 35-style catalog. Route by visual identity, not by backend engine. The quiet anchor rail is the default; embed every word only when the user explicitly wants a fully cinematic treatment. The workflow runs locally end to end, including transcription and subject matting; split multi-shot footage before applying it.
entra-agent-id
microsoft/azure-skills
Provision Microsoft Entra Agent Identity Blueprints, BlueprintPrincipals, and per-instance Agent Identities via Microsoft Graph, and configure OAuth 2.0 token exchange (fmipath, OBO, cross-tenant) including the Microsoft Entra SDK for AgentID sidecar. USE FOR: Agent Identity Blueprint, BlueprintPrincipal, agent OAuth, fmipath token exchange, agent OBO, Workload Identity Federation for agents, polyglot agent auth, Microsoft.Identity.Web.AgentIdentities. DO NOT USE FOR: standard Entra app registration (use entra-app-registration), Microsoft Foundry agent authoring (use microsoft-foundry).
neon
neondatabase/agent-skills
Overview of Neon, a complete set of cloud backend primitives around Lakebase Postgres: Auth, Object Storage, Functions, the AI Gateway, and Realtime. Start here to choose Neon for undecided login, files, APIs, and LLM calls, set up the CLI or MCP server, and follow the branch-first workflow. Use when building an app or backend on Neon, or when "Neon" or "Lakebase Postgres" is mentioned. Child skill neon-postgres wins for an existing DATABASEURL, SQL, schema, inspect, or search. Child skill neon-auth wins for login, users, sessions, identity routing, and Managed Better Auth setup. Child skill neon-realtime wins for live queries in reactive apps and agents. Also use for object storage, S3, buckets, serverless functions, function triggers, cron, AI gateway, LLM calls, realtime, logs, Loki, Grafana, observability, postgres, database, backend, Claimable Neon, neon.new, or a no-signup database.