pax8-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and authenticate Pax8 webhooks. Use when setting up a Pax8 partner Webhooks API endpoint, checking the Authorization header Pax8 sends back, debugging…
от hookdeck★ 104 звезды на GitHubОб этом скилле
Pax8 Webhooks
Pax8 (cloud marketplace for MSPs) sends webhooks from its partner Webhooks API when
events happen on the platform, grouped by topic (for example SUBSCRIPTION, INVOICE)
and action (for example CREATE). Payloads are not signed: the docs say HMAC is
"not yet" supported. The only credential is the optional Authorization value you set on
the webhook, which Pax8 sends back "exactly as you inputed".
Covers partner Webhooks API webhooks only. Paste the Authorization value exactly as set in Pax8, including any "Bearer " or "Basic " prefix.
(Vendor Provisioner webhooks are a different feature with a Pax8-generated credential in a vendor-chosen header; this skill does not cover them.)
When to Use This Skill
- How do I receive Pax8 webhooks?
- How do I verify the
Authorizationheader on a Pax8 webhook? - Does Pax8 sign webhook payloads? (No: static shared credential only)
- Why does my Pax8 webhook endpoint return 401?
- How do I handle
SUBSCRIPTION,INVOICEorCLIENTevents from Pax8?
Verification (core)
Set an authorization value when you create the webhook (Pax8 stores it encrypted). On
every delivery Pax8 sends it back unchanged in the Authorization header. The key is the
whole header value, including any Bearer or Basic prefix: do not strip, parse or
base64-decode it.
const crypto = require('crypto');
// Hash both sides: equal-length buffers, so timingSafeEqual never throws.
function safeEqual(a, b) {
const ha = crypto.createHash('sha256').update(String(a)).digest();
const hb = crypto.createHash('sha256').update(String(b)).digest();
return crypto.timingSafeEqual(ha, hb);
}
function verifyPax8Request(headers, expected = process.env.PAX8_AUTHORIZATION) {
if (!expected) return false; // never accept when unconfigured
const received = headers['authorization']; // full value, e.g. "Bearer my_super_secret"
return Boolean(received) && safeEqual(received, expected);
}
Return 401 when this fails (missing header or mismatch), 400 for a body that isn't a JSON
object, and 200 once handled. Read the body raw (express.raw({ type: '*/*' })) and parse
it only after the check. Python and Next.js equivalents are in
references/verification.md.
Security limits: a static shared credential authenticates the sender, not the body, and
gives no replay protection (no signature, no timestamp). Use HTTPS only (Pax8 rejects
non-https URLs) and rotate the credential if it leaks (update it with
POST /webhooks/{id}/configuration).
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
Topics and Actions
Topics and actions are defined by GET /webhooks/topic-definitions, the authoritative
catalog (create calls are rejected for anything not in it).
| Category | Example events (display names from the docs) |
|---|---|
| Subscription | Subscription Created, Updated, Cancelled, Commitment Term Updated, ... |
| Invoice | Invoice Created, Invoice Voided |
| Client | Client Created, Updated, Deleted |
| Product | Product Created, Updated, Deleted |
| Quote | Quote Pending, Created, Updated, Expired, Deleted, Line Items Added, ... |
| User | User Created, Deleted, Marked Active, Marked Inactive, Info Updated, ... |
The docs publish these as display names, not wire values. The topic identifiers they print are
SUBSCRIPTION, INVOICE and PRODUCT, and the actions they print are CREATE (on
SUBSCRIPTION) and CREATED (on INVOICE); the client, quote and user topic strings aren't
shown. Check the topic-definitions API for the exact topics and actions on your account.
The Webhooks API reference types the body as WebhookPayload: accountId, url,
webhookId, sentAt, webhookTopic (id, topic, filters) and payloadData, the event
data. Route on webhookTopic.topic. What payloadData holds per topic isn't documented, and
Pax8 calls its webhooks a notification system rather than a full state transfer, so fetch the
current resource from the Pax8 API before acting.
Delivery Behavior
POSTwith a JSON body; can lag up to 5 minutes after the event- A response not received within 10 seconds counts as failed
- Up to 3 attempts (initial + 2 automatic retries), then log status
FAILED. The docs give the back-off as "10 s → 30 s → 60 s", three intervals for two retries, so the exact spacing is unclear - One email alert after
errorThresholdconsecutive failures (default 10, max 20) - Send a synthetic event with
POST /webhooks/{id}/topics/{topic}/test - The integrator guide says the same event may be delivered more than once in rare cases, and asks for a 2xx within 5 seconds
Answer within 5 seconds to be safe and make handlers idempotent, as the docs give no event id.
Environment Variables
Установить pax8-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл pax8-webhooks?
Receive and authenticate Pax8 webhooks. Use when setting up a Pax8 partner Webhooks API endpoint, checking the Authorization header Pax8 sends back, debugging 401s, or handling SUBSCRIPTION, INVOICE, CLIENT, PRODUCT, QUOTE and USER topic events such as SUBSCRIPTION CREATE.
Как установить скилл pax8-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pax8-webhooks запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic