juicebox-webhooks-events
Guides on registering and verifying Juicebox webhooks to receive real-time notifications for analysis and export events.
Install
mkdir -p .claude/skills/juicebox-webhooks-events && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/5370" && unzip -o skill.zip -d .claude/skills/juicebox-webhooks-events && rm skill.zipInstalls to .claude/skills/juicebox-webhooks-events
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Handle Juicebox webhooks and events.Key capabilities
- →Register webhooks for Juicebox events
- →Verify webhook request signatures for security
- →Handle different types of Juicebox events
- →Process analysis completion events
- →Manage idempotency for event processing
How it works
The skill registers a webhook URL with Juicebox to receive event notifications. It then verifies the signature of incoming requests and processes events based on their type, such as 'analysis.completed' or 'export.ready'.
Inputs & outputs
When to use juicebox-webhooks-events
- →Setting up webhooks for analysis completion events
- →Verifying request signatures for secure webhook endpoints
- →Building automated notification pipelines for export readiness
About this skill
Juicebox Webhooks & Events
Overview
Juicebox delivers webhook notifications for AI-powered people search and analysis workflows. Subscribe to events for completed analyses, updated datasets, ready exports, and quota warnings to build automated pipelines that react to Juicebox intelligence in real time without polling the API.
Webhook Registration
const response = await fetch("https://api.juicebox.ai/v1/webhooks", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.JUICEBOX_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
url: "https://yourapp.com/webhooks/juicebox",
events: ["analysis.completed", "dataset.updated", "export.ready", "quota.warning"],
secret: process.env.JUICEBOX_WEBHOOK_SECRET,
}),
});
Signature Verification
import crypto from "crypto";
import { Request, Response, NextFunction } from "express";
function verifyJuiceboxSignature(req: Request, res: Response, next: NextFunction) {
const signature = req.headers["x-juicebox-signature"] as string;
const expected = crypto.createHmac("sha256", process.env.JUICEBOX_WEBHOOK_SECRET!)
.update(req.body).digest("hex");
if (!crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(expected))) {
return res.status(401).json({ error: "Invalid signature" });
}
next();
}
Event Handler
import express from "express";
const app = express();
app.post("/webhooks/juicebox", express.raw({ type: "application/json" }), verifyJuiceboxSignature, (req, res) => {
const event = JSON.parse(req.body.toString());
res.status(200).json({ received: true });
switch (event.type) {
case "analysis.completed":
fetchResults(event.data.analysis_id, event.data.result_count); break;
case "dataset.updated":
refreshDashboard(event.data.dataset_id, event.data.records_added); break;
case "export.ready":
downloadExport(event.data.export_id, event.data.download_url); break;
case "quota.warning":
notifyAdmin(event.data.usage_percent, event.data.reset_date); break;
}
});
Event Types
| Event | Payload Fields | Use Case |
|---|---|---|
analysis.completed | analysis_id, result_count, query | Fetch and process search results |
dataset.updated | dataset_id, records_added, total_records | Refresh downstream dashboards |
export.ready | export_id, download_url, format | Auto-download CSV/JSON exports |
quota.warning | usage_percent, reset_date, plan_tier | Alert admin before limit hit |
search.alert | alert_id, new_matches, criteria | Notify on new candidate matches |
Retry & Idempotency
const processed = new Set<string>();
async function handleIdempotent(event: { id: string; type: string; data: any }) {
if (processed.has(event.id)) return;
await routeEvent(event);
processed.add(event.id);
if (processed.size > 10_000) {
const entries = Array.from(processed);
entries.slice(0, entries.length - 10_000).forEach((id) => processed.delete(id));
}
}
Error Handling
| Issue | Cause | Fix |
|---|---|---|
| Signature mismatch | Secret rotated without updating handler | Re-fetch secret from Juicebox dashboard |
Empty result_count | Analysis timed out | Check analysis status before processing |
| Export link expired | Download URL has 1-hour TTL | Fetch immediately on export.ready event |
| Quota exceeded | API calls after limit hit | Implement backoff until reset_date |
Resources
- Juicebox API Docs
Next Steps
See juicebox-security-basics.
When not to use it
- →When the webhook secret is rotated without updating the handler
- →When an export link has expired due to a 1-hour TTL
Prerequisites
Limitations
- →Signature mismatch occurs if the secret is not updated
- →Analysis may time out, resulting in an empty result_count
- →Export download URLs expire after one hour
How it compares
This skill enables real-time, event-driven automation with Juicebox, eliminating the need for continuous API polling.
Compared to similar skills
juicebox-webhooks-events side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| juicebox-webhooks-events (this skill) | 1 | 27d | Review | Intermediate |
| telegram-bot-builder | 106 | 6mo | Review | Intermediate |
| n8n-expression-syntax | 6 | 4mo | No flags | Beginner |
| reddit-api | 3 | 4mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by jeremylongshore
View all by jeremylongshore →You might also like
telegram-bot-builder
davila7
Expert in building Telegram bots that solve real problems - from simple automation to complex AI-powered bots. Covers bot architecture, the Telegram Bot API, user experience, monetization strategies, and scaling bots to thousands of users. Use when: telegram bot, bot api, telegram automation, chat bot telegram, tg bot.
n8n-expression-syntax
czlonkowski
Validate n8n expression syntax and fix common errors. Use when writing n8n expressions, using {{}} syntax, accessing $json/$node variables, troubleshooting expression errors, or working with webhook data in workflows.
reddit-api
alinaqi
Reddit API with PRAW (Python) and Snoowrap (Node.js)
mcporter
openclaw
Use the mcporter CLI to list, configure, auth, and call MCP servers/tools directly (HTTP or stdio), including ad-hoc servers, config edits, and CLI/type generation.
calcom-api
calcom
Interact with the Cal.com API v2 to manage scheduling, bookings, event types, availability, and calendars. Use this skill when building integrations that need to create or manage bookings, check availability, configure event types, or sync calendars with Cal.com's scheduling infrastructure.
instantly-webhooks-events
jeremylongshore
Implement Instantly webhook signature validation and event handling. Use when setting up webhook endpoints, implementing signature verification, or handling Instantly event notifications securely. Trigger with phrases like "instantly webhook", "instantly events", "instantly webhook signature", "handle instantly events", "instantly notifications".