hex-webhooks-events

Featured

Implement Hex webhook signature validation and event handling. Use when setting up webhook endpoints, implementing signature verification, or handling Hex event notifications securely. Trigger with phrases like "hex webhook", "hex events", "hex webhook signature", "handle hex events", "hex notifications".

AI & Automation 2,926 stars 433 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 97/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
70
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Hex Webhooks & Events ## Overview Hex doesn't provide push webhooks. For event-driven integrations, poll run status or build your own notification system around run completions. ## Instructions ### Run Status Polling with Callback ```typescript async function runWithCallback( client: HexClient, projectId: string, params: Record<string, any>, onComplete: (result: any) => void, onError: (error: Error) => void ) { try { const { runId } = await client.runProject(projectId, params); const poll = async () => { const status = await client.getRunStatus(projectId, runId); if (status.status === 'COMPLETED') { onComplete(status); return; } if (status.status === 'ERRORED' || status.status === 'KILLED') { onError(new Error(status.status)); return; } setTimeout(poll, 5000); }; poll(); } catch (err) { onError(err as Error); } } ``` ### Notify on Completion ```typescript runWithCallback(client, 'project-id', { date: '2025-01-01' }, (result) => { // Send Slack notification, email, etc. fetch(process.env.SLACK_WEBHOOK_URL!, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ text: `Hex project completed: ${result.runId}` }), }); }, (error) => console.error('Run failed:', error) ); ``` ## Resources - [Hex API](https://learn.hex.tech/docs/api/api-reference)

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
1 years ago
Last Updated
yesterday
Language
Python
License
MIT

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category