Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

greendot-webhooks

БесплатноЗапускает вложенные скриптыНе проверен

Receive and authenticate Green Dot Embedded Finance (BaaS) webhooks. Use when setting up a Green Dot partner webhook endpoint, validating the OAuth…

hookdeckот hookdeck★ 104 звезды на GitHub

Об этом скилле

Green Dot Webhooks

Green Dot Embedded Finance (Banking-as-a-Service) does not use the Standard Webhooks spec or a single HMAC signature. It uses push authentication: Green Dot authenticates itself to your partner-hosted endpoint. The primary model is an OAuth 2.0 client_credentials Bearer token (scope post:webhook) sent on every delivery, with a Certificate (mTLS) variant as an alternative.

When to Use This Skill

  • How do I receive Green Dot Embedded Finance / BaaS webhooks?
  • How do I authenticate the Green Dot OAuth Bearer token on my endpoint?
  • What is the x-gd-signature header and can I verify it?
  • How do I echo the x-GD-RequestId header and return responseDetails?
  • How do I handle transaction, accountUpdated, or achTransfer events?
  • Why does Green Dot keep retrying my webhook endpoint?

Verification (core)

Authenticate the delivery by validating the OAuth client_credentials Bearer token and requiring the post:webhook scope. This is the real gate. Always parse JSON after authentication passes.

const jwt = require('jsonwebtoken');

// Authenticate: validate the OAuth client_credentials Bearer token + scope.
// In production validate against your authorization server (JWKS / RS256 or
// token introspection). HS256 with a shared program secret is shown here.
function verifyToken(authHeader) {
  const token = String(authHeader || '').replace(/^Bearer\s+/i, '').trim();
  const claims = jwt.verify(token, process.env.GREENDOT_WEBHOOK_TOKEN_SECRET);
  const scopes = String(claims.scope || claims.scp || '').split(/[\s,]+/);
  if (!scopes.includes('post:webhook')) throw new Error('missing post:webhook scope');
  return claims;
}

If you use the Certificate (mTLS) variant instead of OAuth, the token check is replaced by client-certificate validation at your TLS terminator / reverse proxy — there is no application-level token to check.

About x-gd-signature: a delivery may carry an x-gd-signature header, but Green Dot's public docs do not document its algorithm, encoding, or the canonical payload it covers. This skill therefore does not implement a signature check — a guessed HMAC would give false confidence in an unverified payload. If you need payload-level verification, obtain the exact specification (and signing key) from your Green Dot representative before implementing any check. Authenticity comes from the OAuth Bearer token (and/or mTLS). See TODO.md.

Green Dot also sends an API-Key header (your program's API key, the same value on every delivery) — it is not a signature, so don't treat it as proof of authenticity beyond weak defense-in-depth on top of the Bearer token.

Then echo the x-GD-RequestId header back and respond 200/201 with a responseDetails body, as Green Dot's docs require:

{ "responseDetails": [{ "code": 0, "subCode": 0, "description": "<x-GD-RequestId>" }] }

For complete handlers with token verification, event dispatch, the responseDetails acknowledgement, and tests, see:

Common Event Types

The body is an envelope, { accounts: [{ accountIdentifier, events: [...] }] }, and the event name is each event's eventType inside accounts[].events[]. One request can carry several events, so loop over both arrays:

eventType Triggered when
transaction A card or account transaction posts
accountUpdated Account details or status change
achTransfer An ACH transfer changes state
cardUpdate A card is issued, activated, or its status changes
billPayTransfer A bill pay transfer changes state
directDepositSwitch A direct-deposit switch progresses
provisioning Account / card provisioning progresses

Green Dot documents 28 event types with examples on its Webhook Events page, including statementReady, failedTransfer, achNOCAlert, p2pTransfer, atmPinReset, checkDeposit and adjustmentFinalStatus. The exact set is program-specific — confirm the enabled eventType values with your Green Dot representative.

Environment Variables

# Secret used to validate the OAuth client_credentials Bearer token (HS256).
# Shared with whoever issues Green Dot's token for your program.
GREENDOT_WEBHOOK_TOKEN_SECRET=your_token_signing_secret

# Required OAuth scope on the token (default: post:webhook).
GREENDOT_WEBHOOK_SCOPE=post:webhook

The x-gd-signature header is not verified by this skill (its algorithm is undocumented — see TODO.md), so there is no signing-key environment variable.

Setup Notes

  • Endpoints are registered by your Green Dot representative — there is no self-serve da
Полный SKILL.md на GitHub

Установить greendot-webhooks в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

TODO.mdexamples/express/.env.exampleexamples/express/README.mdexamples/express/package.jsonexamples/express/src/index.jsexamples/fastapi/.env.exampleexamples/fastapi/README.mdexamples/fastapi/main.pyexamples/fastapi/requirements.txtexamples/fastapi/test_webhook.pyexamples/nextjs/.env.exampleexamples/nextjs/README.mdexamples/nextjs/app/webhooks/greendot/route.tsexamples/nextjs/package.jsonexamples/nextjs/vitest.config.tsreferences/overview.mdreferences/setup.mdreferences/verification.md

FAQ

Что делает скилл greendot-webhooks?

Receive and authenticate Green Dot Embedded Finance (BaaS) webhooks. Use when setting up a Green Dot partner webhook endpoint, validating the OAuth client_credentials Bearer token (scope post:webhook), handling the optional undocumented x-gd-signature header, echoing the x-GD-RequestId header, returning the responseDetails acknowledgement, or handling eventType events like transaction, accountUpdated, achTransfer, cardUpdate, billPayTransfer, directDepositSwitch, and provisioning.

Как установить скилл greendot-webhooks?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл greendot-webhooks запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить greendot-webhooks с