ebay-webhooks

A guide for receiving eBay notifications, which are automatic messages about events in eBay accounts or marketplace integrations. It explains the registration challenge and the ECDSA signature used to verify each notification.

In plain words
What is it for?
Use it to answer challenge requests, obtain and cache eBay's public key, verify x-ebay-signature, and handle account-deletion notifications.
Why use it?
It helps satisfy eBay's endpoint check and prevents untrusted notifications from being processed as real events.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/hookdeck/webhook-skills/ebay-webhooks
Any agent
npx skills add hookdeck/webhook-skills --skill ebay-webhooks
Clone the repo
git clone --depth 1 https://github.com/hookdeck/webhook-skills

Made for: Claude Code, Codex.

Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,994 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 86% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00069 $0.01994
Opus 5 $0.00034 $0.00997
Sonnet 5 $0.00014 $0.00399
Haiku 4.5 $0.00007 $0.00199

Measured 2d ago against content hash 690e3a93060a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ebay-webhooks scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (examples/express/src/index.js, examples/express/test/webhook.test.js, examples/fastapi/main.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

86% identical to customerio-webhooks — 162 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/ebay-webhooks/SKILL.md · 161 lines

How it starts

The opening of the file, as written. The whole thing — 161 lines — stays where its author put it; the contents beside it link to each section on GitHub.

eBay Webhooks

When to Use This Skill

  • How do I receive eBay webhooks (notifications)?
  • How do I pass eBay's endpoint challenge validation (challenge_code)?
  • How do I verify the x-ebay-signature header (ECDSA)?
  • How do I use the eBay getPublicKey endpoint and cache the public key?
  • How do I handle MARKETPLACE_ACCOUNT_DELETION (marketplace account deletion / closure) notifications?
  • Why is my eBay signature verification failing?

How eBay Webhooks Differ From Most Providers

eBay does not use HMAC with a shared secret, and does not follow the Standard Webhooks spec. Two distinct mechanisms are involved:

  1. Endpoint challenge (one-time, on save) — When you register or update a destination, eBay sends GET https://<your-endpoint>?challenge_code=.... You must respond HTTP 200 with JSON {"challengeResponse":"<hex>"} where the hex is the SHA-256 hash of exactly `challengeCode + verificationToken
    • endpoint` — in that order. The order is mandatory.
  2. Per-notification signature (ECDSA) — Every notification carries an x-ebay-signature header: a Base64-encoded JSON object with fields alg, kid, signature, and digest. Use the kid to fetch the matching public key via getPublicKey, then verify the ECDSA signature over the raw request body. Cache the public key ~1 hour (keyed by kid).

Verification (core)

Endpoint challenge — deterministic SHA-256, no crypto keys needed:

const crypto = require('crypto');

function challengeResponse(challengeCode, verificationToken, endpoint) {
  // ORDER IS MANDATORY: challengeCode + verificationToken + endpoint
  const hash = crypto.createHash('sha256');
  hash.update(challengeCode);
  hash.update(verificationToken);
  hash.update(endpoint);
  return hash.digest('hex'); // return as { challengeResponse: <hex> } with HTTP 200
}

Per-notification signature — ECDSA over the raw body, key fetched by kid:

async function verifyEbaySignature(rawBody, signatureHeader, getPublicKey) {
  if (!signatureHeader) return false;
  let sig;
  try { sig = JSON.parse(Buffer.from(signatureHeader, 'base64').toString('utf8')); }
  catch { return false; }              // { alg, kid, signature, digest }
  if (!sig.kid || !sig.signature) return false;
  const pem = await getPublicKey(sig.kid); // cache ~1h, keyed by kid
  const verifier = crypto.createVerify('sha1'); // eBay signs ECDSA with SHA-1
  verifier.update(rawBody);            // RAW body bytes — do not re-serialize
  verifier.end();
  try { return verifier.verify(pem, sig.signature, 'base64'); }
  catch { return false; }
}

Read the full file on GitHub · 161 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 161 lines · 69 tokens per session scan A 690e3a93060a

Subscribe to this mod's changes

ebay-webhooks is a skill published in the GitHub repository hookdeck/webhook-skills (84 stars, last pushed 5d ago), licensed MIT. It adds 69 tokens to every session and 1,994 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 86% identical to customerio-webhooks, differing in 162 lines, and is treated as a copy.

Related

Other skills, from other repositories

domain-hunter

Search domains, compare prices, find promo codes, get purchase recommendations. Use when user wants to buy a domain, check domain prices, find domain deals, compare registrars, or search for .ai/.com domains.

ReScienceLab/opc-skills · 48 tokens

memstack-content-product-description

Use this skill when the user says 'product description', 'product listing', 'product copy', 'Amazon listing', 'Shopify listing', 'e-commerce copy', or needs conversion-optimized product descriptions with benefit-driven headlines and platform-specific SEO. Do NOT use for pricing strategy or sales funnels.

cwinvestments/memstack · 65 tokens

form-cro

When the user wants to optimize any form that is NOT signup/registration — lead capture, contact, demo request, application, survey, or checkout forms; "form friction," "form completion rate," "form abandonment," "too many fields," "nobody fills out our form." For signup/registration forms, see signup-flow-cro. For…

rajitsaha/100xprism · 84 tokens

git-workflow

Using git without hanging, clobbering, or over-committing. Use before any git command that changes state (commit, push, checkout, rebase, reset) and when inspecting repo history or status.

Zfinix/aster · 48 tokens

frappe-payments

Frappe Payments and ERPNext payment workflow guidance for payment gateways, payment requests, subscriptions, invoices, reconciliation, webhooks, and secure checkout flows. Use when work touches payments in Frappe or ERPNext.

Dkm0315/frappe-agent · 49 tokens

wiki

Rebuild a flow-first project wiki using the mimirs wiki MCP tool. Use when the user asks to generate, rebuild, refresh, or write the wiki for a codebase.

TheWinci/mimirs · 38 tokens