Skip to main content
skill CX Codex GP ChatGPT official · OpenAI

twilio-sendgrid-engagement-quality — Codex skill: how to install

Monitors email deliverability and sender reputation using SendGrid Engagement Quality scores. Useful for diagnosing inbox placement problems and low engagement.

Install into Codex · Skills CLI (Vercel) All methods and platforms ↓
npx skills add openai/plugins --skill twilio-sendgrid-engagement-quality -a codex
Open on GitHub

What twilio-sendgrid-engagement-quality does

This skill teaches your agent to inspect SendGrid Engagement Quality (SEQ) scores. Scores use a 1 to 5 scale, tracking how mailbox providers perceive your messages. The rating relies on five metrics: engagement_recency, open_rate, bounce_classification, bounce_rate, and spam_rate. The scoring formula is not public. A single low metric drags down the overall score.

Requests hit /v3/engagementquality/scores for date ranges or /v3/engagementquality/subusers/scores for individual subusers. History queries can go back up to 90 days. Scores update daily. Because calculations run asynchronously, a 202 response indicates the data is not ready yet.

Queries require a SendGrid API key starting with SG.. The skill does not support the Twilio Email API on comms.twilio.com. Access demands a Pro or Premier plan, enabled open tracking, and at least 1,000 sent messages within the last 30 days. Accounts missing any prerequisite receive responses without score values.

What it helps with

  • fetch Engagement Quality scores across date ranges
  • diagnose mailbox placement issues by metric breakdown
  • audit subuser sender reputation for specific dates
  • identify spam complaints and bounce spikes

Example prompts for the agent

  • Check SendGrid Engagement Quality scores for the past seven days
  • Query GET /v3/engagementquality/scores from 2026-04-01 to 2026-04-20
  • Retrieve SEQ subuser metrics for 2026-04-22

How to install twilio-sendgrid-engagement-quality

1Skills CLI (Vercel)

npx skills add openai/plugins --skill twilio-sendgrid-engagement-quality -a codex

2Manually: put the files in place

.agents/skills/twilio-sendgrid-engagement-quality/SKILL.md

For all projects use ~/.agents/skills/

Step by step, with commands for each platform: Codex skills: how to install, where they live, how to call them

Questions about twilio-sendgrid-engagement-quality

How to install twilio-sendgrid-engagement-quality in Codex?

Run npx skills add openai/plugins --skill twilio-sendgrid-engagement-quality -a codex. You can also place the .agents/skills/twilio-sendgrid-engagement-quality/SKILL.md file into your project.

What does twilio-sendgrid-engagement-quality do?

It provides reference instructions and endpoints for inspecting SendGrid Engagement Quality scores. The skill tracks sender reputation across five metrics to identify deliverability bottlenecks.

What are the requirements to receive SEQ scores?

Your account must run on a Pro or Premier Email API plan with open tracking enabled. In addition, you need at least 1,000 messages sent over the prior 30 days and an API key prefixed with SG..

Source text

SKILL.md · MIT
---
name: twilio-sendgrid-engagement-quality
description: >
  Monitor email program health with SendGrid Engagement Quality (SEQ)
  scores. Covers the SEQ API endpoints, the 5 scoring metrics
  (engagement recency, open rate, bounce classification, bounce rate,
  spam rate), eligibility requirements, and interpreting scores for
  deliverability improvement. Use when diagnosing SendGrid deliverability
  issues or monitoring sender reputation. Requires a SendGrid API key
  (SG.-prefix) — not applicable to the Twilio Email API (comms.twilio.com).
---

## Overview

SendGrid Engagement Quality (SEQ) scores measure how "wanted" your email is by recipients. Higher scores (1-5 scale) correlate with better inbox placement. SEQ is a diagnostic tool — it tells you where your email program is healthy and where it needs improvement.

**Key insight:** SEQ scores are correlated with deliverability. A higher score means more emails land in inboxes, not spam folders.

---

## Eligibility Requirements

Your account must meet ALL conditions to receive scores:
1. **Pro or Premier Email API plan** — SEQ is not available on Free or Essentials plans
2. **Open tracking enabled** in SendGrid settings
3. **Minimum 1,000 messages sent** in the previous 30 days

If not eligible, the `score` and `metrics` fields are omitted from API responses entirely.

---

## The 5 Metrics

All scores range from **1 (poor) to 5 (excellent)**.

| Metric | What it measures | How to improve |
|--------|-----------------|---------------|
| **engagement_recency** | Are you sending to an engaged audience? Based on how regularly messages are opened and clicked. | Remove inactive subscribers. Implement re-engagement campaigns before pruning. |
| **open_rate** | Degree to which your audience opens your messages. | Improve subject lines. Segment audiences by engagement level. |
| **bounce_classification** | Rejection by mailbox providers due to reputation or spam-like content. | Fix content triggering spam filters. Warm IPs properly. Monitor domain reputation. |
| **bounce_rate** | Are you sending to addresses that don't exist? Based on permanent bounces to invalid mailboxes. | Implement double opt-in. Clean lists quarterly. Use Email Validation API before sending. |
| **spam_rate** | Are recipients marking your email as spam? Based on recipients who open then report spam. | Only send to opted-in recipients. Make unsubscribe easy. Match content to expectations set at signup. |

**Note:** The overall `score` is NOT a simple average of the 5 metrics — the weighting formula is opaque. A single low metric (e.g., spam_rate = 1) can drag the overall score significantly.

---

## API Endpoints

### Get Your Scores (Date Range)

`GET /v3/engagementquality/scores`

| Parameter | Required | Description |
|-----------|----------|-------------|
| `from` | Yes | Start date (YYYY-MM-DD, UTC) |
| `to` | Yes | End date (YYYY-MM-DD, UTC) |

**Python**
```python
import os, requests

headers = {"Authorization": f"Bearer {os.environ['SENDGRID_API_KEY']}"}
response = requests.get(
    "https://api.sendgrid.com/v3/engagementquality/scores",
    params={"from": "2026-04-01", "to": "2026-04-23"},
    headers=headers
)

if response.status_code == 200:
    for entry in response.json()["result"]:
        print(f"Date: {entry['date']}, Score: {entry.get('score', 'N/A')}")
        metrics = entry.get("metrics", {})
        for metric, value in metrics.items():
            print(f"  {metric}: {value}")
elif response.status_code == 202:
    print("Scores not yet calculated — try again later")
```

### Get Subuser Scores (Single Date)

`GET /v3/engagementquality/subusers/scores`

| Parameter | Required | Description |
|-----------|----------|-------------|
| `date` | Yes | Date (YYYY-MM-DD, UTC) |
| `limit` | No | Results per page (default 1000, max 1000) |
| `after_key` | No | Pagination cursor |

Returns paginated results with `_metadata.next_params.after_key` for pagination.

---

## Response Patterns

**200 OK** — Scores available:
```json
{
    "result": [{
        "user_id": "12345",
        "username": "myaccount",
        "date": "2026-04-22",
        "score": 4,
        "metrics": {
            "engagement_recency": 4,
            "open_rate": 5,
            "bounce_classification": 3,
            "bounce_rate": 4,
            "spam_rate": 5
        }
    }]
}
```

**202 Accepted** — Scores are calculated asynchronously. Not yet available for the requested date. Retry later.

**Score or metrics omitted** — Account/subuser is not eligible (open tracking off or <1,000 sends in 30 days).

---

## CANNOT

- **Cannot get scores without open tracking enabled** — This is a hard prerequisite. No tracking = no score.
- **Cannot get scores with fewer than 1,000 messages in 30 days** — Low-volume senders are ineligible.
- **Cannot query more than 90 days in the past** — Date range is limited to the last 90 days.
- **Cannot get real-time scores** — Scores are calculated asynchronously (daily). A `202` response means "not ready yet."
- **Cannot determine the exact weighting formula** — The overall score is not a simple average. Individual metric weights are not published.
- **Email Validation API is a separate paid feature** — Referenced in bounce_rate improvement guidance, but requires Pro or Premier plan. Not included in base plan.
- **Subuser endpoint accepts only a single date** — Not a date range. Query one day at a time.

---

## Next Steps

- **Improve bounce rate:** `twilio-sendgrid-suppressions`
- **Track delivery events:** `twilio-sendgrid-webhooks`
- **Account setup:** `twilio-sendgrid-account-setup`

© Twilio · MIT · openai/plugins

Similar skills

All skills for Backend and APIs →

From the same set593

The whole set →
twilio-isv-sms-best-practices A skill for teams embedding SMS into a SaaS platform where customers message their own end users. Covers A2P 10DLC and toll-free onboarding, subaccounts and billing. CX Codex GP ChatGPT ★ 7,604repo stars twilio-sendgrid-webhooks Guides Codex in building SendGrid Event Webhook handlers with batch ingestion, ECDSA signature verification, and deduplication across all 11 event types. CX Codex GP ChatGPT ★ 7,604repo stars twilio-sendgrid-suppressions This skill helps investigate SendGrid suppressions and manage category-based unsubscribes. Use it when diagnosing delivery problems or building unsubscribe flows. CX Codex GP ChatGPT ★ 7,604repo stars twilio-sendgrid-inbound-parse A skill that walks your agent through SendGrid Inbound Parse: MX records, parsed vs raw mode, attachments and the usual pitfalls. CX Codex GP ChatGPT ★ 7,604repo stars twilio-sendgrid-email-settings Configure SendGrid templates, email tracking, and branded links with this skill. Use it when changing message content or delivery settings. CX Codex GP ChatGPT ★ 7,604repo stars twilio-sendgrid-email-send A skill that shows the agent how to send mail through the SendGrid v3 Mail Send API: single sends, batch sends with templates, scheduled sends and attachments. Requires an SG-prefixed API key. CX Codex GP ChatGPT ★ 7,604repo stars twilio-sendgrid-deliverability-advisor Diagnoses SendGrid email delivery issues, spam placement, and domain blocks. Guides senders through authentication checks and automated IP warmup routines. CX Codex GP ChatGPT ★ 7,604repo stars twilio-sendgrid-account-setup Prepares SendGrid for email delivery with API keys, sender checks, domain authentication, and SDK setup. Use it before other SendGrid skills. CX Codex GP ChatGPT ★ 7,604repo stars

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor