[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-openai-twilio-sendgrid-email-send":3,"mdc-120ml8-key":33,"related-repo-openai-twilio-sendgrid-email-send":1836,"related-org-openai-twilio-sendgrid-email-send":1959},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":22,"repoUrl":23,"updatedAt":24,"license":25,"forks":26,"topics":27,"repo":28,"sourceUrl":31,"mdContent":32},"twilio-sendgrid-email-send","send transactional and bulk emails","Send transactional and bulk email via the SendGrid v3 Mail Send API. Covers single sends, personalized batch sends with dynamic templates, scheduled sends with cancellation, attachments, and sandbox mode for testing. Use this skill when the caller has a SendGrid API key (SG.-prefix). Do NOT use this skill if the caller is using the Twilio Email API (comms.twilio.com) — that is a separate product with different credentials.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"openai","OpenAI","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fopenai.png",[12,16,19],{"name":13,"slug":14,"type":15},"SendGrid","sendgrid","tag",{"name":17,"slug":18,"type":15},"Email","email",{"name":20,"slug":21,"type":15},"Twilio","twilio",3992,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fplugins","2026-06-30T19:00:57.102",null,465,[],{"repoUrl":23,"stars":22,"forks":26,"topics":29,"description":30},[],"OpenAI Plugins","https:\u002F\u002Fgithub.com\u002Fopenai\u002Fplugins\u002Ftree\u002FHEAD\u002Fplugins\u002Ftwilio-developer-kit\u002Fskills\u002Ftwilio-sendgrid-email-send","---\nname: twilio-sendgrid-email-send\ndescription: >\n  Send transactional and bulk email via the SendGrid v3 Mail Send API.\n  Covers single sends, personalized batch sends with dynamic templates,\n  scheduled sends with cancellation, attachments, and sandbox mode for\n  testing. Use this skill when the caller has a SendGrid API key (SG.-prefix).\n  Do NOT use this skill if the caller is using the Twilio Email API\n  (comms.twilio.com) — that is a separate product with different credentials.\n---\n\n## Overview\n\n> **Agent safety:** Always confirm recipients, subject, and content with the user before sending. Email is irreversible once delivered. Never send email autonomously without explicit user approval — especially for batch sends to multiple recipients.\n\nAll email sending goes through `POST \u002Fv3\u002Fmail\u002Fsend`. This endpoint returns `202 Accepted` (queued) — NOT `200 OK` (delivered). Delivery confirmation comes asynchronously via Event Webhook. See `twilio-sendgrid-webhooks`.\n\n---\n\n## Basic Send\n\n**Python**\n```python\nimport os, sendgrid\nfrom sendgrid.helpers.mail import Mail\n\nsg = sendgrid.SendGridAPIClient(os.environ[\"SENDGRID_API_KEY\"])\nmessage = Mail(\n    from_email=\"verified@yourdomain.com\",\n    to_emails=\"recipient@example.com\",\n    subject=\"Order Confirmation\",\n    html_content=\"\u003Cp>Your order #1234 is confirmed.\u003C\u002Fp>\"\n)\nresponse = sg.send(message)\nprint(f\"Status: {response.status_code}\")  # 202 = queued\n```\n\n**Node.js**\n```javascript\nconst sgMail = require(\"@sendgrid\u002Fmail\");\nsgMail.setApiKey(process.env.SENDGRID_API_KEY);\n\nconst [response] = await sgMail.send({\n    to: \"recipient@example.com\",\n    from: \"verified@yourdomain.com\",\n    subject: \"Order Confirmation\",\n    html: \"\u003Cp>Your order #1234 is confirmed.\u003C\u002Fp>\",\n});\nconsole.log(`Status: ${response.statusCode}`); \u002F\u002F 202 = queued\n```\n\n---\n\n## Personalized Batch Send with Dynamic Templates\n\nDynamic templates use Handlebars syntax. Template IDs start with `d-`. Create templates in SendGrid Console > Email API > Dynamic Templates.\n\n**Python**\n```python\nfrom sendgrid.helpers.mail import Mail, To\n\nmessage = Mail(\n    from_email=\"noreply@yourdomain.com\",\n    to_emails=[\n        To(\"alice@example.com\", dynamic_template_data={\"name\": \"Alice\", \"order_id\": \"123\"}),\n        To(\"bob@example.com\", dynamic_template_data={\"name\": \"Bob\", \"order_id\": \"456\"}),\n    ],\n)\nmessage.template_id = \"d-xxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\nsg.send(message)\n```\n\n**Node.js**\n```javascript\nawait sgMail.send({\n    from: { email: \"noreply@yourdomain.com\" },\n    template_id: \"d-xxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n    personalizations: [\n        { to: [{ email: \"alice@example.com\" }], dynamic_template_data: { name: \"Alice\", order_id: \"123\" } },\n        { to: [{ email: \"bob@example.com\" }], dynamic_template_data: { name: \"Bob\", order_id: \"456\" } },\n    ],\n});\n```\n\n**Recipients in the same `to` array within a single personalization can see each other.** For private sends, use separate personalizations (one per recipient).\n\n---\n\n## Scheduled Sends\n\nSchedule up to 72 hours in advance. Cancellation requires a batch ID assigned *before* sending.\n\n**Python**\n```python\nimport time, requests\n\nheaders = {\"Authorization\": f\"Bearer {os.environ['SENDGRID_API_KEY']}\", \"Content-Type\": \"application\u002Fjson\"}\n\n# Get batch ID first\nbatch = requests.post(\"https:\u002F\u002Fapi.sendgrid.com\u002Fv3\u002Fmail\u002Fbatch\", headers=headers).json()\n\n# Include batch_id and send_at in the message\nsend_at = int(time.time()) + 3600  # Unix SECONDS, not ms\n\n# Cancel if needed (before send_at)\nrequests.post(\"https:\u002F\u002Fapi.sendgrid.com\u002Fv3\u002Fuser\u002Fscheduled_sends\",\n    headers=headers,\n    json={\"batch_id\": batch[\"batch_id\"], \"status\": \"cancel\"})\n```\n\n---\n\n## Attachments\n\nBase64-encode files in the `attachments` array. Total limit: 30MB per request (~22MB before encoding overhead).\n\n```python\nimport base64\nfrom sendgrid.helpers.mail import Mail, Attachment, FileContent, FileName, FileType, Disposition\n\nwith open(\"invoice.pdf\", \"rb\") as f:\n    encoded = base64.b64encode(f.read()).decode()\n\nmessage = Mail(from_email=\"billing@yourdomain.com\", to_emails=\"customer@example.com\",\n               subject=\"Your Invoice\", html_content=\"\u003Cp>Invoice attached.\u003C\u002Fp>\")\nmessage.attachment = Attachment(FileContent(encoded), FileName(\"invoice.pdf\"),\n                                FileType(\"application\u002Fpdf\"), Disposition(\"attachment\"))\nsg.send(message)\n```\n\n---\n\n## Categories and Custom Args\n\n**Categories** tag sends for analytics segmentation (up to 10 per message):\n```python\nmessage.category = [\"transactional\", \"order-confirmation\"]\n```\n\n**Custom Args** pass metadata through to Event Webhooks (key-value strings only):\n```python\nmessage.custom_args = {\"order_id\": \"1234\", \"env\": \"production\"}\n```\n\nThese appear in webhook event payloads, enabling you to correlate delivery events back to your application data.\n\n---\n\n## Sandbox Mode (Testing)\n\nValidates the request without delivering. Returns `200 OK` (not `202`).\n\n```python\nmessage.mail_settings = {\"sandbox_mode\": {\"enable\": True}}\nresponse = sg.send(message)  # 200 = validated, not sent\n```\n\n---\n\n## CANNOT\n\n- **Cannot send more than 1,000 recipients per API call** — Hard limit. Split into multiple requests.\n- **Cannot schedule sends more than 72 hours in advance** — `send_at` rejects timestamps beyond 72h.\n- **Cannot cancel a send after processing** — Only scheduled messages with a pre-assigned batch ID can be cancelled.\n- **Cannot use `send_at` with milliseconds** — JS `Date.now()` returns ms. Divide by 1000 or the timestamp is silently rejected (>72h).\n- **The `subject` field in personalizations is a plain string override** — To use dynamic subjects, set Handlebars variables (e.g., `{{{subject}}}`) in the Dynamic Template's subject field and pass values via `dynamic_template_data`. The personalizations `subject` key bypasses the template subject entirely.\n- **Undefined template variables render as empty strings** — No error for typos in `dynamic_template_data` keys. Silent failures.\n- **`413 Payload Too Large` returns nginx HTML, not JSON** — Exceeding 30MB returns HTML error page. Check Content-Type before parsing.\n- **Empty `content` when using `template_id`** — Omit the `content` field. If you include both, `template_id` takes precedence and `content` is ignored.\n\n> **Agent usage:** When sending email on behalf of a user, always report back what was sent — recipients, subject, and the API response status code. Maintain an application-level audit log for all sends.\n\n---\n\n## Next Steps\n\n- **Account setup and domain auth:** `twilio-sendgrid-account-setup`\n- **Templates and settings:** `twilio-sendgrid-email-settings`\n- **Delivery tracking via webhooks:** `twilio-sendgrid-webhooks`\n- **Manage bounces and unsubscribes:** `twilio-sendgrid-suppressions`\n",{"data":34,"body":35},{"name":4,"description":6},{"type":36,"children":37},"root",[38,47,63,101,105,111,119,241,249,627,630,636,649,656,748,755,1158,1176,1179,1185,1198,1205,1322,1325,1331,1343,1435,1438,1444,1454,1468,1478,1492,1497,1500,1506,1526,1549,1552,1558,1745,1758,1761,1767,1830],{"type":39,"tag":40,"props":41,"children":43},"element","h2",{"id":42},"overview",[44],{"type":45,"value":46},"text","Overview",{"type":39,"tag":48,"props":49,"children":50},"blockquote",{},[51],{"type":39,"tag":52,"props":53,"children":54},"p",{},[55,61],{"type":39,"tag":56,"props":57,"children":58},"strong",{},[59],{"type":45,"value":60},"Agent safety:",{"type":45,"value":62}," Always confirm recipients, subject, and content with the user before sending. Email is irreversible once delivered. Never send email autonomously without explicit user approval — especially for batch sends to multiple recipients.",{"type":39,"tag":52,"props":64,"children":65},{},[66,68,75,77,83,85,91,93,99],{"type":45,"value":67},"All email sending goes through ",{"type":39,"tag":69,"props":70,"children":72},"code",{"className":71},[],[73],{"type":45,"value":74},"POST \u002Fv3\u002Fmail\u002Fsend",{"type":45,"value":76},". This endpoint returns ",{"type":39,"tag":69,"props":78,"children":80},{"className":79},[],[81],{"type":45,"value":82},"202 Accepted",{"type":45,"value":84}," (queued) — NOT ",{"type":39,"tag":69,"props":86,"children":88},{"className":87},[],[89],{"type":45,"value":90},"200 OK",{"type":45,"value":92}," (delivered). Delivery confirmation comes asynchronously via Event Webhook. See ",{"type":39,"tag":69,"props":94,"children":96},{"className":95},[],[97],{"type":45,"value":98},"twilio-sendgrid-webhooks",{"type":45,"value":100},".",{"type":39,"tag":102,"props":103,"children":104},"hr",{},[],{"type":39,"tag":40,"props":106,"children":108},{"id":107},"basic-send",[109],{"type":45,"value":110},"Basic Send",{"type":39,"tag":52,"props":112,"children":113},{},[114],{"type":39,"tag":56,"props":115,"children":116},{},[117],{"type":45,"value":118},"Python",{"type":39,"tag":120,"props":121,"children":126},"pre",{"className":122,"code":123,"language":124,"meta":125,"style":125},"language-python shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import os, sendgrid\nfrom sendgrid.helpers.mail import Mail\n\nsg = sendgrid.SendGridAPIClient(os.environ[\"SENDGRID_API_KEY\"])\nmessage = Mail(\n    from_email=\"verified@yourdomain.com\",\n    to_emails=\"recipient@example.com\",\n    subject=\"Order Confirmation\",\n    html_content=\"\u003Cp>Your order #1234 is confirmed.\u003C\u002Fp>\"\n)\nresponse = sg.send(message)\nprint(f\"Status: {response.status_code}\")  # 202 = queued\n","python","",[127],{"type":39,"tag":69,"props":128,"children":129},{"__ignoreMap":125},[130,141,150,160,169,178,187,196,205,214,223,232],{"type":39,"tag":131,"props":132,"children":135},"span",{"class":133,"line":134},"line",1,[136],{"type":39,"tag":131,"props":137,"children":138},{},[139],{"type":45,"value":140},"import os, sendgrid\n",{"type":39,"tag":131,"props":142,"children":144},{"class":133,"line":143},2,[145],{"type":39,"tag":131,"props":146,"children":147},{},[148],{"type":45,"value":149},"from sendgrid.helpers.mail import Mail\n",{"type":39,"tag":131,"props":151,"children":153},{"class":133,"line":152},3,[154],{"type":39,"tag":131,"props":155,"children":157},{"emptyLinePlaceholder":156},true,[158],{"type":45,"value":159},"\n",{"type":39,"tag":131,"props":161,"children":163},{"class":133,"line":162},4,[164],{"type":39,"tag":131,"props":165,"children":166},{},[167],{"type":45,"value":168},"sg = sendgrid.SendGridAPIClient(os.environ[\"SENDGRID_API_KEY\"])\n",{"type":39,"tag":131,"props":170,"children":172},{"class":133,"line":171},5,[173],{"type":39,"tag":131,"props":174,"children":175},{},[176],{"type":45,"value":177},"message = Mail(\n",{"type":39,"tag":131,"props":179,"children":181},{"class":133,"line":180},6,[182],{"type":39,"tag":131,"props":183,"children":184},{},[185],{"type":45,"value":186},"    from_email=\"verified@yourdomain.com\",\n",{"type":39,"tag":131,"props":188,"children":190},{"class":133,"line":189},7,[191],{"type":39,"tag":131,"props":192,"children":193},{},[194],{"type":45,"value":195},"    to_emails=\"recipient@example.com\",\n",{"type":39,"tag":131,"props":197,"children":199},{"class":133,"line":198},8,[200],{"type":39,"tag":131,"props":201,"children":202},{},[203],{"type":45,"value":204},"    subject=\"Order Confirmation\",\n",{"type":39,"tag":131,"props":206,"children":208},{"class":133,"line":207},9,[209],{"type":39,"tag":131,"props":210,"children":211},{},[212],{"type":45,"value":213},"    html_content=\"\u003Cp>Your order #1234 is confirmed.\u003C\u002Fp>\"\n",{"type":39,"tag":131,"props":215,"children":217},{"class":133,"line":216},10,[218],{"type":39,"tag":131,"props":219,"children":220},{},[221],{"type":45,"value":222},")\n",{"type":39,"tag":131,"props":224,"children":226},{"class":133,"line":225},11,[227],{"type":39,"tag":131,"props":228,"children":229},{},[230],{"type":45,"value":231},"response = sg.send(message)\n",{"type":39,"tag":131,"props":233,"children":235},{"class":133,"line":234},12,[236],{"type":39,"tag":131,"props":237,"children":238},{},[239],{"type":45,"value":240},"print(f\"Status: {response.status_code}\")  # 202 = queued\n",{"type":39,"tag":52,"props":242,"children":243},{},[244],{"type":39,"tag":56,"props":245,"children":246},{},[247],{"type":45,"value":248},"Node.js",{"type":39,"tag":120,"props":250,"children":254},{"className":251,"code":252,"language":253,"meta":125,"style":125},"language-javascript shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","const sgMail = require(\"@sendgrid\u002Fmail\");\nsgMail.setApiKey(process.env.SENDGRID_API_KEY);\n\nconst [response] = await sgMail.send({\n    to: \"recipient@example.com\",\n    from: \"verified@yourdomain.com\",\n    subject: \"Order Confirmation\",\n    html: \"\u003Cp>Your order #1234 is confirmed.\u003C\u002Fp>\",\n});\nconsole.log(`Status: ${response.statusCode}`); \u002F\u002F 202 = queued\n","javascript",[255],{"type":39,"tag":69,"props":256,"children":257},{"__ignoreMap":125},[258,315,359,366,422,455,484,513,542,558],{"type":39,"tag":131,"props":259,"children":260},{"class":133,"line":134},[261,267,273,279,285,290,295,301,305,310],{"type":39,"tag":131,"props":262,"children":264},{"style":263},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[265],{"type":45,"value":266},"const",{"type":39,"tag":131,"props":268,"children":270},{"style":269},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[271],{"type":45,"value":272}," sgMail ",{"type":39,"tag":131,"props":274,"children":276},{"style":275},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[277],{"type":45,"value":278},"=",{"type":39,"tag":131,"props":280,"children":282},{"style":281},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[283],{"type":45,"value":284}," require",{"type":39,"tag":131,"props":286,"children":287},{"style":269},[288],{"type":45,"value":289},"(",{"type":39,"tag":131,"props":291,"children":292},{"style":275},[293],{"type":45,"value":294},"\"",{"type":39,"tag":131,"props":296,"children":298},{"style":297},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[299],{"type":45,"value":300},"@sendgrid\u002Fmail",{"type":39,"tag":131,"props":302,"children":303},{"style":275},[304],{"type":45,"value":294},{"type":39,"tag":131,"props":306,"children":307},{"style":269},[308],{"type":45,"value":309},")",{"type":39,"tag":131,"props":311,"children":312},{"style":275},[313],{"type":45,"value":314},";\n",{"type":39,"tag":131,"props":316,"children":317},{"class":133,"line":143},[318,323,327,332,337,341,346,350,355],{"type":39,"tag":131,"props":319,"children":320},{"style":269},[321],{"type":45,"value":322},"sgMail",{"type":39,"tag":131,"props":324,"children":325},{"style":275},[326],{"type":45,"value":100},{"type":39,"tag":131,"props":328,"children":329},{"style":281},[330],{"type":45,"value":331},"setApiKey",{"type":39,"tag":131,"props":333,"children":334},{"style":269},[335],{"type":45,"value":336},"(process",{"type":39,"tag":131,"props":338,"children":339},{"style":275},[340],{"type":45,"value":100},{"type":39,"tag":131,"props":342,"children":343},{"style":269},[344],{"type":45,"value":345},"env",{"type":39,"tag":131,"props":347,"children":348},{"style":275},[349],{"type":45,"value":100},{"type":39,"tag":131,"props":351,"children":352},{"style":269},[353],{"type":45,"value":354},"SENDGRID_API_KEY)",{"type":39,"tag":131,"props":356,"children":357},{"style":275},[358],{"type":45,"value":314},{"type":39,"tag":131,"props":360,"children":361},{"class":133,"line":152},[362],{"type":39,"tag":131,"props":363,"children":364},{"emptyLinePlaceholder":156},[365],{"type":45,"value":159},{"type":39,"tag":131,"props":367,"children":368},{"class":133,"line":162},[369,373,378,383,388,393,399,404,408,413,417],{"type":39,"tag":131,"props":370,"children":371},{"style":263},[372],{"type":45,"value":266},{"type":39,"tag":131,"props":374,"children":375},{"style":275},[376],{"type":45,"value":377}," [",{"type":39,"tag":131,"props":379,"children":380},{"style":269},[381],{"type":45,"value":382},"response",{"type":39,"tag":131,"props":384,"children":385},{"style":275},[386],{"type":45,"value":387},"]",{"type":39,"tag":131,"props":389,"children":390},{"style":275},[391],{"type":45,"value":392}," =",{"type":39,"tag":131,"props":394,"children":396},{"style":395},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[397],{"type":45,"value":398}," await",{"type":39,"tag":131,"props":400,"children":401},{"style":269},[402],{"type":45,"value":403}," sgMail",{"type":39,"tag":131,"props":405,"children":406},{"style":275},[407],{"type":45,"value":100},{"type":39,"tag":131,"props":409,"children":410},{"style":281},[411],{"type":45,"value":412},"send",{"type":39,"tag":131,"props":414,"children":415},{"style":269},[416],{"type":45,"value":289},{"type":39,"tag":131,"props":418,"children":419},{"style":275},[420],{"type":45,"value":421},"{\n",{"type":39,"tag":131,"props":423,"children":424},{"class":133,"line":171},[425,431,436,441,446,450],{"type":39,"tag":131,"props":426,"children":428},{"style":427},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[429],{"type":45,"value":430},"    to",{"type":39,"tag":131,"props":432,"children":433},{"style":275},[434],{"type":45,"value":435},":",{"type":39,"tag":131,"props":437,"children":438},{"style":275},[439],{"type":45,"value":440}," \"",{"type":39,"tag":131,"props":442,"children":443},{"style":297},[444],{"type":45,"value":445},"recipient@example.com",{"type":39,"tag":131,"props":447,"children":448},{"style":275},[449],{"type":45,"value":294},{"type":39,"tag":131,"props":451,"children":452},{"style":275},[453],{"type":45,"value":454},",\n",{"type":39,"tag":131,"props":456,"children":457},{"class":133,"line":180},[458,463,467,471,476,480],{"type":39,"tag":131,"props":459,"children":460},{"style":427},[461],{"type":45,"value":462},"    from",{"type":39,"tag":131,"props":464,"children":465},{"style":275},[466],{"type":45,"value":435},{"type":39,"tag":131,"props":468,"children":469},{"style":275},[470],{"type":45,"value":440},{"type":39,"tag":131,"props":472,"children":473},{"style":297},[474],{"type":45,"value":475},"verified@yourdomain.com",{"type":39,"tag":131,"props":477,"children":478},{"style":275},[479],{"type":45,"value":294},{"type":39,"tag":131,"props":481,"children":482},{"style":275},[483],{"type":45,"value":454},{"type":39,"tag":131,"props":485,"children":486},{"class":133,"line":189},[487,492,496,500,505,509],{"type":39,"tag":131,"props":488,"children":489},{"style":427},[490],{"type":45,"value":491},"    subject",{"type":39,"tag":131,"props":493,"children":494},{"style":275},[495],{"type":45,"value":435},{"type":39,"tag":131,"props":497,"children":498},{"style":275},[499],{"type":45,"value":440},{"type":39,"tag":131,"props":501,"children":502},{"style":297},[503],{"type":45,"value":504},"Order Confirmation",{"type":39,"tag":131,"props":506,"children":507},{"style":275},[508],{"type":45,"value":294},{"type":39,"tag":131,"props":510,"children":511},{"style":275},[512],{"type":45,"value":454},{"type":39,"tag":131,"props":514,"children":515},{"class":133,"line":198},[516,521,525,529,534,538],{"type":39,"tag":131,"props":517,"children":518},{"style":427},[519],{"type":45,"value":520},"    html",{"type":39,"tag":131,"props":522,"children":523},{"style":275},[524],{"type":45,"value":435},{"type":39,"tag":131,"props":526,"children":527},{"style":275},[528],{"type":45,"value":440},{"type":39,"tag":131,"props":530,"children":531},{"style":297},[532],{"type":45,"value":533},"\u003Cp>Your order #1234 is confirmed.\u003C\u002Fp>",{"type":39,"tag":131,"props":535,"children":536},{"style":275},[537],{"type":45,"value":294},{"type":39,"tag":131,"props":539,"children":540},{"style":275},[541],{"type":45,"value":454},{"type":39,"tag":131,"props":543,"children":544},{"class":133,"line":207},[545,550,554],{"type":39,"tag":131,"props":546,"children":547},{"style":275},[548],{"type":45,"value":549},"}",{"type":39,"tag":131,"props":551,"children":552},{"style":269},[553],{"type":45,"value":309},{"type":39,"tag":131,"props":555,"children":556},{"style":275},[557],{"type":45,"value":314},{"type":39,"tag":131,"props":559,"children":560},{"class":133,"line":216},[561,566,570,575,579,584,589,594,598,602,607,612,616,621],{"type":39,"tag":131,"props":562,"children":563},{"style":269},[564],{"type":45,"value":565},"console",{"type":39,"tag":131,"props":567,"children":568},{"style":275},[569],{"type":45,"value":100},{"type":39,"tag":131,"props":571,"children":572},{"style":281},[573],{"type":45,"value":574},"log",{"type":39,"tag":131,"props":576,"children":577},{"style":269},[578],{"type":45,"value":289},{"type":39,"tag":131,"props":580,"children":581},{"style":275},[582],{"type":45,"value":583},"`",{"type":39,"tag":131,"props":585,"children":586},{"style":297},[587],{"type":45,"value":588},"Status: ",{"type":39,"tag":131,"props":590,"children":591},{"style":275},[592],{"type":45,"value":593},"${",{"type":39,"tag":131,"props":595,"children":596},{"style":269},[597],{"type":45,"value":382},{"type":39,"tag":131,"props":599,"children":600},{"style":275},[601],{"type":45,"value":100},{"type":39,"tag":131,"props":603,"children":604},{"style":269},[605],{"type":45,"value":606},"statusCode",{"type":39,"tag":131,"props":608,"children":609},{"style":275},[610],{"type":45,"value":611},"}`",{"type":39,"tag":131,"props":613,"children":614},{"style":269},[615],{"type":45,"value":309},{"type":39,"tag":131,"props":617,"children":618},{"style":275},[619],{"type":45,"value":620},";",{"type":39,"tag":131,"props":622,"children":624},{"style":623},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[625],{"type":45,"value":626}," \u002F\u002F 202 = queued\n",{"type":39,"tag":102,"props":628,"children":629},{},[],{"type":39,"tag":40,"props":631,"children":633},{"id":632},"personalized-batch-send-with-dynamic-templates",[634],{"type":45,"value":635},"Personalized Batch Send with Dynamic Templates",{"type":39,"tag":52,"props":637,"children":638},{},[639,641,647],{"type":45,"value":640},"Dynamic templates use Handlebars syntax. Template IDs start with ",{"type":39,"tag":69,"props":642,"children":644},{"className":643},[],[645],{"type":45,"value":646},"d-",{"type":45,"value":648},". Create templates in SendGrid Console > Email API > Dynamic Templates.",{"type":39,"tag":52,"props":650,"children":651},{},[652],{"type":39,"tag":56,"props":653,"children":654},{},[655],{"type":45,"value":118},{"type":39,"tag":120,"props":657,"children":659},{"className":122,"code":658,"language":124,"meta":125,"style":125},"from sendgrid.helpers.mail import Mail, To\n\nmessage = Mail(\n    from_email=\"noreply@yourdomain.com\",\n    to_emails=[\n        To(\"alice@example.com\", dynamic_template_data={\"name\": \"Alice\", \"order_id\": \"123\"}),\n        To(\"bob@example.com\", dynamic_template_data={\"name\": \"Bob\", \"order_id\": \"456\"}),\n    ],\n)\nmessage.template_id = \"d-xxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\nsg.send(message)\n",[660],{"type":39,"tag":69,"props":661,"children":662},{"__ignoreMap":125},[663,671,678,685,693,701,709,717,725,732,740],{"type":39,"tag":131,"props":664,"children":665},{"class":133,"line":134},[666],{"type":39,"tag":131,"props":667,"children":668},{},[669],{"type":45,"value":670},"from sendgrid.helpers.mail import Mail, To\n",{"type":39,"tag":131,"props":672,"children":673},{"class":133,"line":143},[674],{"type":39,"tag":131,"props":675,"children":676},{"emptyLinePlaceholder":156},[677],{"type":45,"value":159},{"type":39,"tag":131,"props":679,"children":680},{"class":133,"line":152},[681],{"type":39,"tag":131,"props":682,"children":683},{},[684],{"type":45,"value":177},{"type":39,"tag":131,"props":686,"children":687},{"class":133,"line":162},[688],{"type":39,"tag":131,"props":689,"children":690},{},[691],{"type":45,"value":692},"    from_email=\"noreply@yourdomain.com\",\n",{"type":39,"tag":131,"props":694,"children":695},{"class":133,"line":171},[696],{"type":39,"tag":131,"props":697,"children":698},{},[699],{"type":45,"value":700},"    to_emails=[\n",{"type":39,"tag":131,"props":702,"children":703},{"class":133,"line":180},[704],{"type":39,"tag":131,"props":705,"children":706},{},[707],{"type":45,"value":708},"        To(\"alice@example.com\", dynamic_template_data={\"name\": \"Alice\", \"order_id\": \"123\"}),\n",{"type":39,"tag":131,"props":710,"children":711},{"class":133,"line":189},[712],{"type":39,"tag":131,"props":713,"children":714},{},[715],{"type":45,"value":716},"        To(\"bob@example.com\", dynamic_template_data={\"name\": \"Bob\", \"order_id\": \"456\"}),\n",{"type":39,"tag":131,"props":718,"children":719},{"class":133,"line":198},[720],{"type":39,"tag":131,"props":721,"children":722},{},[723],{"type":45,"value":724},"    ],\n",{"type":39,"tag":131,"props":726,"children":727},{"class":133,"line":207},[728],{"type":39,"tag":131,"props":729,"children":730},{},[731],{"type":45,"value":222},{"type":39,"tag":131,"props":733,"children":734},{"class":133,"line":216},[735],{"type":39,"tag":131,"props":736,"children":737},{},[738],{"type":45,"value":739},"message.template_id = \"d-xxxxxxxxxxxxxxxxxxxxxxxxxxxx\"\n",{"type":39,"tag":131,"props":741,"children":742},{"class":133,"line":225},[743],{"type":39,"tag":131,"props":744,"children":745},{},[746],{"type":45,"value":747},"sg.send(message)\n",{"type":39,"tag":52,"props":749,"children":750},{},[751],{"type":39,"tag":56,"props":752,"children":753},{},[754],{"type":45,"value":248},{"type":39,"tag":120,"props":756,"children":758},{"className":251,"code":757,"language":253,"meta":125,"style":125},"await sgMail.send({\n    from: { email: \"noreply@yourdomain.com\" },\n    template_id: \"d-xxxxxxxxxxxxxxxxxxxxxxxxxxxx\",\n    personalizations: [\n        { to: [{ email: \"alice@example.com\" }], dynamic_template_data: { name: \"Alice\", order_id: \"123\" } },\n        { to: [{ email: \"bob@example.com\" }], dynamic_template_data: { name: \"Bob\", order_id: \"456\" } },\n    ],\n});\n",[759],{"type":39,"tag":69,"props":760,"children":761},{"__ignoreMap":125},[762,790,833,862,879,1009,1131,1143],{"type":39,"tag":131,"props":763,"children":764},{"class":133,"line":134},[765,770,774,778,782,786],{"type":39,"tag":131,"props":766,"children":767},{"style":395},[768],{"type":45,"value":769},"await",{"type":39,"tag":131,"props":771,"children":772},{"style":269},[773],{"type":45,"value":403},{"type":39,"tag":131,"props":775,"children":776},{"style":275},[777],{"type":45,"value":100},{"type":39,"tag":131,"props":779,"children":780},{"style":281},[781],{"type":45,"value":412},{"type":39,"tag":131,"props":783,"children":784},{"style":269},[785],{"type":45,"value":289},{"type":39,"tag":131,"props":787,"children":788},{"style":275},[789],{"type":45,"value":421},{"type":39,"tag":131,"props":791,"children":792},{"class":133,"line":143},[793,797,801,806,811,815,819,824,828],{"type":39,"tag":131,"props":794,"children":795},{"style":427},[796],{"type":45,"value":462},{"type":39,"tag":131,"props":798,"children":799},{"style":275},[800],{"type":45,"value":435},{"type":39,"tag":131,"props":802,"children":803},{"style":275},[804],{"type":45,"value":805}," {",{"type":39,"tag":131,"props":807,"children":808},{"style":427},[809],{"type":45,"value":810}," email",{"type":39,"tag":131,"props":812,"children":813},{"style":275},[814],{"type":45,"value":435},{"type":39,"tag":131,"props":816,"children":817},{"style":275},[818],{"type":45,"value":440},{"type":39,"tag":131,"props":820,"children":821},{"style":297},[822],{"type":45,"value":823},"noreply@yourdomain.com",{"type":39,"tag":131,"props":825,"children":826},{"style":275},[827],{"type":45,"value":294},{"type":39,"tag":131,"props":829,"children":830},{"style":275},[831],{"type":45,"value":832}," },\n",{"type":39,"tag":131,"props":834,"children":835},{"class":133,"line":152},[836,841,845,849,854,858],{"type":39,"tag":131,"props":837,"children":838},{"style":427},[839],{"type":45,"value":840},"    template_id",{"type":39,"tag":131,"props":842,"children":843},{"style":275},[844],{"type":45,"value":435},{"type":39,"tag":131,"props":846,"children":847},{"style":275},[848],{"type":45,"value":440},{"type":39,"tag":131,"props":850,"children":851},{"style":297},[852],{"type":45,"value":853},"d-xxxxxxxxxxxxxxxxxxxxxxxxxxxx",{"type":39,"tag":131,"props":855,"children":856},{"style":275},[857],{"type":45,"value":294},{"type":39,"tag":131,"props":859,"children":860},{"style":275},[861],{"type":45,"value":454},{"type":39,"tag":131,"props":863,"children":864},{"class":133,"line":162},[865,870,874],{"type":39,"tag":131,"props":866,"children":867},{"style":427},[868],{"type":45,"value":869},"    personalizations",{"type":39,"tag":131,"props":871,"children":872},{"style":275},[873],{"type":45,"value":435},{"type":39,"tag":131,"props":875,"children":876},{"style":269},[877],{"type":45,"value":878}," [\n",{"type":39,"tag":131,"props":880,"children":881},{"class":133,"line":171},[882,887,892,896,900,905,909,913,917,922,926,931,935,940,945,949,953,958,962,966,971,975,979,984,988,992,997,1001,1005],{"type":39,"tag":131,"props":883,"children":884},{"style":275},[885],{"type":45,"value":886},"        {",{"type":39,"tag":131,"props":888,"children":889},{"style":427},[890],{"type":45,"value":891}," to",{"type":39,"tag":131,"props":893,"children":894},{"style":275},[895],{"type":45,"value":435},{"type":39,"tag":131,"props":897,"children":898},{"style":269},[899],{"type":45,"value":377},{"type":39,"tag":131,"props":901,"children":902},{"style":275},[903],{"type":45,"value":904},"{",{"type":39,"tag":131,"props":906,"children":907},{"style":427},[908],{"type":45,"value":810},{"type":39,"tag":131,"props":910,"children":911},{"style":275},[912],{"type":45,"value":435},{"type":39,"tag":131,"props":914,"children":915},{"style":275},[916],{"type":45,"value":440},{"type":39,"tag":131,"props":918,"children":919},{"style":297},[920],{"type":45,"value":921},"alice@example.com",{"type":39,"tag":131,"props":923,"children":924},{"style":275},[925],{"type":45,"value":294},{"type":39,"tag":131,"props":927,"children":928},{"style":275},[929],{"type":45,"value":930}," }",{"type":39,"tag":131,"props":932,"children":933},{"style":269},[934],{"type":45,"value":387},{"type":39,"tag":131,"props":936,"children":937},{"style":275},[938],{"type":45,"value":939},",",{"type":39,"tag":131,"props":941,"children":942},{"style":427},[943],{"type":45,"value":944}," dynamic_template_data",{"type":39,"tag":131,"props":946,"children":947},{"style":275},[948],{"type":45,"value":435},{"type":39,"tag":131,"props":950,"children":951},{"style":275},[952],{"type":45,"value":805},{"type":39,"tag":131,"props":954,"children":955},{"style":427},[956],{"type":45,"value":957}," name",{"type":39,"tag":131,"props":959,"children":960},{"style":275},[961],{"type":45,"value":435},{"type":39,"tag":131,"props":963,"children":964},{"style":275},[965],{"type":45,"value":440},{"type":39,"tag":131,"props":967,"children":968},{"style":297},[969],{"type":45,"value":970},"Alice",{"type":39,"tag":131,"props":972,"children":973},{"style":275},[974],{"type":45,"value":294},{"type":39,"tag":131,"props":976,"children":977},{"style":275},[978],{"type":45,"value":939},{"type":39,"tag":131,"props":980,"children":981},{"style":427},[982],{"type":45,"value":983}," order_id",{"type":39,"tag":131,"props":985,"children":986},{"style":275},[987],{"type":45,"value":435},{"type":39,"tag":131,"props":989,"children":990},{"style":275},[991],{"type":45,"value":440},{"type":39,"tag":131,"props":993,"children":994},{"style":297},[995],{"type":45,"value":996},"123",{"type":39,"tag":131,"props":998,"children":999},{"style":275},[1000],{"type":45,"value":294},{"type":39,"tag":131,"props":1002,"children":1003},{"style":275},[1004],{"type":45,"value":930},{"type":39,"tag":131,"props":1006,"children":1007},{"style":275},[1008],{"type":45,"value":832},{"type":39,"tag":131,"props":1010,"children":1011},{"class":133,"line":180},[1012,1016,1020,1024,1028,1032,1036,1040,1044,1049,1053,1057,1061,1065,1069,1073,1077,1081,1085,1089,1094,1098,1102,1106,1110,1114,1119,1123,1127],{"type":39,"tag":131,"props":1013,"children":1014},{"style":275},[1015],{"type":45,"value":886},{"type":39,"tag":131,"props":1017,"children":1018},{"style":427},[1019],{"type":45,"value":891},{"type":39,"tag":131,"props":1021,"children":1022},{"style":275},[1023],{"type":45,"value":435},{"type":39,"tag":131,"props":1025,"children":1026},{"style":269},[1027],{"type":45,"value":377},{"type":39,"tag":131,"props":1029,"children":1030},{"style":275},[1031],{"type":45,"value":904},{"type":39,"tag":131,"props":1033,"children":1034},{"style":427},[1035],{"type":45,"value":810},{"type":39,"tag":131,"props":1037,"children":1038},{"style":275},[1039],{"type":45,"value":435},{"type":39,"tag":131,"props":1041,"children":1042},{"style":275},[1043],{"type":45,"value":440},{"type":39,"tag":131,"props":1045,"children":1046},{"style":297},[1047],{"type":45,"value":1048},"bob@example.com",{"type":39,"tag":131,"props":1050,"children":1051},{"style":275},[1052],{"type":45,"value":294},{"type":39,"tag":131,"props":1054,"children":1055},{"style":275},[1056],{"type":45,"value":930},{"type":39,"tag":131,"props":1058,"children":1059},{"style":269},[1060],{"type":45,"value":387},{"type":39,"tag":131,"props":1062,"children":1063},{"style":275},[1064],{"type":45,"value":939},{"type":39,"tag":131,"props":1066,"children":1067},{"style":427},[1068],{"type":45,"value":944},{"type":39,"tag":131,"props":1070,"children":1071},{"style":275},[1072],{"type":45,"value":435},{"type":39,"tag":131,"props":1074,"children":1075},{"style":275},[1076],{"type":45,"value":805},{"type":39,"tag":131,"props":1078,"children":1079},{"style":427},[1080],{"type":45,"value":957},{"type":39,"tag":131,"props":1082,"children":1083},{"style":275},[1084],{"type":45,"value":435},{"type":39,"tag":131,"props":1086,"children":1087},{"style":275},[1088],{"type":45,"value":440},{"type":39,"tag":131,"props":1090,"children":1091},{"style":297},[1092],{"type":45,"value":1093},"Bob",{"type":39,"tag":131,"props":1095,"children":1096},{"style":275},[1097],{"type":45,"value":294},{"type":39,"tag":131,"props":1099,"children":1100},{"style":275},[1101],{"type":45,"value":939},{"type":39,"tag":131,"props":1103,"children":1104},{"style":427},[1105],{"type":45,"value":983},{"type":39,"tag":131,"props":1107,"children":1108},{"style":275},[1109],{"type":45,"value":435},{"type":39,"tag":131,"props":1111,"children":1112},{"style":275},[1113],{"type":45,"value":440},{"type":39,"tag":131,"props":1115,"children":1116},{"style":297},[1117],{"type":45,"value":1118},"456",{"type":39,"tag":131,"props":1120,"children":1121},{"style":275},[1122],{"type":45,"value":294},{"type":39,"tag":131,"props":1124,"children":1125},{"style":275},[1126],{"type":45,"value":930},{"type":39,"tag":131,"props":1128,"children":1129},{"style":275},[1130],{"type":45,"value":832},{"type":39,"tag":131,"props":1132,"children":1133},{"class":133,"line":189},[1134,1139],{"type":39,"tag":131,"props":1135,"children":1136},{"style":269},[1137],{"type":45,"value":1138},"    ]",{"type":39,"tag":131,"props":1140,"children":1141},{"style":275},[1142],{"type":45,"value":454},{"type":39,"tag":131,"props":1144,"children":1145},{"class":133,"line":198},[1146,1150,1154],{"type":39,"tag":131,"props":1147,"children":1148},{"style":275},[1149],{"type":45,"value":549},{"type":39,"tag":131,"props":1151,"children":1152},{"style":269},[1153],{"type":45,"value":309},{"type":39,"tag":131,"props":1155,"children":1156},{"style":275},[1157],{"type":45,"value":314},{"type":39,"tag":52,"props":1159,"children":1160},{},[1161,1174],{"type":39,"tag":56,"props":1162,"children":1163},{},[1164,1166,1172],{"type":45,"value":1165},"Recipients in the same ",{"type":39,"tag":69,"props":1167,"children":1169},{"className":1168},[],[1170],{"type":45,"value":1171},"to",{"type":45,"value":1173}," array within a single personalization can see each other.",{"type":45,"value":1175}," For private sends, use separate personalizations (one per recipient).",{"type":39,"tag":102,"props":1177,"children":1178},{},[],{"type":39,"tag":40,"props":1180,"children":1182},{"id":1181},"scheduled-sends",[1183],{"type":45,"value":1184},"Scheduled Sends",{"type":39,"tag":52,"props":1186,"children":1187},{},[1188,1190,1196],{"type":45,"value":1189},"Schedule up to 72 hours in advance. Cancellation requires a batch ID assigned ",{"type":39,"tag":1191,"props":1192,"children":1193},"em",{},[1194],{"type":45,"value":1195},"before",{"type":45,"value":1197}," sending.",{"type":39,"tag":52,"props":1199,"children":1200},{},[1201],{"type":39,"tag":56,"props":1202,"children":1203},{},[1204],{"type":45,"value":118},{"type":39,"tag":120,"props":1206,"children":1208},{"className":122,"code":1207,"language":124,"meta":125,"style":125},"import time, requests\n\nheaders = {\"Authorization\": f\"Bearer {os.environ['SENDGRID_API_KEY']}\", \"Content-Type\": \"application\u002Fjson\"}\n\n# Get batch ID first\nbatch = requests.post(\"https:\u002F\u002Fapi.sendgrid.com\u002Fv3\u002Fmail\u002Fbatch\", headers=headers).json()\n\n# Include batch_id and send_at in the message\nsend_at = int(time.time()) + 3600  # Unix SECONDS, not ms\n\n# Cancel if needed (before send_at)\nrequests.post(\"https:\u002F\u002Fapi.sendgrid.com\u002Fv3\u002Fuser\u002Fscheduled_sends\",\n    headers=headers,\n    json={\"batch_id\": batch[\"batch_id\"], \"status\": \"cancel\"})\n",[1209],{"type":39,"tag":69,"props":1210,"children":1211},{"__ignoreMap":125},[1212,1220,1227,1235,1242,1250,1258,1265,1273,1281,1288,1296,1304,1313],{"type":39,"tag":131,"props":1213,"children":1214},{"class":133,"line":134},[1215],{"type":39,"tag":131,"props":1216,"children":1217},{},[1218],{"type":45,"value":1219},"import time, requests\n",{"type":39,"tag":131,"props":1221,"children":1222},{"class":133,"line":143},[1223],{"type":39,"tag":131,"props":1224,"children":1225},{"emptyLinePlaceholder":156},[1226],{"type":45,"value":159},{"type":39,"tag":131,"props":1228,"children":1229},{"class":133,"line":152},[1230],{"type":39,"tag":131,"props":1231,"children":1232},{},[1233],{"type":45,"value":1234},"headers = {\"Authorization\": f\"Bearer {os.environ['SENDGRID_API_KEY']}\", \"Content-Type\": \"application\u002Fjson\"}\n",{"type":39,"tag":131,"props":1236,"children":1237},{"class":133,"line":162},[1238],{"type":39,"tag":131,"props":1239,"children":1240},{"emptyLinePlaceholder":156},[1241],{"type":45,"value":159},{"type":39,"tag":131,"props":1243,"children":1244},{"class":133,"line":171},[1245],{"type":39,"tag":131,"props":1246,"children":1247},{},[1248],{"type":45,"value":1249},"# Get batch ID first\n",{"type":39,"tag":131,"props":1251,"children":1252},{"class":133,"line":180},[1253],{"type":39,"tag":131,"props":1254,"children":1255},{},[1256],{"type":45,"value":1257},"batch = requests.post(\"https:\u002F\u002Fapi.sendgrid.com\u002Fv3\u002Fmail\u002Fbatch\", headers=headers).json()\n",{"type":39,"tag":131,"props":1259,"children":1260},{"class":133,"line":189},[1261],{"type":39,"tag":131,"props":1262,"children":1263},{"emptyLinePlaceholder":156},[1264],{"type":45,"value":159},{"type":39,"tag":131,"props":1266,"children":1267},{"class":133,"line":198},[1268],{"type":39,"tag":131,"props":1269,"children":1270},{},[1271],{"type":45,"value":1272},"# Include batch_id and send_at in the message\n",{"type":39,"tag":131,"props":1274,"children":1275},{"class":133,"line":207},[1276],{"type":39,"tag":131,"props":1277,"children":1278},{},[1279],{"type":45,"value":1280},"send_at = int(time.time()) + 3600  # Unix SECONDS, not ms\n",{"type":39,"tag":131,"props":1282,"children":1283},{"class":133,"line":216},[1284],{"type":39,"tag":131,"props":1285,"children":1286},{"emptyLinePlaceholder":156},[1287],{"type":45,"value":159},{"type":39,"tag":131,"props":1289,"children":1290},{"class":133,"line":225},[1291],{"type":39,"tag":131,"props":1292,"children":1293},{},[1294],{"type":45,"value":1295},"# Cancel if needed (before send_at)\n",{"type":39,"tag":131,"props":1297,"children":1298},{"class":133,"line":234},[1299],{"type":39,"tag":131,"props":1300,"children":1301},{},[1302],{"type":45,"value":1303},"requests.post(\"https:\u002F\u002Fapi.sendgrid.com\u002Fv3\u002Fuser\u002Fscheduled_sends\",\n",{"type":39,"tag":131,"props":1305,"children":1307},{"class":133,"line":1306},13,[1308],{"type":39,"tag":131,"props":1309,"children":1310},{},[1311],{"type":45,"value":1312},"    headers=headers,\n",{"type":39,"tag":131,"props":1314,"children":1316},{"class":133,"line":1315},14,[1317],{"type":39,"tag":131,"props":1318,"children":1319},{},[1320],{"type":45,"value":1321},"    json={\"batch_id\": batch[\"batch_id\"], \"status\": \"cancel\"})\n",{"type":39,"tag":102,"props":1323,"children":1324},{},[],{"type":39,"tag":40,"props":1326,"children":1328},{"id":1327},"attachments",[1329],{"type":45,"value":1330},"Attachments",{"type":39,"tag":52,"props":1332,"children":1333},{},[1334,1336,1341],{"type":45,"value":1335},"Base64-encode files in the ",{"type":39,"tag":69,"props":1337,"children":1339},{"className":1338},[],[1340],{"type":45,"value":1327},{"type":45,"value":1342}," array. Total limit: 30MB per request (~22MB before encoding overhead).",{"type":39,"tag":120,"props":1344,"children":1346},{"className":122,"code":1345,"language":124,"meta":125,"style":125},"import base64\nfrom sendgrid.helpers.mail import Mail, Attachment, FileContent, FileName, FileType, Disposition\n\nwith open(\"invoice.pdf\", \"rb\") as f:\n    encoded = base64.b64encode(f.read()).decode()\n\nmessage = Mail(from_email=\"billing@yourdomain.com\", to_emails=\"customer@example.com\",\n               subject=\"Your Invoice\", html_content=\"\u003Cp>Invoice attached.\u003C\u002Fp>\")\nmessage.attachment = Attachment(FileContent(encoded), FileName(\"invoice.pdf\"),\n                                FileType(\"application\u002Fpdf\"), Disposition(\"attachment\"))\nsg.send(message)\n",[1347],{"type":39,"tag":69,"props":1348,"children":1349},{"__ignoreMap":125},[1350,1358,1366,1373,1381,1389,1396,1404,1412,1420,1428],{"type":39,"tag":131,"props":1351,"children":1352},{"class":133,"line":134},[1353],{"type":39,"tag":131,"props":1354,"children":1355},{},[1356],{"type":45,"value":1357},"import base64\n",{"type":39,"tag":131,"props":1359,"children":1360},{"class":133,"line":143},[1361],{"type":39,"tag":131,"props":1362,"children":1363},{},[1364],{"type":45,"value":1365},"from sendgrid.helpers.mail import Mail, Attachment, FileContent, FileName, FileType, Disposition\n",{"type":39,"tag":131,"props":1367,"children":1368},{"class":133,"line":152},[1369],{"type":39,"tag":131,"props":1370,"children":1371},{"emptyLinePlaceholder":156},[1372],{"type":45,"value":159},{"type":39,"tag":131,"props":1374,"children":1375},{"class":133,"line":162},[1376],{"type":39,"tag":131,"props":1377,"children":1378},{},[1379],{"type":45,"value":1380},"with open(\"invoice.pdf\", \"rb\") as f:\n",{"type":39,"tag":131,"props":1382,"children":1383},{"class":133,"line":171},[1384],{"type":39,"tag":131,"props":1385,"children":1386},{},[1387],{"type":45,"value":1388},"    encoded = base64.b64encode(f.read()).decode()\n",{"type":39,"tag":131,"props":1390,"children":1391},{"class":133,"line":180},[1392],{"type":39,"tag":131,"props":1393,"children":1394},{"emptyLinePlaceholder":156},[1395],{"type":45,"value":159},{"type":39,"tag":131,"props":1397,"children":1398},{"class":133,"line":189},[1399],{"type":39,"tag":131,"props":1400,"children":1401},{},[1402],{"type":45,"value":1403},"message = Mail(from_email=\"billing@yourdomain.com\", to_emails=\"customer@example.com\",\n",{"type":39,"tag":131,"props":1405,"children":1406},{"class":133,"line":198},[1407],{"type":39,"tag":131,"props":1408,"children":1409},{},[1410],{"type":45,"value":1411},"               subject=\"Your Invoice\", html_content=\"\u003Cp>Invoice attached.\u003C\u002Fp>\")\n",{"type":39,"tag":131,"props":1413,"children":1414},{"class":133,"line":207},[1415],{"type":39,"tag":131,"props":1416,"children":1417},{},[1418],{"type":45,"value":1419},"message.attachment = Attachment(FileContent(encoded), FileName(\"invoice.pdf\"),\n",{"type":39,"tag":131,"props":1421,"children":1422},{"class":133,"line":216},[1423],{"type":39,"tag":131,"props":1424,"children":1425},{},[1426],{"type":45,"value":1427},"                                FileType(\"application\u002Fpdf\"), Disposition(\"attachment\"))\n",{"type":39,"tag":131,"props":1429,"children":1430},{"class":133,"line":225},[1431],{"type":39,"tag":131,"props":1432,"children":1433},{},[1434],{"type":45,"value":747},{"type":39,"tag":102,"props":1436,"children":1437},{},[],{"type":39,"tag":40,"props":1439,"children":1441},{"id":1440},"categories-and-custom-args",[1442],{"type":45,"value":1443},"Categories and Custom Args",{"type":39,"tag":52,"props":1445,"children":1446},{},[1447,1452],{"type":39,"tag":56,"props":1448,"children":1449},{},[1450],{"type":45,"value":1451},"Categories",{"type":45,"value":1453}," tag sends for analytics segmentation (up to 10 per message):",{"type":39,"tag":120,"props":1455,"children":1457},{"className":122,"code":1456,"language":124,"meta":125,"style":125},"message.category = [\"transactional\", \"order-confirmation\"]\n",[1458],{"type":39,"tag":69,"props":1459,"children":1460},{"__ignoreMap":125},[1461],{"type":39,"tag":131,"props":1462,"children":1463},{"class":133,"line":134},[1464],{"type":39,"tag":131,"props":1465,"children":1466},{},[1467],{"type":45,"value":1456},{"type":39,"tag":52,"props":1469,"children":1470},{},[1471,1476],{"type":39,"tag":56,"props":1472,"children":1473},{},[1474],{"type":45,"value":1475},"Custom Args",{"type":45,"value":1477}," pass metadata through to Event Webhooks (key-value strings only):",{"type":39,"tag":120,"props":1479,"children":1481},{"className":122,"code":1480,"language":124,"meta":125,"style":125},"message.custom_args = {\"order_id\": \"1234\", \"env\": \"production\"}\n",[1482],{"type":39,"tag":69,"props":1483,"children":1484},{"__ignoreMap":125},[1485],{"type":39,"tag":131,"props":1486,"children":1487},{"class":133,"line":134},[1488],{"type":39,"tag":131,"props":1489,"children":1490},{},[1491],{"type":45,"value":1480},{"type":39,"tag":52,"props":1493,"children":1494},{},[1495],{"type":45,"value":1496},"These appear in webhook event payloads, enabling you to correlate delivery events back to your application data.",{"type":39,"tag":102,"props":1498,"children":1499},{},[],{"type":39,"tag":40,"props":1501,"children":1503},{"id":1502},"sandbox-mode-testing",[1504],{"type":45,"value":1505},"Sandbox Mode (Testing)",{"type":39,"tag":52,"props":1507,"children":1508},{},[1509,1511,1516,1518,1524],{"type":45,"value":1510},"Validates the request without delivering. Returns ",{"type":39,"tag":69,"props":1512,"children":1514},{"className":1513},[],[1515],{"type":45,"value":90},{"type":45,"value":1517}," (not ",{"type":39,"tag":69,"props":1519,"children":1521},{"className":1520},[],[1522],{"type":45,"value":1523},"202",{"type":45,"value":1525},").",{"type":39,"tag":120,"props":1527,"children":1529},{"className":122,"code":1528,"language":124,"meta":125,"style":125},"message.mail_settings = {\"sandbox_mode\": {\"enable\": True}}\nresponse = sg.send(message)  # 200 = validated, not sent\n",[1530],{"type":39,"tag":69,"props":1531,"children":1532},{"__ignoreMap":125},[1533,1541],{"type":39,"tag":131,"props":1534,"children":1535},{"class":133,"line":134},[1536],{"type":39,"tag":131,"props":1537,"children":1538},{},[1539],{"type":45,"value":1540},"message.mail_settings = {\"sandbox_mode\": {\"enable\": True}}\n",{"type":39,"tag":131,"props":1542,"children":1543},{"class":133,"line":143},[1544],{"type":39,"tag":131,"props":1545,"children":1546},{},[1547],{"type":45,"value":1548},"response = sg.send(message)  # 200 = validated, not sent\n",{"type":39,"tag":102,"props":1550,"children":1551},{},[],{"type":39,"tag":40,"props":1553,"children":1555},{"id":1554},"cannot",[1556],{"type":45,"value":1557},"CANNOT",{"type":39,"tag":1559,"props":1560,"children":1561},"ul",{},[1562,1573,1591,1601,1626,1667,1684,1700],{"type":39,"tag":1563,"props":1564,"children":1565},"li",{},[1566,1571],{"type":39,"tag":56,"props":1567,"children":1568},{},[1569],{"type":45,"value":1570},"Cannot send more than 1,000 recipients per API call",{"type":45,"value":1572}," — Hard limit. Split into multiple requests.",{"type":39,"tag":1563,"props":1574,"children":1575},{},[1576,1581,1583,1589],{"type":39,"tag":56,"props":1577,"children":1578},{},[1579],{"type":45,"value":1580},"Cannot schedule sends more than 72 hours in advance",{"type":45,"value":1582}," — ",{"type":39,"tag":69,"props":1584,"children":1586},{"className":1585},[],[1587],{"type":45,"value":1588},"send_at",{"type":45,"value":1590}," rejects timestamps beyond 72h.",{"type":39,"tag":1563,"props":1592,"children":1593},{},[1594,1599],{"type":39,"tag":56,"props":1595,"children":1596},{},[1597],{"type":45,"value":1598},"Cannot cancel a send after processing",{"type":45,"value":1600}," — Only scheduled messages with a pre-assigned batch ID can be cancelled.",{"type":39,"tag":1563,"props":1602,"children":1603},{},[1604,1616,1618,1624],{"type":39,"tag":56,"props":1605,"children":1606},{},[1607,1609,1614],{"type":45,"value":1608},"Cannot use ",{"type":39,"tag":69,"props":1610,"children":1612},{"className":1611},[],[1613],{"type":45,"value":1588},{"type":45,"value":1615}," with milliseconds",{"type":45,"value":1617}," — JS ",{"type":39,"tag":69,"props":1619,"children":1621},{"className":1620},[],[1622],{"type":45,"value":1623},"Date.now()",{"type":45,"value":1625}," returns ms. Divide by 1000 or the timestamp is silently rejected (>72h).",{"type":39,"tag":1563,"props":1627,"children":1628},{},[1629,1642,1644,1650,1652,1658,1660,1665],{"type":39,"tag":56,"props":1630,"children":1631},{},[1632,1634,1640],{"type":45,"value":1633},"The ",{"type":39,"tag":69,"props":1635,"children":1637},{"className":1636},[],[1638],{"type":45,"value":1639},"subject",{"type":45,"value":1641}," field in personalizations is a plain string override",{"type":45,"value":1643}," — To use dynamic subjects, set Handlebars variables (e.g., ",{"type":39,"tag":69,"props":1645,"children":1647},{"className":1646},[],[1648],{"type":45,"value":1649},"{{{subject}}}",{"type":45,"value":1651},") in the Dynamic Template's subject field and pass values via ",{"type":39,"tag":69,"props":1653,"children":1655},{"className":1654},[],[1656],{"type":45,"value":1657},"dynamic_template_data",{"type":45,"value":1659},". The personalizations ",{"type":39,"tag":69,"props":1661,"children":1663},{"className":1662},[],[1664],{"type":45,"value":1639},{"type":45,"value":1666}," key bypasses the template subject entirely.",{"type":39,"tag":1563,"props":1668,"children":1669},{},[1670,1675,1677,1682],{"type":39,"tag":56,"props":1671,"children":1672},{},[1673],{"type":45,"value":1674},"Undefined template variables render as empty strings",{"type":45,"value":1676}," — No error for typos in ",{"type":39,"tag":69,"props":1678,"children":1680},{"className":1679},[],[1681],{"type":45,"value":1657},{"type":45,"value":1683}," keys. Silent failures.",{"type":39,"tag":1563,"props":1685,"children":1686},{},[1687,1698],{"type":39,"tag":56,"props":1688,"children":1689},{},[1690,1696],{"type":39,"tag":69,"props":1691,"children":1693},{"className":1692},[],[1694],{"type":45,"value":1695},"413 Payload Too Large",{"type":45,"value":1697}," returns nginx HTML, not JSON",{"type":45,"value":1699}," — Exceeding 30MB returns HTML error page. Check Content-Type before parsing.",{"type":39,"tag":1563,"props":1701,"children":1702},{},[1703,1722,1724,1729,1731,1736,1738,1743],{"type":39,"tag":56,"props":1704,"children":1705},{},[1706,1708,1714,1716],{"type":45,"value":1707},"Empty ",{"type":39,"tag":69,"props":1709,"children":1711},{"className":1710},[],[1712],{"type":45,"value":1713},"content",{"type":45,"value":1715}," when using ",{"type":39,"tag":69,"props":1717,"children":1719},{"className":1718},[],[1720],{"type":45,"value":1721},"template_id",{"type":45,"value":1723}," — Omit the ",{"type":39,"tag":69,"props":1725,"children":1727},{"className":1726},[],[1728],{"type":45,"value":1713},{"type":45,"value":1730}," field. If you include both, ",{"type":39,"tag":69,"props":1732,"children":1734},{"className":1733},[],[1735],{"type":45,"value":1721},{"type":45,"value":1737}," takes precedence and ",{"type":39,"tag":69,"props":1739,"children":1741},{"className":1740},[],[1742],{"type":45,"value":1713},{"type":45,"value":1744}," is ignored.",{"type":39,"tag":48,"props":1746,"children":1747},{},[1748],{"type":39,"tag":52,"props":1749,"children":1750},{},[1751,1756],{"type":39,"tag":56,"props":1752,"children":1753},{},[1754],{"type":45,"value":1755},"Agent usage:",{"type":45,"value":1757}," When sending email on behalf of a user, always report back what was sent — recipients, subject, and the API response status code. Maintain an application-level audit log for all sends.",{"type":39,"tag":102,"props":1759,"children":1760},{},[],{"type":39,"tag":40,"props":1762,"children":1764},{"id":1763},"next-steps",[1765],{"type":45,"value":1766},"Next Steps",{"type":39,"tag":1559,"props":1768,"children":1769},{},[1770,1786,1801,1815],{"type":39,"tag":1563,"props":1771,"children":1772},{},[1773,1778,1780],{"type":39,"tag":56,"props":1774,"children":1775},{},[1776],{"type":45,"value":1777},"Account setup and domain auth:",{"type":45,"value":1779}," ",{"type":39,"tag":69,"props":1781,"children":1783},{"className":1782},[],[1784],{"type":45,"value":1785},"twilio-sendgrid-account-setup",{"type":39,"tag":1563,"props":1787,"children":1788},{},[1789,1794,1795],{"type":39,"tag":56,"props":1790,"children":1791},{},[1792],{"type":45,"value":1793},"Templates and settings:",{"type":45,"value":1779},{"type":39,"tag":69,"props":1796,"children":1798},{"className":1797},[],[1799],{"type":45,"value":1800},"twilio-sendgrid-email-settings",{"type":39,"tag":1563,"props":1802,"children":1803},{},[1804,1809,1810],{"type":39,"tag":56,"props":1805,"children":1806},{},[1807],{"type":45,"value":1808},"Delivery tracking via webhooks:",{"type":45,"value":1779},{"type":39,"tag":69,"props":1811,"children":1813},{"className":1812},[],[1814],{"type":45,"value":98},{"type":39,"tag":1563,"props":1816,"children":1817},{},[1818,1823,1824],{"type":39,"tag":56,"props":1819,"children":1820},{},[1821],{"type":45,"value":1822},"Manage bounces and unsubscribes:",{"type":45,"value":1779},{"type":39,"tag":69,"props":1825,"children":1827},{"className":1826},[],[1828],{"type":45,"value":1829},"twilio-sendgrid-suppressions",{"type":39,"tag":1831,"props":1832,"children":1833},"style",{},[1834],{"type":45,"value":1835},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1837,"total":1958},[1838,1856,1872,1884,1904,1926,1946],{"slug":1839,"name":1839,"fn":1840,"description":1841,"org":1842,"tags":1843,"stars":22,"repoUrl":23,"updatedAt":24},"accessibility-and-inclusive-visualization","make data visualizations accessible","Make data visualizations accessible and inclusive. Use when the user needs chart or diagram accessibility guidance, text alternatives for complex visuals, color and contrast review, keyboard support, reduced-motion behavior for animation or parallax, or an accessibility QA workflow for exported figures, UML-like diagrams, and dashboards.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1844,1847,1850,1853],{"name":1845,"slug":1846,"type":15},"Accessibility","accessibility",{"name":1848,"slug":1849,"type":15},"Charts","charts",{"name":1851,"slug":1852,"type":15},"Data Visualization","data-visualization",{"name":1854,"slug":1855,"type":15},"Design","design",{"slug":1857,"name":1857,"fn":1858,"description":1859,"org":1860,"tags":1861,"stars":22,"repoUrl":23,"updatedAt":1871},"agent-browser","automate browser interactions for agents","Browser automation CLI for AI agents. Use when the user needs to interact with websites, verify dev server output, test web apps, navigate pages, fill forms, click buttons, take screenshots, extract data, or automate any browser task. Also triggers when a dev server starts so you can verify it visually.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1862,1865,1868],{"name":1863,"slug":1864,"type":15},"Agents","agents",{"name":1866,"slug":1867,"type":15},"Browser Automation","browser-automation",{"name":1869,"slug":1870,"type":15},"Testing","testing","2026-04-06T18:41:03.44016",{"slug":1873,"name":1873,"fn":1874,"description":1875,"org":1876,"tags":1877,"stars":22,"repoUrl":23,"updatedAt":1883},"agent-browser-verify","verify dev server output with automated browser","Automated browser verification for dev servers. Triggers when a dev server starts to run a visual gut-check with agent-browser — verifies the page loads, checks for console errors, validates key UI elements, and reports pass\u002Ffail before continuing.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1878,1879,1882],{"name":1866,"slug":1867,"type":15},{"name":1880,"slug":1881,"type":15},"Local Development","local-development",{"name":1869,"slug":1870,"type":15},"2026-04-06T18:41:17.526867",{"slug":1885,"name":1885,"fn":1886,"description":1887,"org":1888,"tags":1889,"stars":22,"repoUrl":23,"updatedAt":1903},"agents-sdk","build AI agents on Cloudflare Workers","Build AI agents on Cloudflare Workers using the Agents SDK. Load when creating stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, or chat applications. Covers Agent class, state management, callable RPC, Workflows integration, and React hooks. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1890,1891,1894,1897,1900],{"name":1863,"slug":1864,"type":15},{"name":1892,"slug":1893,"type":15},"Cloudflare Workers","cloudflare-workers",{"name":1895,"slug":1896,"type":15},"SDK","sdk",{"name":1898,"slug":1899,"type":15},"Serverless","serverless",{"name":1901,"slug":1902,"type":15},"WebSockets","websockets","2026-04-06T18:39:51.717063",{"slug":1905,"name":1905,"fn":1906,"description":1907,"org":1908,"tags":1909,"stars":22,"repoUrl":23,"updatedAt":1925},"ai-elements","build chat UIs with AI Elements","AI Elements component library guidance — pre-built React components for AI interfaces built on shadcn\u002Fui. Use when building chat UIs, message displays, tool call rendering, streaming responses, reasoning panels, or any AI-native interface with the AI SDK.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1910,1913,1916,1919,1922],{"name":1911,"slug":1912,"type":15},"Frontend","frontend",{"name":1914,"slug":1915,"type":15},"React","react",{"name":1917,"slug":1918,"type":15},"shadcn\u002Fui","shadcn-ui",{"name":1920,"slug":1921,"type":15},"UI Components","ui-components",{"name":1923,"slug":1924,"type":15},"Vercel","vercel","2026-04-06T18:40:59.619419",{"slug":1927,"name":1927,"fn":1928,"description":1929,"org":1930,"tags":1931,"stars":22,"repoUrl":23,"updatedAt":1945},"ai-gateway","configure Vercel AI Gateway","Vercel AI Gateway expert guidance. Use when configuring model routing, provider failover, cost tracking, or managing multiple AI providers through a unified API.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1932,1935,1938,1941,1944],{"name":1933,"slug":1934,"type":15},"AI Infrastructure","ai-infrastructure",{"name":1936,"slug":1937,"type":15},"Cost Optimization","cost-optimization",{"name":1939,"slug":1940,"type":15},"LLM","llm",{"name":1942,"slug":1943,"type":15},"Performance","performance",{"name":1923,"slug":1924,"type":15},"2026-04-06T18:40:44.377464",{"slug":1947,"name":1947,"fn":1948,"description":1949,"org":1950,"tags":1951,"stars":22,"repoUrl":23,"updatedAt":1957},"ai-generation-persistence","implement persistence patterns for AI generations","AI generation persistence patterns — unique IDs, addressable URLs, database storage, and cost tracking for every LLM generation",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1952,1953,1956],{"name":1936,"slug":1937,"type":15},{"name":1954,"slug":1955,"type":15},"Database","database",{"name":1939,"slug":1940,"type":15},"2026-04-06T18:41:08.513425",600,{"items":1960,"total":2157},[1961,1982,2005,2022,2038,2055,2074,2086,2100,2114,2126,2141],{"slug":1962,"name":1962,"fn":1963,"description":1964,"org":1965,"tags":1966,"stars":1979,"repoUrl":1980,"updatedAt":1981},"prior-auth-packet-builder","build healthcare prior authorization packets","Build a concise prior authorization packet from local case files and payer policy docs.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1967,1970,1973,1976],{"name":1968,"slug":1969,"type":15},"Documents","documents",{"name":1971,"slug":1972,"type":15},"Healthcare","healthcare",{"name":1974,"slug":1975,"type":15},"Insurance","insurance",{"name":1977,"slug":1978,"type":15},"Regulatory Compliance","regulatory-compliance",28169,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fopenai-agents-python","2026-04-16T05:11:39.180399",{"slug":1983,"name":1983,"fn":1984,"description":1985,"org":1986,"tags":1987,"stars":2002,"repoUrl":2003,"updatedAt":2004},"aspnet-core","build ASP.NET Core web applications","Build, review, refactor, or architect ASP.NET Core web applications using current official guidance for .NET web development. Use when working on Blazor Web Apps, Razor Pages, MVC, Minimal APIs, controller-based Web APIs, SignalR, gRPC, middleware, dependency injection, configuration, authentication, authorization, testing, performance, deployment, or ASP.NET Core upgrades.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1988,1991,1993,1996,1999],{"name":1989,"slug":1990,"type":15},".NET","dotnet",{"name":1992,"slug":1983,"type":15},"ASP.NET Core",{"name":1994,"slug":1995,"type":15},"Blazor","blazor",{"name":1997,"slug":1998,"type":15},"C#","csharp",{"name":2000,"slug":2001,"type":15},"Web Development","web-development",23787,"https:\u002F\u002Fgithub.com\u002Fopenai\u002Fskills","2026-04-12T05:07:02.819491",{"slug":2006,"name":2006,"fn":2007,"description":2008,"org":2009,"tags":2010,"stars":2002,"repoUrl":2003,"updatedAt":2021},"chatgpt-apps","build ChatGPT Apps SDK applications","Build, scaffold, refactor, and troubleshoot ChatGPT Apps SDK applications that combine an MCP server and widget UI. Use when Codex needs to design tools, register UI resources, wire the MCP Apps bridge or ChatGPT compatibility APIs, apply Apps SDK metadata or CSP or domain settings, or produce a docs-aligned project scaffold. Prefer a docs-first workflow by invoking the openai-docs skill or OpenAI developer docs MCP tools before generating code.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2011,2014,2017,2020],{"name":2012,"slug":2013,"type":15},"Apps SDK","apps-sdk",{"name":2015,"slug":2016,"type":15},"ChatGPT","chatgpt",{"name":2018,"slug":2019,"type":15},"MCP","mcp",{"name":9,"slug":8,"type":15},"2026-04-12T05:07:05.468097",{"slug":2023,"name":2023,"fn":2024,"description":2025,"org":2026,"tags":2027,"stars":2002,"repoUrl":2003,"updatedAt":2037},"cli-creator","build CLIs from API docs","Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script. Use when the user wants Codex to create a command-line tool that can run from any repo, expose composable read\u002Fwrite commands, return stable JSON, manage auth, and pair with a companion skill.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2028,2031,2034],{"name":2029,"slug":2030,"type":15},"API Development","api-development",{"name":2032,"slug":2033,"type":15},"CLI","cli",{"name":2035,"slug":2036,"type":15},"Codex","codex","2026-04-12T05:07:04.132762",{"slug":2039,"name":2039,"fn":2040,"description":2041,"org":2042,"tags":2043,"stars":2002,"repoUrl":2003,"updatedAt":2054},"cloudflare-deploy","deploy projects to Cloudflare","Deploy applications and infrastructure to Cloudflare using Workers, Pages, and related platform services. Use when the user asks to deploy, host, publish, or set up a project on Cloudflare.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2044,2047,2050,2051],{"name":2045,"slug":2046,"type":15},"Cloudflare","cloudflare",{"name":2048,"slug":2049,"type":15},"Cloudflare Pages","cloudflare-pages",{"name":1892,"slug":1893,"type":15},{"name":2052,"slug":2053,"type":15},"Deployment","deployment","2026-04-12T05:07:14.275118",{"slug":2056,"name":2056,"fn":2057,"description":2058,"org":2059,"tags":2060,"stars":2002,"repoUrl":2003,"updatedAt":2073},"define-goal","define and set measurable project goals","Help the user define a concrete, measurable goal before starting work, especially when they ask to use the goal tool, create a goal, set an objective, clarify success criteria, or turn a fuzzy intention into a quantitative outcome. Use this skill for goal creation and goal refinement only; it does not manage durable snapshots, decision logs, or long-running execution artifacts.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2061,2064,2067,2070],{"name":2062,"slug":2063,"type":15},"Productivity","productivity",{"name":2065,"slug":2066,"type":15},"Project Management","project-management",{"name":2068,"slug":2069,"type":15},"Strategy","strategy",{"name":2071,"slug":2072,"type":15},"Task Management","task-management","2026-05-23T06:17:16.870838",{"slug":2075,"name":2075,"fn":2076,"description":2077,"org":2078,"tags":2079,"stars":2002,"repoUrl":2003,"updatedAt":2085},"figma","translate Figma designs into code","Use the Figma MCP server to fetch design context, screenshots, variables, and assets from Figma, and to translate Figma nodes into production code. Trigger when a task involves Figma URLs, node IDs, design-to-code implementation, or Figma MCP setup and troubleshooting.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2080,2081,2083,2084],{"name":1854,"slug":1855,"type":15},{"name":2082,"slug":2075,"type":15},"Figma",{"name":1911,"slug":1912,"type":15},{"name":2018,"slug":2019,"type":15},"2026-04-12T05:06:47.939943",{"slug":2087,"name":2087,"fn":2088,"description":2089,"org":2090,"tags":2091,"stars":2002,"repoUrl":2003,"updatedAt":2099},"figma-code-connect-components","connect Figma designs to code components","Connects Figma design components to code components using Code Connect mapping tools. Use when user says \"code connect\", \"connect this component to code\", \"map this component\", \"link component to code\", \"create code connect mapping\", or wants to establish mappings between Figma designs and code implementations. For canvas writes via `use_figma`, use `figma-use`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2092,2093,2096,2097,2098],{"name":1854,"slug":1855,"type":15},{"name":2094,"slug":2095,"type":15},"Design System","design-system",{"name":2082,"slug":2075,"type":15},{"name":1911,"slug":1912,"type":15},{"name":1920,"slug":1921,"type":15},"2026-05-10T05:59:52.971881",{"slug":2101,"name":2101,"fn":2102,"description":2103,"org":2104,"tags":2105,"stars":2002,"repoUrl":2003,"updatedAt":2113},"figma-create-design-system-rules","generate design system rules from Figma","Generates custom design system rules for the user's codebase. Use when user says \"create design system rules\", \"generate rules for my project\", \"set up design rules\", \"customize design system guidelines\", or wants to establish project-specific conventions for Figma-to-code workflows. Requires Figma MCP server connection.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2106,2107,2108,2111,2112],{"name":1854,"slug":1855,"type":15},{"name":2094,"slug":2095,"type":15},{"name":2109,"slug":2110,"type":15},"Documentation","documentation",{"name":2082,"slug":2075,"type":15},{"name":1911,"slug":1912,"type":15},"2026-05-16T06:07:47.821474",{"slug":2115,"name":2115,"fn":2116,"description":2117,"org":2118,"tags":2119,"stars":2002,"repoUrl":2003,"updatedAt":2125},"figma-implement-design","translate Figma designs into application code","Translates Figma designs into production-ready application code with 1:1 visual fidelity. Use when implementing UI code from Figma files, when user mentions \"implement design\", \"generate code\", \"implement component\", provides Figma URLs, or asks to build components matching Figma specs. For Figma canvas writes via `use_figma`, use `figma-use`.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2120,2121,2122,2123,2124],{"name":1854,"slug":1855,"type":15},{"name":2082,"slug":2075,"type":15},{"name":1911,"slug":1912,"type":15},{"name":1920,"slug":1921,"type":15},{"name":2000,"slug":2001,"type":15},"2026-05-16T06:07:40.583615",{"slug":2127,"name":2127,"fn":2128,"description":2129,"org":2130,"tags":2131,"stars":2002,"repoUrl":2003,"updatedAt":2140},"hatch-pet","create animated pets for Codex","Create, repair, validate, visually QA, and package Codex-compatible animated pets and pet spritesheets from character art, generated images, company or prospect brand cues, or visual references. Use when a user wants a lightweight-worker Codex pet workflow, a non-pixel custom pet style, a prospect or company mascot pet, or a full 8x9 animated pet atlas with transparent unused cells, QA contact sheets, and pet.json packaging. This skill composes the installed $imagegen system skill for visual generation and uses bundled scripts for deterministic spritesheet assembly.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2132,2135,2136,2139],{"name":2133,"slug":2134,"type":15},"Animation","animation",{"name":2035,"slug":2036,"type":15},{"name":2137,"slug":2138,"type":15},"Creative","creative",{"name":1854,"slug":1855,"type":15},"2026-05-02T05:31:48.48485",{"slug":2142,"name":2142,"fn":2143,"description":2144,"org":2145,"tags":2146,"stars":2002,"repoUrl":2003,"updatedAt":2156},"imagegen","generate and edit raster images","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.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2147,2148,2149,2152,2155],{"name":2137,"slug":2138,"type":15},{"name":1854,"slug":1855,"type":15},{"name":2150,"slug":2151,"type":15},"Image Generation","image-generation",{"name":2153,"slug":2154,"type":15},"Images","images",{"name":9,"slug":8,"type":15},"2026-05-15T06:23:24.312127",675]