Developer recipe

Build a campaign performance report

Read workspace totals, compare recent campaigns, and inspect the recipients behind an unusual result.

Result
You have reply-rate totals plus per-contact delivery and reply status for a selected campaign.
Time
6 minutes
Key scopes
read

1. Read workspace totals

Terminal
export GRAMCLAW_BASE_URL="https://gramclaw.com"
export GRAMCLAW_API_KEY="gc_live_replace_with_your_key"

curl -s "$GRAMCLAW_BASE_URL/api/v1/analytics" \
  -H "Authorization: Bearer $GRAMCLAW_API_KEY"

2. Inspect one campaign

Choose an id from the campaigns array, then inspect up to 1,000 recorded recipients and their send, delivery, read, and reply timestamps.

Terminal
export CAMPAIGN_ID="replace_with_campaign_id"

curl -s "$GRAMCLAW_BASE_URL/api/v1/campaigns/$CAMPAIGN_ID" \
  -H "Authorization: Bearer $GRAMCLAW_API_KEY"
  • reply_rate is returned as a decimal: 0.1925 means 19.25%.
  • Compare campaigns with similar audiences and enough sends; small samples can be misleading.
  • Analytics returns the 50 most recent campaigns.
Chat on Telegram