Campaigns
Get a campaign run report
Returns delivery outcomes, topic unsubscribes, replies, and skip reasons for an email campaign run.
GET
Returns delivery outcomes, topic unsubscribes, replies, and skip reasons for an email campaign run. Non-email runs return 404. Namespace-scoped reads require an existing audience topic in that namespace. Opens and clicks are directional counts of unique recipients excluding machine events, not exact measurements.
apiKeyheader
x-api-key<token>id*stringMatch
^camp_[0-9a-hjkmnp-tv-z]{16,24}$runId*stringMatch
^crun_[0-9a-hjkmnp-tv-z]{16,24}$CampaignRunReport
application/json- response
campaignId*CampaignIdMatch
^camp_[0-9a-hjkmnp-tv-z]{16,24}$runId*CampaignRunIdMatch
^crun_[0-9a-hjkmnp-tv-z]{16,24}$totalRecipients*integerRange
0 <= value <= 9007199254740991dispatchedCount*integerRange
0 <= value <= 9007199254740991failedCount*integerRange
0 <= value <= 9007199254740991skippedCount*integerRange
0 <= value <= 9007199254740991deliveredCount*integerRange
0 <= value <= 9007199254740991hardBounceCount*integerRange
0 <= value <= 9007199254740991softBounceCount*integerRange
0 <= value <= 9007199254740991complaintCount*integerRange
0 <= value <= 9007199254740991engagement*unsubscribesByTopic*array<>replyCount*integerRange
0 <= value <= 9007199254740991skippedReasons*array<>import { createClient } from "samva";const samva = createClient({ apiKey: process.env.SAMVA_API_KEY! });const result = await samva.campaigns.getRunReport({ "id": "example", "runId": "example"});Example Response
{ "campaignId": "string", "runId": "string", "totalRecipients": 0, "dispatchedCount": 0, "failedCount": 0, "skippedCount": 0, "deliveredCount": 0, "hardBounceCount": 0, "softBounceCount": 0, "complaintCount": 0, "engagement": { "measurement": "directional", "uniqueOpens": 0, "uniqueClicks": 0 }, "unsubscribesByTopic": [ { "topicId": "string", "count": 0 } ], "replyCount": 0, "skippedReasons": [ { "reason": "unsubscribed", "count": 0 } ]}