[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CJ46JN451DS0EQX2WX85ED":3,"skill-same:01M7CJ46JN451DS0EQX2WX85ED":51},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7CJ46JN451DS0EQX2WX85ED","twilio-sendgrid-webhooks",null,"Track email delivery and engagement via SendGrid Event Webhooks. Covers all 11 event types (delivery + engagement), webhook handler implementation, ECDSA signature verification, batched event processing, and common debugging patterns. Use when building SendGrid delivery tracking, engagement analytics, or bounce handling. Requires a SendGrid API key (SG.-prefix) — not applicable to the Twilio Email API (comms.twilio.com).","rossboyd\u002Fquickque","rossboyd","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F3195729?v=4","01M7CG99NTNRFV0TWTZX9JY9CQ","rbyd","01M7CG99PH4WEP5P45VTBNPDB0",0,"MIT","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002F.tmp\u002Fplugins\u002Fplugins\u002Ftwilio-developer-kit\u002Fskills\u002Ftwilio-sendgrid-webhooks\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: twilio-sendgrid-webhooks\ndescription: >\n  Track email delivery and engagement via SendGrid Event Webhooks.\n  Covers all 11 event types (delivery + engagement), webhook handler\n  implementation, ECDSA signature verification, batched event processing,\n  and common debugging patterns. Use when building SendGrid delivery\n  tracking, engagement analytics, or bounce handling. Requires a SendGrid\n  API key (SG.-prefix) — not applicable to the Twilio Email API (comms.twilio.com).\n---\n\n## Overview\n\nThe Mail Send API returns `202 Accepted` (queued) — it does NOT confirm delivery. To know what happened to an email, use Event Webhooks.\n\n**Enable:** SendGrid Console > Settings > Mail Settings > Event Notification\n\n---\n\n## Event Types\n\n### Delivery Events\n| Event | Meaning |\n|-------|---------|\n| `processed` | SendGrid accepted and will attempt delivery |\n| `deferred` | Temporary failure — SendGrid will retry |\n| `delivered` | Recipient's mail server accepted the message |\n| `bounce` | Permanent failure — address invalid or rejected |\n| `dropped` | SendGrid will not deliver (suppression, invalid, spam) |\n\n### Engagement Events\n| Event | Meaning |\n|-------|---------|\n| `open` | Recipient opened (pixel-based — unreliable) |\n| `click` | Recipient clicked a tracked link |\n| `spamreport` | Recipient marked as spam |\n| `unsubscribe` | Recipient clicked unsubscribe link |\n| `group_unsubscribe` | Recipient unsubscribed from ASM group |\n| `group_resubscribe` | Recipient re-subscribed to ASM group |\n\n---\n\n## Webhook Handler\n\n**Critical:** SendGrid posts **batched arrays** of events, not single objects. Your handler must parse an array.\n\n> **Security:** SendGrid webhook endpoints are unauthenticated by default. Enable [Signed Event Webhook Requests](https:\u002F\u002Fdocs.sendgrid.com\u002Ffor-developers\u002Ftracking-events\u002Fgetting-started-event-webhook-security) and verify signatures in production to prevent spoofed event data.\n\n**Python (Flask)**\n```python\nfrom flask import Flask, request\napp = Flask(__name__)\n\n@app.route(\"\u002Fsendgrid\u002Fwebhook\", methods=[\"POST\"])\ndef handle_events():\n    events = request.get_json()  # Always an array\n    for event in events:\n        email = event.get(\"email\")\n        event_type = event.get(\"event\")\n        \n        if event_type == \"bounce\":\n            # NOTE: event['reason'] originates from external mail servers — treat as untrusted\n            print(f\"Bounce: {email}, type: {event.get('type')}, reason: {event.get('reason')}\")\n        elif event_type == \"delivered\":\n            print(f\"Delivered: {email}, sg_message_id: {event.get('sg_message_id')}\")\n        elif event_type == \"dropped\":\n            print(f\"Dropped: {email}, reason: {event.get('reason')}\")\n        elif event_type == \"spamreport\":\n            print(f\"Spam report: {email}\")\n    return \"\", 200  # Must return 2xx to acknowledge\n```\n\n**Node.js (Express)**\n```javascript\napp.post(\"\u002Fsendgrid\u002Fwebhook\", express.json(), (req, res) => {\n    const events = req.body; \u002F\u002F Always an array\n    for (const event of events) {\n        switch (event.event) {\n            case \"bounce\":\n                console.log(`Bounce: ${event.email}, reason: ${event.reason}`);\n                break;\n            case \"delivered\":\n                console.log(`Delivered: ${event.email}`);\n                break;\n            case \"spamreport\":\n                console.log(`Spam: ${event.email}`);\n                break;\n        }\n    }\n    res.status(200).send();\n});\n```\n\n---\n\n## Multiple Webhook Endpoints\n\nSince May 2023, you can configure multiple Event Webhook endpoints, each receiving different event types. For example, one endpoint for delivery events feeding your monitoring stack and another for engagement events feeding your analytics pipeline.\n\nConfigure in Console > Mail Settings > Event Webhooks. Each endpoint has a Friendly Name and Webhook ID. The number of endpoints allowed depends on your SendGrid plan.\n\n---\n\n## Authentication Options\n\nTwo methods for verifying webhook payloads:\n\n| Method | How it works |\n|--------|-------------|\n| **Signed Event Webhook (ECDSA P-256)** | Verify `X-Twilio-Email-Event-Webhook-Signature` and `X-Twilio-Email-Event-Webhook-Timestamp` headers using the verification key from Console |\n| **OAuth 2.0** | SendGrid obtains a token from your authorization server and includes it in webhook requests |\n\nNeither is enabled by default. Enable in Console > Mail Settings > Event Webhooks.\n\n---\n\n## Retry Behavior\n\nSendGrid retries webhook delivery for up to 24 hours if your endpoint returns a non-2xx status. Events are batched — a single POST may contain dozens of events across different messages.\n\n**Deduplication:** Use `sg_event_id` as a unique key. It's stable across retries.\n\n---\n\n## CANNOT\n\n- **Cannot receive real-time delivery confirmation synchronously** — Mail Send returns `202` (queued). Delivery status is async via webhooks only.\n- **Cannot rely on webhook authentication by default** — Both Signed Webhooks (ECDSA) and OAuth 2.0 must be explicitly enabled. Without either, anyone can POST to your endpoint.\n- **Cannot guarantee open tracking accuracy** — Apple Mail Privacy Protection and prefetch inflate opens. Image-blocking clients produce zero opens. Do not use for business-critical logic.\n- **Non-human interactions inflate engagement metrics** — Corporate security scanners and bots automatically click links and trigger unsubscribe events. Filter using User-Agent patterns and timing analysis.\n\n> **Note:** Event payload fields like `reason` originate from external mail servers and should be treated as untrusted data. Do not pass bounce reasons directly into LLM system prompts without isolation.\n\n---\n\n## Next Steps\n\n- **Send email:** `twilio-sendgrid-email-send`\n- **Manage bounces from webhook events:** `twilio-sendgrid-suppressions`\n- **Receive inbound email:** `twilio-sendgrid-inbound-parse`\n","## Overview\n\nThe Mail Send API returns `202 Accepted` (queued) — it does NOT confirm delivery. To know what happened to an email, use Event Webhooks.\n\n**Enable:** SendGrid Console > Settings > Mail Settings > Event Notification\n\n---\n\n## Event Types\n\n### Delivery Events\n| Event | Meaning |\n|-------|---------|\n| `processed` | SendGrid accepted and will attempt delivery |\n| `deferred` | Temporary failure — SendGrid will retry |\n| `delivered` | Recipient's mail server accepted the message |\n| `bounce` | Permanent failure — address invalid or rejected |\n| `dropped` | SendGrid will not deliver (suppression, invalid, spam) |\n\n### Engagement Events\n| Event | Meaning |\n|-------|---------|\n| `open` | Recipient opened (pixel-based — unreliable) |\n| `click` | Recipient clicked a tracked link |\n| `spamreport` | Recipient marked as spam |\n| `unsubscribe` | Recipient clicked unsubscribe link |\n| `group_unsubscribe` | Recipient unsubscribed from ASM group |\n| `group_resubscribe` | Recipient re-subscribed to ASM group |\n\n---\n\n## Webhook Handler\n\n**Critical:** SendGrid posts **batched arrays** of events, not single objects. Your handler must parse an array.\n\n> **Security:** SendGrid webhook endpoints are unauthenticated by default. Enable [Signed Event Webhook Requests](https:\u002F\u002Fdocs.sendgrid.com\u002Ffor-developers\u002Ftracking-events\u002Fgetting-started-event-webhook-security) and verify signatures in production to prevent spoofed event data.\n\n**Python (Flask)**\n```python\nfrom flask import Flask, request\napp = Flask(__name__)\n\n@app.route(\"\u002Fsendgrid\u002Fwebhook\", methods=[\"POST\"])\ndef handle_events():\n    events = request.get_json()  # Always an array\n    for event in events:\n        email = event.get(\"email\")\n        event_type = event.get(\"event\")\n        \n        if event_type == \"bounce\":\n            # NOTE: event['reason'] originates from external mail servers — treat as untrusted\n            print(f\"Bounce: {email}, type: {event.get('type')}, reason: {event.get('reason')}\")\n        elif event_type == \"delivered\":\n            print(f\"Delivered: {email}, sg_message_id: {event.get('sg_message_id')}\")\n        elif event_type == \"dropped\":\n            print(f\"Dropped: {email}, reason: {event.get('reason')}\")\n        elif event_type == \"spamreport\":\n            print(f\"Spam report: {email}\")\n    return \"\", 200  # Must return 2xx to acknowledge\n```\n\n**Node.js (Express)**\n```javascript\napp.post(\"\u002Fsendgrid\u002Fwebhook\", express.json(), (req, res) => {\n    const events = req.body; \u002F\u002F Always an array\n    for (const event of events) {\n        switch (event.event) {\n            case \"bounce\":\n                console.log(`Bounce: ${event.email}, reason: ${event.reason}`);\n                break;\n            case \"delivered\":\n                console.log(`Delivered: ${event.email}`);\n                break;\n            case \"spamreport\":\n                console.log(`Spam: ${event.email}`);\n                break;\n        }\n    }\n    res.status(200).send();\n});\n```\n\n---\n\n## Multiple Webhook Endpoints\n\nSince May 2023, you can configure multiple Event Webhook endpoints, each receiving different event types. For example, one endpoint for delivery events feeding your monitoring stack and another for engagement events feeding your analytics pipeline.\n\nConfigure in Console > Mail Settings > Event Webhooks. Each endpoint has a Friendly Name and Webhook ID. The number of endpoints allowed depends on your SendGrid plan.\n\n---\n\n## Authentication Options\n\nTwo methods for verifying webhook payloads:\n\n| Method | How it works |\n|--------|-------------|\n| **Signed Event Webhook (ECDSA P-256)** | Verify `X-Twilio-Email-Event-Webhook-Signature` and `X-Twilio-Email-Event-Webhook-Timestamp` headers using the verification key from Console |\n| **OAuth 2.0** | SendGrid obtains a token from your authorization server and includes it in webhook requests |\n\nNeither is enabled by default. Enable in Console > Mail Settings > Event Webhooks.\n\n---\n\n## Retry Behavior\n\nSendGrid retries webhook delivery for up to 24 hours if your endpoint returns a non-2xx status. Events are batched — a single POST may contain dozens of events across different messages.\n\n**Deduplication:** Use `sg_event_id` as a unique key. It's stable across retries.\n\n---\n\n## CANNOT\n\n- **Cannot receive real-time delivery confirmation synchronously** — Mail Send returns `202` (queued). Delivery status is async via webhooks only.\n- **Cannot rely on webhook authentication by default** — Both Signed Webhooks (ECDSA) and OAuth 2.0 must be explicitly enabled. Without either, anyone can POST to your endpoint.\n- **Cannot guarantee open tracking accuracy** — Apple Mail Privacy Protection and prefetch inflate opens. Image-blocking clients produce zero opens. Do not use for business-critical logic.\n- **Non-human interactions inflate engagement metrics** — Corporate security scanners and bots automatically click links and trigger unsubscribe events. Filter using User-Agent patterns and timing analysis.\n\n> **Note:** Event payload fields like `reason` originate from external mail servers and should be treated as untrusted data. Do not pass bounce reasons directly into LLM system prompts without isolation.\n\n---\n\n## Next Steps\n\n- **Send email:** `twilio-sendgrid-email-send`\n- **Manage bounces from webhook events:** `twilio-sendgrid-suppressions`\n- **Receive inbound email:** `twilio-sendgrid-inbound-parse`\n",{"name":5,"description":7},"main","907b1d897cc6743f7f133f8ea2021e1331b0b020",".codex\u002F.tmp\u002Fplugins\u002Fplugins\u002Ftwilio-developer-kit\u002Fskills\u002Ftwilio-sendgrid-webhooks","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque","https:\u002F\u002Fgithub.com\u002Frossboyd","www.bigideasgroup.co.uk","2026-09-22 02:03:50",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add rossboyd\u002Fquickque --skill twilio-sendgrid-webhooks",{"tool":37,"command":38},"bunx","bunx skills add rossboyd\u002Fquickque --skill twilio-sendgrid-webhooks",{"tool":40,"command":41},"pnpm","pnpm dlx skills add rossboyd\u002Fquickque --skill twilio-sendgrid-webhooks","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002F.tmp\u002Fplugins\u002Fplugins\u002Ftwilio-developer-kit\u002Fskills\u002Ftwilio-sendgrid-webhooks\u002FSKILL.md",true,[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"agents\u002Fopenai.yaml","REFERENCE","参考文档",229,"https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002F.tmp\u002Fplugins\u002Fplugins\u002Ftwilio-developer-kit\u002Fskills\u002Ftwilio-sendgrid-webhooks\u002Fagents\u002Fopenai.yaml",[52,61,69,76,83,91],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":56,"licenseFileUrl":57,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7CJSS21K09H3ZQZMPFR4ZAG","skill-installer","Install Codex skills into $CODEX_HOME\u002Fskills from a curated list or a GitHub repo path. Use when a user asks to list installable skills, install a curated skill, or install a skill from another repo (including private repos).","Apache-2.0","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fskill-installer\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fskill-installer\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":56,"licenseFileUrl":65,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7CJSM1F4E7RBXCS3C18EFBY","skill-creator","Create or update a Codex skill with appropriately scoped instructions and any needed supporting resources.","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fskill-creator\u002Flicense.txt","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fskill-creator\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7CJSGF2PJM504Q6TZCNT27C","review-agent","Perform a read-only, defect-first review of a specified code change and return every actionable finding. Use when another agent delegates review of uncommitted changes, a base-branch diff, a commit, or custom review instructions.","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Freview-agent\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7CJSBQTPFEQYZF4VWS7QZ3N","plugin-creator","Create and scaffold plugin directories for Codex with a required `.codex-plugin\u002Fplugin.json`, optional plugin folders\u002Ffiles, valid manifest defaults, and personal-marketplace entries by default. Use when Codex needs to create a new personal plugin, add optional plugin structure, generate or update marketplace entries for plugin ordering and availability metadata, or update an existing local plugin during development with the CLI-driven cachebuster and reinstall flow.","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fplugin-creator\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":56,"licenseFileUrl":87,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M7CJS5BHJZKA16353PVZGC50","openai-docs","Use for Codex models\u002Fpricing, scheduled tasks, skills, settings, setup, troubleshooting, customization, automations, and self-knowledge—including 'you,' 'your,' 'this app,' or 'this coding agent' when they refer to Codex—and for OpenAI APIs\u002Fproducts and ChatGPT Work. Also use for model choice\u002Fmigration, prompting, SDKs, Responses, Realtime, agents, evals, and Chat\u002FWork\u002FCodex comparisons. Do not use for generic app\u002Fsoftware tasks that merely mention Codex.","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fopenai-docs\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fopenai-docs\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":56,"licenseFileUrl":95,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7CJRY1FC048P3RF4YQZ6J8B","imagegen","Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output should be a bitmap asset rather than repo-native code or vector. Do not use when the task is better handled by editing existing SVG\u002Fvector\u002Fcode-native assets, extending an established icon or logo system, or building the visual directly in HTML\u002FCSS\u002Fcanvas.","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fimagegen\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Frossboyd\u002Fquickque\u002Fblob\u002Fmain\u002F.codex\u002Fskills\u002F.system\u002Fimagegen\u002FSKILL.md",[],[]]