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.sh calls GET /v3/logs/{sg_message_id} for one specific message and computes an event_summary. If the full sg_message_id is not known, it can first call POST /v3/logs with recipient and sent time to resolve the full ID, then automatically call the detail endpoint.
  • scripts/query_email_logs.sh calls POST /v3/logs to search Email Logs by recipient, status, time, optional subject, raw query, and fuzzy message ID matching.

Inputs:

  • full sg_message_id from 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 Send message_id for the search-then-detail path
  • SendGrid API key from --api-key, SENDGRID_API_KEY, or the locally saved SendGrid key

Output:

Installs
42
GitHub Stars
1
First Seen
Jul 8, 2026
sendgrid-email-log — finpeakinc/frevana-skills