celcoin-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and authenticate Celcoin webhooks (Brazilian BaaS: Pix, TED, accounts, onboarding). Use when setting up a Celcoin webhook endpoint, verifying the HTTP…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Celcoin Webhooks
Celcoin (a Brazilian banking-as-a-service platform: Pix, TED, accounts, onboarding; docs are in
Portuguese) sends a JSON webhook when something happens, for example a Pix is received or an
onboarding proposal is decided. Subscriptions are created through the Celcoin API, one per
entity. Webhooks are not signed. Your endpoint authenticates the sender with HTTP Basic
auth: the login and pwd you set in the subscription's auth object come back on every
notification as Authorization: Basic base64(login:pwd).
Set
auth.typetobasicon subscriptions you check with Basic credentials, including ones that point at a Hookdeck Celcoin source.
Celcoin also offers a JWT/OAuth 2.0 mode (auth.type jwt, where Celcoin first calls your token
endpoint). Hookdeck's Celcoin source does not cover it, and neither does this skill.
When to Use This Skill
- How do I receive Celcoin webhooks?
- How do I authenticate Celcoin webhooks with Basic auth?
- Does Celcoin sign webhook payloads? (No: static credentials only)
- How do I handle
pix-payment-in,pix-payment-out,spb-transfer-outoronboarding-proposalevents? - Why does my Celcoin webhook endpoint return 401?
Verification (core)
const crypto = require('crypto');
const sha = (s) => crypto.createHash('sha256').update(s, 'utf8').digest();
const safeEqual = (a, b) => crypto.timingSafeEqual(sha(a), sha(b)); // equal-length digests
function verifyCelcoinAuth(authorization, username, password) {
if (!username || !password || typeof authorization !== 'string') return false;
const m = /^basic[ \t]+(\S+)$/i.exec(authorization.trim()); // scheme is case-insensitive
if (!m || !/^[A-Za-z0-9+/]+={0,2}$/.test(m[1]) || m[1].length % 4) return false; // strict base64
const decoded = Buffer.from(m[1], 'base64').toString('utf8');
const i = decoded.indexOf(':'); // split on the FIRST colon
if (i === -1) return false;
const userOk = safeEqual(decoded.slice(0, i), username);
const passOk = safeEqual(decoded.slice(i + 1), password); // evaluate both, no short-circuit
return userOk && passOk;
}
- Header:
Authorization: Basic base64(username:password). Read the credentials fromCELCOIN_WEBHOOK_USERNAMEandCELCOIN_WEBHOOK_PASSWORD. - Decode strictly (base64 alphabet only;
validate=Truein Python) so valid credentials followed by junk are rejected. The full examples also re-encode and compare in Node. - Compare the username and the password each in constant time and evaluate both before deciding.
Python:
hmac.compare_digeston bytes (encode both sides;strraises on non-ASCII). - Return
401for a missing or malformed header or a mismatch,400for a body that isn't a JSON object,200once handled. - Celcoin's docs say the Basic credentials you define are sent with the notifications, so
expect them on every request rather than after a
401challenge. - A static shared credential authenticates the sender, not the body, and gives no replay protection (no signature, no timestamp). Use HTTPS, and rotate the credential (update the subscription) if it leaks.
- Read the body raw (
express.raw({ type: '*/*' })) and authenticate before parsing it.
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
HTTP Methods
Celcoin's docs don't name the HTTP method of the notification. The examples therefore accept GET, POST, PUT, PATCH and DELETE on the webhook route, check the credential first for every method, and acknowledge an empty body. Hookdeck's Celcoin source accepts only the methods you allow (custom methods), so if Celcoin uses any other method, also allow that method on the Hookdeck source.
Event Payload and Entities
BaaS notifications share one envelope, and you dispatch on entity. This is Celcoin's launch-in
example from its BaaS templates page (the tax ID is replaced with a placeholder):
{
"status": "CONFIRMED",
"entity": "launch-in",
"createTimestamp": "2025-05-07T17:30:00.7647117",
"body": {
"account": "420226177",
"description": "Saldo bloqueado devido a solicitação do Juiz",
"branch": "0001",
"amount": 50,
"taxId": "00000000000",
"id": "404bd03b-a2ba-4ef5-a385-d30d5930177b",
"oldBalance": 1,
"currentBalance": 10.11,
"clientCode": "404bd03b-a2ba-4ef5-a385-d30d59309999"
}
}
status is CONFIRMED or ERROR (an ERROR notification also carries an error object with
errorCode and message).
Webhooks registered through the CelBricks module (/common/v1/webhook/subscription) don't all use
this envelope. Celcoin's Pix models wrap the data in RequestBody and name the type in
RequestBody.TransactionType (RECEIVEPIX, PAYMENT, REVERTPIX, REVERTED), and its Pix
Indireto MED, infraction and key-claim models put `Dic
Установить celcoin-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл celcoin-webhooks?
Receive and authenticate Celcoin webhooks (Brazilian BaaS: Pix, TED, accounts, onboarding). Use when setting up a Celcoin webhook endpoint, verifying the HTTP Basic auth credentials Celcoin sends, debugging 401s, or handling events like pix-payment-in, pix-payment-out, pix-reversal-in, internal-transfer-in, spb-transfer-out, onboarding-proposal and kyc.
Как установить скилл celcoin-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл celcoin-webhooks запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic