[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CHD25QFMJXWMA4Q3A80Y5E":3,"skill-same:01M6CHD25QFMJXWMA4Q3A80Y5E":80},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":42,"linkOnly":43,"markdownContent":44,"markdownBody":45,"frontMatter":46,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":6,"ownerHtmlUrl":56,"ownerBlogUrl":57,"ownerDescription":58,"updatedAt":59,"install":60,"resources":73},"01M6CHD25QFMJXWMA4Q3A80Y5E","apollo-webhooks-events",null,"Implement Apollo.io webhook handling.\nUse when receiving Apollo webhooks, processing event notifications,\nor building event-driven integrations.\nTrigger with phrases like \"apollo webhooks\", \"apollo events\",\n\"apollo notifications\", \"apollo webhook handler\", \"apollo triggers\".","Dicklesworthstone\u002Fpi_agent_rust","Dicklesworthstone","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F35050222?v=4","01M6CG26AR942CSVMN1M5E3DSE","Jeff Emanuel","01M6CG26EPP71PSHW1VDS71121",1992,"MIT","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fapollo-pack\u002Fskills\u002Fapollo-webhooks-events\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41],"events","apollo webhooks events","webhooks","apollo","when","implement","with","event","processing","trigger","io","webhook","triggers","use","edit","write","read","curl","gh","integrations","webhook handling","Bash","notifications","2026-11-10 10:12:30",false,"---\nname: apollo-webhooks-events\ndescription: |\n  Implement Apollo.io webhook handling.\n  Use when receiving Apollo webhooks, processing event notifications,\n  or building event-driven integrations.\n  Trigger with phrases like \"apollo webhooks\", \"apollo events\",\n  \"apollo notifications\", \"apollo webhook handler\", \"apollo triggers\".\nallowed-tools: Read, Write, Edit, Bash(gh:*), Bash(curl:*)\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\n---\n\n# Apollo Webhooks Events\n\n## Overview\nImplement webhook handlers for Apollo.io to receive real-time notifications about contact updates, sequence events, and engagement activities.\n\n## Apollo Webhook Events\n\n| Event Type | Description | Payload Contains |\n|------------|-------------|------------------|\n| `contact.created` | New contact added | Contact data |\n| `contact.updated` | Contact info changed | Updated fields |\n| `sequence.started` | Contact added to sequence | Sequence & contact IDs |\n| `sequence.completed` | Sequence finished | Completion status |\n| `email.sent` | Email delivered | Email & contact info |\n| `email.opened` | Email was opened | Open timestamp |\n| `email.clicked` | Link clicked | Click details |\n| `email.replied` | Reply received | Reply content |\n| `email.bounced` | Email bounced | Bounce reason |\n\n## Webhook Handler Implementation\n\n### Express Handler\n```typescript\n\u002F\u002F src\u002Froutes\u002Fwebhooks\u002Fapollo.ts\nimport { Router } from 'express';\nimport crypto from 'crypto';\nimport { z } from 'zod';\n\nconst router = Router();\n\n\u002F\u002F Webhook payload schemas\nconst ContactEventSchema = z.object({\n  event: z.enum(['contact.created', 'contact.updated']),\n  timestamp: z.string(),\n  data: z.object({\n    contact: z.object({\n      id: z.string(),\n      email: z.string().optional(),\n      name: z.string().optional(),\n      title: z.string().optional(),\n      organization: z.object({\n        name: z.string(),\n      }).optional(),\n    }),\n    changes: z.record(z.any()).optional(),\n  }),\n});\n\nconst SequenceEventSchema = z.object({\n  event: z.enum(['sequence.started', 'sequence.completed', 'sequence.paused']),\n  timestamp: z.string(),\n  data: z.object({\n    sequence_id: z.string(),\n    contact_id: z.string(),\n    status: z.string().optional(),\n  }),\n});\n\nconst EmailEventSchema = z.object({\n  event: z.enum(['email.sent', 'email.opened', 'email.clicked', 'email.replied', 'email.bounced']),\n  timestamp: z.string(),\n  data: z.object({\n    email_id: z.string(),\n    contact_id: z.string(),\n    sequence_id: z.string().optional(),\n    subject: z.string().optional(),\n    link_url: z.string().optional(), \u002F\u002F For click events\n    bounce_reason: z.string().optional(), \u002F\u002F For bounce events\n  }),\n});\n\n\u002F\u002F Verify webhook signature\nfunction verifySignature(payload: string, signature: string, secret: string): boolean {\n  const expectedSignature = crypto\n    .createHmac('sha256', secret)\n    .update(payload)\n    .digest('hex');\n  return crypto.timingSafeEqual(\n    Buffer.from(signature),\n    Buffer.from(expectedSignature)\n  );\n}\n\n\u002F\u002F Middleware for signature verification\nfunction verifyApolloWebhook(req: any, res: any, next: any) {\n  const signature = req.headers['x-apollo-signature'];\n  const webhookSecret = process.env.APOLLO_WEBHOOK_SECRET;\n\n  if (!webhookSecret) {\n    console.error('APOLLO_WEBHOOK_SECRET not configured');\n    return res.status(500).json({ error: 'Webhook secret not configured' });\n  }\n\n  if (!signature) {\n    return res.status(401).json({ error: 'Missing signature' });\n  }\n\n  const rawBody = JSON.stringify(req.body);\n  if (!verifySignature(rawBody, signature, webhookSecret)) {\n    return res.status(401).json({ error: 'Invalid signature' });\n  }\n\n  next();\n}\n\n\u002F\u002F Main webhook endpoint\nrouter.post('\u002Fapollo', verifyApolloWebhook, async (req, res) => {\n  const { event } = req.body;\n\n  try {\n    \u002F\u002F Route to appropriate handler\n    if (event.startsWith('contact.')) {\n      await handleContactEvent(ContactEventSchema.parse(req.body));\n    } else if (event.startsWith('sequence.')) {\n      await handleSequenceEvent(SequenceEventSchema.parse(req.body));\n    } else if (event.startsWith('email.')) {\n      await handleEmailEvent(EmailEventSchema.parse(req.body));\n    } else {\n      console.warn('Unknown event type:', event);\n    }\n\n    res.status(200).json({ received: true });\n  } catch (error: any) {\n    console.error('Webhook processing error:', error);\n    res.status(400).json({ error: error.message });\n  }\n});\n\nexport default router;\n```\n\n### Event Handlers\n```typescript\n\u002F\u002F src\u002Fservices\u002Fwebhooks\u002Fhandlers.ts\nimport { prisma } from '..\u002Fdb';\nimport { publishEvent } from '..\u002Fevents';\n\nexport async function handleContactEvent(payload: any) {\n  const { event, data } = payload;\n\n  switch (event) {\n    case 'contact.created':\n      \u002F\u002F Sync new contact to local database\n      await prisma.contact.upsert({\n        where: { apolloId: data.contact.id },\n        create: {\n          apolloId: data.contact.id,\n          email: data.contact.email,\n          name: data.contact.name,\n          title: data.contact.title,\n          company: data.contact.organization?.name,\n          syncedAt: new Date(),\n        },\n        update: {\n          email: data.contact.email,\n          name: data.contact.name,\n          title: data.contact.title,\n          company: data.contact.organization?.name,\n          syncedAt: new Date(),\n        },\n      });\n\n      await publishEvent('apollo.contact.synced', {\n        contactId: data.contact.id,\n        action: 'created',\n      });\n      break;\n\n    case 'contact.updated':\n      await prisma.contact.update({\n        where: { apolloId: data.contact.id },\n        data: {\n          ...data.changes,\n          syncedAt: new Date(),\n        },\n      });\n\n      await publishEvent('apollo.contact.synced', {\n        contactId: data.contact.id,\n        action: 'updated',\n        changes: data.changes,\n      });\n      break;\n  }\n}\n\nexport async function handleSequenceEvent(payload: any) {\n  const { event, data } = payload;\n\n  switch (event) {\n    case 'sequence.started':\n      await prisma.sequenceEnrollment.create({\n        data: {\n          apolloContactId: data.contact_id,\n          apolloSequenceId: data.sequence_id,\n          status: 'active',\n          startedAt: new Date(),\n        },\n      });\n      break;\n\n    case 'sequence.completed':\n      await prisma.sequenceEnrollment.update({\n        where: {\n          apolloContactId_apolloSequenceId: {\n            apolloContactId: data.contact_id,\n            apolloSequenceId: data.sequence_id,\n          },\n        },\n        data: {\n          status: data.status || 'completed',\n          completedAt: new Date(),\n        },\n      });\n      break;\n  }\n}\n\nexport async function handleEmailEvent(payload: any) {\n  const { event, data, timestamp } = payload;\n\n  \u002F\u002F Record email engagement\n  await prisma.emailEngagement.create({\n    data: {\n      apolloEmailId: data.email_id,\n      apolloContactId: data.contact_id,\n      apolloSequenceId: data.sequence_id,\n      eventType: event.replace('email.', ''),\n      eventData: {\n        subject: data.subject,\n        linkUrl: data.link_url,\n        bounceReason: data.bounce_reason,\n      },\n      occurredAt: new Date(timestamp),\n    },\n  });\n\n  \u002F\u002F Handle specific events\n  if (event === 'email.replied') {\n    \u002F\u002F Notify sales team\n    await publishEvent('apollo.lead.engaged', {\n      contactId: data.contact_id,\n      type: 'reply',\n    });\n  } else if (event === 'email.bounced') {\n    \u002F\u002F Mark contact as bounced\n    await prisma.contact.update({\n      where: { apolloId: data.contact_id },\n      data: { emailStatus: 'bounced' },\n    });\n  }\n}\n```\n\n## Webhook Registration\n\n```typescript\n\u002F\u002F scripts\u002Fregister-webhooks.ts\nimport { apollo } from '..\u002Fsrc\u002Flib\u002Fapollo\u002Fclient';\n\ninterface WebhookConfig {\n  url: string;\n  events: string[];\n  secret: string;\n}\n\nasync function registerWebhook(config: WebhookConfig) {\n  \u002F\u002F Note: Apollo webhook registration is typically done through the UI\n  \u002F\u002F This is a placeholder for future API support\n  console.log('Webhook registration:', config);\n\n  \u002F\u002F For now, provide instructions\n  console.log(`\nTo register webhooks in Apollo:\n\n1. Go to Apollo Settings > Integrations > Webhooks\n2. Click \"Add Webhook\"\n3. Enter URL: ${config.url}\n4. Select events: ${config.events.join(', ')}\n5. Copy the webhook secret and add to your environment:\n   APOLLO_WEBHOOK_SECRET=\u003Csecret>\n  `);\n}\n\nconst webhookConfig: WebhookConfig = {\n  url: `${process.env.APP_URL}\u002Fwebhooks\u002Fapollo`,\n  events: [\n    'contact.created',\n    'contact.updated',\n    'sequence.started',\n    'sequence.completed',\n    'email.sent',\n    'email.opened',\n    'email.clicked',\n    'email.replied',\n    'email.bounced',\n  ],\n  secret: process.env.APOLLO_WEBHOOK_SECRET!,\n};\n\nregisterWebhook(webhookConfig);\n```\n\n## Testing Webhooks\n\n```typescript\n\u002F\u002F tests\u002Fwebhooks\u002Fapollo.test.ts\nimport { describe, it, expect } from 'vitest';\nimport request from 'supertest';\nimport crypto from 'crypto';\nimport app from '..\u002F..\u002Fsrc\u002Fapp';\n\nfunction signPayload(payload: any, secret: string): string {\n  return crypto\n    .createHmac('sha256', secret)\n    .update(JSON.stringify(payload))\n    .digest('hex');\n}\n\ndescribe('Apollo Webhooks', () => {\n  const secret = 'test-webhook-secret';\n\n  beforeAll(() => {\n    process.env.APOLLO_WEBHOOK_SECRET = secret;\n  });\n\n  it('rejects requests without signature', async () => {\n    const response = await request(app)\n      .post('\u002Fwebhooks\u002Fapollo')\n      .send({ event: 'contact.created' });\n\n    expect(response.status).toBe(401);\n  });\n\n  it('rejects requests with invalid signature', async () => {\n    const response = await request(app)\n      .post('\u002Fwebhooks\u002Fapollo')\n      .set('x-apollo-signature', 'invalid')\n      .send({ event: 'contact.created' });\n\n    expect(response.status).toBe(401);\n  });\n\n  it('processes contact.created event', async () => {\n    const payload = {\n      event: 'contact.created',\n      timestamp: new Date().toISOString(),\n      data: {\n        contact: {\n          id: 'test-123',\n          email: 'test@example.com',\n          name: 'Test User',\n        },\n      },\n    };\n\n    const signature = signPayload(payload, secret);\n\n    const response = await request(app)\n      .post('\u002Fwebhooks\u002Fapollo')\n      .set('x-apollo-signature', signature)\n      .send(payload);\n\n    expect(response.status).toBe(200);\n    expect(response.body.received).toBe(true);\n  });\n\n  it('processes email.opened event', async () => {\n    const payload = {\n      event: 'email.opened',\n      timestamp: new Date().toISOString(),\n      data: {\n        email_id: 'email-123',\n        contact_id: 'contact-123',\n        sequence_id: 'seq-123',\n      },\n    };\n\n    const signature = signPayload(payload, secret);\n\n    const response = await request(app)\n      .post('\u002Fwebhooks\u002Fapollo')\n      .set('x-apollo-signature', signature)\n      .send(payload);\n\n    expect(response.status).toBe(200);\n  });\n});\n```\n\n## Local Testing with ngrok\n\n```bash\n# Start local server\nnpm run dev\n\n# In another terminal, start ngrok\nngrok http 3000\n\n# Use the ngrok URL for webhook registration\n# Example: https:\u002F\u002Fabc123.ngrok.io\u002Fwebhooks\u002Fapollo\n```\n\n## Output\n- Webhook endpoint with signature verification\n- Event handlers for all Apollo event types\n- Database sync for contact and engagement data\n- Webhook registration instructions\n- Test suite for webhook validation\n\n## Error Handling\n| Issue | Resolution |\n|-------|------------|\n| Invalid signature | Check webhook secret |\n| Unknown event | Log and acknowledge (200) |\n| Processing error | Log error, return 500 |\n| Duplicate events | Implement idempotency |\n\n## Resources\n- [Apollo Webhooks Documentation](https:\u002F\u002Fknowledge.apollo.io\u002Fhc\u002Fen-us\u002Farticles\u002F4415154183053)\n- [Webhook Security Best Practices](https:\u002F\u002Fhookdeck.com\u002Fwebhooks\u002Fguides\u002Fwebhook-security-best-practices)\n- [ngrok for Local Testing](https:\u002F\u002Fngrok.com\u002F)\n\n## Next Steps\nProceed to `apollo-performance-tuning` for optimization.\n","# Apollo Webhooks Events\n\n## Overview\nImplement webhook handlers for Apollo.io to receive real-time notifications about contact updates, sequence events, and engagement activities.\n\n## Apollo Webhook Events\n\n| Event Type | Description | Payload Contains |\n|------------|-------------|------------------|\n| `contact.created` | New contact added | Contact data |\n| `contact.updated` | Contact info changed | Updated fields |\n| `sequence.started` | Contact added to sequence | Sequence & contact IDs |\n| `sequence.completed` | Sequence finished | Completion status |\n| `email.sent` | Email delivered | Email & contact info |\n| `email.opened` | Email was opened | Open timestamp |\n| `email.clicked` | Link clicked | Click details |\n| `email.replied` | Reply received | Reply content |\n| `email.bounced` | Email bounced | Bounce reason |\n\n## Webhook Handler Implementation\n\n### Express Handler\n```typescript\n\u002F\u002F src\u002Froutes\u002Fwebhooks\u002Fapollo.ts\nimport { Router } from 'express';\nimport crypto from 'crypto';\nimport { z } from 'zod';\n\nconst router = Router();\n\n\u002F\u002F Webhook payload schemas\nconst ContactEventSchema = z.object({\n  event: z.enum(['contact.created', 'contact.updated']),\n  timestamp: z.string(),\n  data: z.object({\n    contact: z.object({\n      id: z.string(),\n      email: z.string().optional(),\n      name: z.string().optional(),\n      title: z.string().optional(),\n      organization: z.object({\n        name: z.string(),\n      }).optional(),\n    }),\n    changes: z.record(z.any()).optional(),\n  }),\n});\n\nconst SequenceEventSchema = z.object({\n  event: z.enum(['sequence.started', 'sequence.completed', 'sequence.paused']),\n  timestamp: z.string(),\n  data: z.object({\n    sequence_id: z.string(),\n    contact_id: z.string(),\n    status: z.string().optional(),\n  }),\n});\n\nconst EmailEventSchema = z.object({\n  event: z.enum(['email.sent', 'email.opened', 'email.clicked', 'email.replied', 'email.bounced']),\n  timestamp: z.string(),\n  data: z.object({\n    email_id: z.string(),\n    contact_id: z.string(),\n    sequence_id: z.string().optional(),\n    subject: z.string().optional(),\n    link_url: z.string().optional(), \u002F\u002F For click events\n    bounce_reason: z.string().optional(), \u002F\u002F For bounce events\n  }),\n});\n\n\u002F\u002F Verify webhook signature\nfunction verifySignature(payload: string, signature: string, secret: string): boolean {\n  const expectedSignature = crypto\n    .createHmac('sha256', secret)\n    .update(payload)\n    .digest('hex');\n  return crypto.timingSafeEqual(\n    Buffer.from(signature),\n    Buffer.from(expectedSignature)\n  );\n}\n\n\u002F\u002F Middleware for signature verification\nfunction verifyApolloWebhook(req: any, res: any, next: any) {\n  const signature = req.headers['x-apollo-signature'];\n  const webhookSecret = process.env.APOLLO_WEBHOOK_SECRET;\n\n  if (!webhookSecret) {\n    console.error('APOLLO_WEBHOOK_SECRET not configured');\n    return res.status(500).json({ error: 'Webhook secret not configured' });\n  }\n\n  if (!signature) {\n    return res.status(401).json({ error: 'Missing signature' });\n  }\n\n  const rawBody = JSON.stringify(req.body);\n  if (!verifySignature(rawBody, signature, webhookSecret)) {\n    return res.status(401).json({ error: 'Invalid signature' });\n  }\n\n  next();\n}\n\n\u002F\u002F Main webhook endpoint\nrouter.post('\u002Fapollo', verifyApolloWebhook, async (req, res) => {\n  const { event } = req.body;\n\n  try {\n    \u002F\u002F Route to appropriate handler\n    if (event.startsWith('contact.')) {\n      await handleContactEvent(ContactEventSchema.parse(req.body));\n    } else if (event.startsWith('sequence.')) {\n      await handleSequenceEvent(SequenceEventSchema.parse(req.body));\n    } else if (event.startsWith('email.')) {\n      await handleEmailEvent(EmailEventSchema.parse(req.body));\n    } else {\n      console.warn('Unknown event type:', event);\n    }\n\n    res.status(200).json({ received: true });\n  } catch (error: any) {\n    console.error('Webhook processing error:', error);\n    res.status(400).json({ error: error.message });\n  }\n});\n\nexport default router;\n```\n\n### Event Handlers\n```typescript\n\u002F\u002F src\u002Fservices\u002Fwebhooks\u002Fhandlers.ts\nimport { prisma } from '..\u002Fdb';\nimport { publishEvent } from '..\u002Fevents';\n\nexport async function handleContactEvent(payload: any) {\n  const { event, data } = payload;\n\n  switch (event) {\n    case 'contact.created':\n      \u002F\u002F Sync new contact to local database\n      await prisma.contact.upsert({\n        where: { apolloId: data.contact.id },\n        create: {\n          apolloId: data.contact.id,\n          email: data.contact.email,\n          name: data.contact.name,\n          title: data.contact.title,\n          company: data.contact.organization?.name,\n          syncedAt: new Date(),\n        },\n        update: {\n          email: data.contact.email,\n          name: data.contact.name,\n          title: data.contact.title,\n          company: data.contact.organization?.name,\n          syncedAt: new Date(),\n        },\n      });\n\n      await publishEvent('apollo.contact.synced', {\n        contactId: data.contact.id,\n        action: 'created',\n      });\n      break;\n\n    case 'contact.updated':\n      await prisma.contact.update({\n        where: { apolloId: data.contact.id },\n        data: {\n          ...data.changes,\n          syncedAt: new Date(),\n        },\n      });\n\n      await publishEvent('apollo.contact.synced', {\n        contactId: data.contact.id,\n        action: 'updated',\n        changes: data.changes,\n      });\n      break;\n  }\n}\n\nexport async function handleSequenceEvent(payload: any) {\n  const { event, data } = payload;\n\n  switch (event) {\n    case 'sequence.started':\n      await prisma.sequenceEnrollment.create({\n        data: {\n          apolloContactId: data.contact_id,\n          apolloSequenceId: data.sequence_id,\n          status: 'active',\n          startedAt: new Date(),\n        },\n      });\n      break;\n\n    case 'sequence.completed':\n      await prisma.sequenceEnrollment.update({\n        where: {\n          apolloContactId_apolloSequenceId: {\n            apolloContactId: data.contact_id,\n            apolloSequenceId: data.sequence_id,\n          },\n        },\n        data: {\n          status: data.status || 'completed',\n          completedAt: new Date(),\n        },\n      });\n      break;\n  }\n}\n\nexport async function handleEmailEvent(payload: any) {\n  const { event, data, timestamp } = payload;\n\n  \u002F\u002F Record email engagement\n  await prisma.emailEngagement.create({\n    data: {\n      apolloEmailId: data.email_id,\n      apolloContactId: data.contact_id,\n      apolloSequenceId: data.sequence_id,\n      eventType: event.replace('email.', ''),\n      eventData: {\n        subject: data.subject,\n        linkUrl: data.link_url,\n        bounceReason: data.bounce_reason,\n      },\n      occurredAt: new Date(timestamp),\n    },\n  });\n\n  \u002F\u002F Handle specific events\n  if (event === 'email.replied') {\n    \u002F\u002F Notify sales team\n    await publishEvent('apollo.lead.engaged', {\n      contactId: data.contact_id,\n      type: 'reply',\n    });\n  } else if (event === 'email.bounced') {\n    \u002F\u002F Mark contact as bounced\n    await prisma.contact.update({\n      where: { apolloId: data.contact_id },\n      data: { emailStatus: 'bounced' },\n    });\n  }\n}\n```\n\n## Webhook Registration\n\n```typescript\n\u002F\u002F scripts\u002Fregister-webhooks.ts\nimport { apollo } from '..\u002Fsrc\u002Flib\u002Fapollo\u002Fclient';\n\ninterface WebhookConfig {\n  url: string;\n  events: string[];\n  secret: string;\n}\n\nasync function registerWebhook(config: WebhookConfig) {\n  \u002F\u002F Note: Apollo webhook registration is typically done through the UI\n  \u002F\u002F This is a placeholder for future API support\n  console.log('Webhook registration:', config);\n\n  \u002F\u002F For now, provide instructions\n  console.log(`\nTo register webhooks in Apollo:\n\n1. Go to Apollo Settings > Integrations > Webhooks\n2. Click \"Add Webhook\"\n3. Enter URL: ${config.url}\n4. Select events: ${config.events.join(', ')}\n5. Copy the webhook secret and add to your environment:\n   APOLLO_WEBHOOK_SECRET=\u003Csecret>\n  `);\n}\n\nconst webhookConfig: WebhookConfig = {\n  url: `${process.env.APP_URL}\u002Fwebhooks\u002Fapollo`,\n  events: [\n    'contact.created',\n    'contact.updated',\n    'sequence.started',\n    'sequence.completed',\n    'email.sent',\n    'email.opened',\n    'email.clicked',\n    'email.replied',\n    'email.bounced',\n  ],\n  secret: process.env.APOLLO_WEBHOOK_SECRET!,\n};\n\nregisterWebhook(webhookConfig);\n```\n\n## Testing Webhooks\n\n```typescript\n\u002F\u002F tests\u002Fwebhooks\u002Fapollo.test.ts\nimport { describe, it, expect } from 'vitest';\nimport request from 'supertest';\nimport crypto from 'crypto';\nimport app from '..\u002F..\u002Fsrc\u002Fapp';\n\nfunction signPayload(payload: any, secret: string): string {\n  return crypto\n    .createHmac('sha256', secret)\n    .update(JSON.stringify(payload))\n    .digest('hex');\n}\n\ndescribe('Apollo Webhooks', () => {\n  const secret = 'test-webhook-secret';\n\n  beforeAll(() => {\n    process.env.APOLLO_WEBHOOK_SECRET = secret;\n  });\n\n  it('rejects requests without signature', async () => {\n    const response = await request(app)\n      .post('\u002Fwebhooks\u002Fapollo')\n      .send({ event: 'contact.created' });\n\n    expect(response.status).toBe(401);\n  });\n\n  it('rejects requests with invalid signature', async () => {\n    const response = await request(app)\n      .post('\u002Fwebhooks\u002Fapollo')\n      .set('x-apollo-signature', 'invalid')\n      .send({ event: 'contact.created' });\n\n    expect(response.status).toBe(401);\n  });\n\n  it('processes contact.created event', async () => {\n    const payload = {\n      event: 'contact.created',\n      timestamp: new Date().toISOString(),\n      data: {\n        contact: {\n          id: 'test-123',\n          email: 'test@example.com',\n          name: 'Test User',\n        },\n      },\n    };\n\n    const signature = signPayload(payload, secret);\n\n    const response = await request(app)\n      .post('\u002Fwebhooks\u002Fapollo')\n      .set('x-apollo-signature', signature)\n      .send(payload);\n\n    expect(response.status).toBe(200);\n    expect(response.body.received).toBe(true);\n  });\n\n  it('processes email.opened event', async () => {\n    const payload = {\n      event: 'email.opened',\n      timestamp: new Date().toISOString(),\n      data: {\n        email_id: 'email-123',\n        contact_id: 'contact-123',\n        sequence_id: 'seq-123',\n      },\n    };\n\n    const signature = signPayload(payload, secret);\n\n    const response = await request(app)\n      .post('\u002Fwebhooks\u002Fapollo')\n      .set('x-apollo-signature', signature)\n      .send(payload);\n\n    expect(response.status).toBe(200);\n  });\n});\n```\n\n## Local Testing with ngrok\n\n```bash\n# Start local server\nnpm run dev\n\n# In another terminal, start ngrok\nngrok http 3000\n\n# Use the ngrok URL for webhook registration\n# Example: https:\u002F\u002Fabc123.ngrok.io\u002Fwebhooks\u002Fapollo\n```\n\n## Output\n- Webhook endpoint with signature verification\n- Event handlers for all Apollo event types\n- Database sync for contact and engagement data\n- Webhook registration instructions\n- Test suite for webhook validation\n\n## Error Handling\n| Issue | Resolution |\n|-------|------------|\n| Invalid signature | Check webhook secret |\n| Unknown event | Log and acknowledge (200) |\n| Processing error | Log error, return 500 |\n| Duplicate events | Implement idempotency |\n\n## Resources\n- [Apollo Webhooks Documentation](https:\u002F\u002Fknowledge.apollo.io\u002Fhc\u002Fen-us\u002Farticles\u002F4415154183053)\n- [Webhook Security Best Practices](https:\u002F\u002Fhookdeck.com\u002Fwebhooks\u002Fguides\u002Fwebhook-security-best-practices)\n- [ngrok for Local Testing](https:\u002F\u002Fngrok.com\u002F)\n\n## Next Steps\nProceed to `apollo-performance-tuning` for optimization.\n",{"name":5,"author":47,"license":15,"version":48,"description":49,"allowed-tools":50},"Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Implement Apollo.io webhook handling.\nUse when receiving Apollo webhooks, processing event notifications,\nor building event-driven integrations.\nTrigger with phrases like \"apollo webhooks\", \"apollo events\",\n\"apollo notifications\", \"apollo webhook handler\", \"apollo triggers\".\n","Read, Write, Edit, Bash(gh:*), Bash(curl:*)","main","7439377908fdee98c9bb5863391212b95453de95","tests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fapollo-pack\u002Fskills\u002Fapollo-webhooks-events",233,"https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust","https:\u002F\u002Fgithub.com\u002FDicklesworthstone","https:\u002F\u002Fwww.jeffreyemanuel.com\u002F","Building in NY","2026-11-15 01:54:15",{"source":8,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add Dicklesworthstone\u002Fpi_agent_rust --skill apollo-webhooks-events",{"tool":66,"command":67},"bunx","bunx skills add Dicklesworthstone\u002Fpi_agent_rust --skill apollo-webhooks-events",{"tool":69,"command":70},"pnpm","pnpm dlx skills add Dicklesworthstone\u002Fpi_agent_rust --skill apollo-webhooks-events","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Fplugins-community\u002Fplugins\u002Fsaas-packs\u002Fapollo-pack\u002Fskills\u002Fapollo-webhooks-events\u002FSKILL.md",true,[74],{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"testing.md","REFERENCE","参考文档",16815,"https:\u002F\u002Fgithub.com\u002Fboisenoise\u002Fskills-collections\u002Fblob\u002Fmain\u002Fskills\u002Frails-rails-testing\u002Ftesting.md",[81,109,141,160,186,209],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":86,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":108},"01M6FCR7G5A005P364Z6ZWCJDP","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 colors\u002Ffonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fcreative-design\u002Ftheme-factory\u002FSKILL.md",[],[90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,25,106,107],"theme factory","factory","theme","docs","toolkit","generate","artifacts","SET","fly","slides","landing","html","styling","artifact","pages","themes","you","fonts","2026-11-11 15:11:14",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":113,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":42},"01M6FEGPPK0ZTKCCM0R3E3KS33","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Futilities\u002Fweb-artifacts-builder\u002FSKILL.md",[],[117,118,96,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,32,101,134,135,136,137,138,139,140],"web artifacts builder","web","artifacts builder","builder","frontend","css","components","react","component","routing","state management","state","shadcn","file","ui","Tools","Tailwind","single-file","simple","ui components","multi","for","jsx","suite",{"skillNo":142,"name":143,"nameZh":6,"description":144,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":145,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":42},"01M6FEE9VTK1W4GY21AKREJXRG","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fsecurity\u002Fwebapp-testing\u002FSKILL.md",[],[149,150,151,121,152,153,118,154,94,155,131,156,157,158,159,25,138],"testing","webapp testing","webapp","screenshots","playwright","debugging","browser","logs","applications","behavior","local",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":164,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":42},"01M6FE20F7ZTQBFWKF4MPJ2SBX","neuropixels-analysis","Neuropixels neural recording analysis. Load SpikeGLX\u002FOpenEphys data, preprocess, motion correction, Kilosort4 spike sorting, quality metrics, Allen\u002FIBL curation, AI-assisted visual analysis, for Neuropixels 1.0\u002F2.0 extracellular electrophysiology. Use when working with neural recordings, spike sorting, extracellular electrophysiology, or when the user mentions Neuropixels, SpikeGLX, Open Ephys, Kilosort, quality metrics, or unit curation.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fscientific\u002Fneuropixels-analysis\u002FSKILL.md",[],[168,169,170,171,172,173,174,175,32,176,177,178,179,180,181,182,25,183,184,185,138,23],"analysis","neuropixels analysis","spike","metrics","data","open","quality","user","recordings","Neural","motion","visual","quality metrics","unit","sorting","curation","recording","load",{"skillNo":187,"name":188,"nameZh":6,"description":189,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":85,"licenseFileUrl":190,"sourceHtmlUrl":191,"categories":192,"keywords":193,"publishedAt":42},"01M6FDP0PDK6F1GGX395C7625Z","skill-creator","Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Claude's capabilities with specialized knowledge, workflows, or tool integrations.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fskill-creator\u002FSKILL.md",[],[194,195,196,197,198,199,200,201,38,202,203,204,205,206,25,138,207,23,208],"skill creator","creator","workflows","create","update","capabilities","knowledge","tool","specialized","guide","new skill","existing skill","users","Existing","new",{"skillNo":210,"name":211,"nameZh":6,"description":212,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":213,"sourceHtmlUrl":214,"categories":215,"keywords":216,"publishedAt":42},"01M6FDM8Y7VK7NYG9SM7QPA3PW","notebooklm","Use this skill to query your Google NotebookLM notebooks directly from Claude Code for source-grounded, citation-backed answers from Gemini. Browser automation, library management, persistent auth. Drastically reduced hallucinations through document-only responses.","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FDicklesworthstone\u002Fpi_agent_rust\u002Fblob\u002Fmain\u002Ftests\u002Fext_conformance\u002Fartifacts\u002Ftemplates-davila7\u002Fcli-tool\u002Fcomponents\u002Fskills\u002Fproductivity\u002Fnotebooklm\u002FSKILL.md",[],[211,217,218,219,220,221,222,155,223,224,32,225,226,227,228,138,229],"google","browser automation","gemini","automation","auth","code","library","management","only","document","query","Citation","source"]