sendgrid-email-log
Installation
SKILL.md
SendGrid Email Log
Retrieve activity for a specific SendGrid message with the Email Logs API.
Purpose
This skill is for reading SendGrid Email Logs and per-message activity.
It has two lookup paths:
scripts/get_email_log.shcallsGET /v3/logs/{sg_message_id}for one specific message and computes anevent_summary. If the fullsg_message_idis not known, it can first callPOST /v3/logswith recipient and sent time to resolve the full ID, then automatically call the detail endpoint.scripts/query_email_logs.shcallsPOST /v3/logsto search Email Logs by recipient, status, time, optional subject, raw query, and fuzzy message ID matching.
Inputs:
- full
sg_message_idfrom SendGrid Email Logs for the direct by-ID path, or any useful Email Logs search filters such as recipient, sender, sent time, subject, status, start/end time, raw query, and optional Mail Sendmessage_idfor the search-then-detail path - SendGrid API key from
--api-key,SENDGRID_API_KEY, or the locally saved SendGrid key
Output: