| name | customerio-debug-bundle |
| description | Collect Customer.io debug evidence for support tickets.
Use when creating support requests, investigating delivery
failures, or documenting integration issues.
Trigger: "customer.io debug", "customer.io support ticket",
"collect customer.io logs", "customer.io diagnostics".
|
| allowed-tools | Read, Grep, Bash(curl:*), Bash(npx:*) |
| version | 1.14.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","customer-io","debugging","support"] |
| compatibility | Designed for Claude Code, also compatible with Codex and OpenClaw |
Customer.io Debug Bundle
Current State
!node --version 2>/dev/null || echo 'Node.js: not installed'
!npm list customerio-node 2>/dev/null | grep customerio || echo 'customerio-node: not installed'
Overview
Collect a comprehensive debug bundle for Customer.io support tickets: API connectivity tests, user profile inspection, SDK version info, environment validation, and a structured support report.
Prerequisites
- Customer.io API credentials configured
curl available for API tests
- User ID or email of the affected user/delivery
Instructions
Step 1: API Connectivity Diagnostic
#!/usr/bin/env bash
set -euo pipefail
echo "=== Customer.io Debug Bundle ==="
echo "Timestamp: $(date -u +%Y-%m-%dT%H:%M:%SZ)"
echo ""
echo "--- Platform Status ---"
curl -s "https://status.customer.io/api/v2/status.json" \
| python3 -c "import sys,json; d=json.load(sys.stdin); print(f'Status: {d[\"status\"][\"description\"]}')" \
2>/dev/null || echo "Could not reach status page"
echo ""
echo "--- Track API Auth ---"
TRACK_RESULT=$(curl -s -o /dev/null -w "%{http_code}" \
-u "${CUSTOMERIO_SITE_ID}:${CUSTOMERIO_TRACK_API_KEY}" \
-X PUT "https://track.customer.io/api/v1/customers/debug-test-$(date +%s)" \
-H "Content-Type: application/json" \
-d '{"email":"debug-test@example.com"}')
echo "Track API: HTTP "
APP_RESULT=$(curl -s -o /dev/null -w \
-H \
)
host track.customer.io api.customer.io;
LATENCY=$(curl -s -o /dev/null -w )