Campaigns

Get a campaign run report

Returns delivery outcomes, topic unsubscribes, replies, and skip reasons for an email campaign run.

GET
/v1/campaigns/{id}/runs/{runId}/report

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.

Authorization

apiKey
headerx-api-key<token>

Path Parameters

id*string
Match^camp_[0-9a-hjkmnp-tv-z]{16,24}$
runId*string
Match^crun_[0-9a-hjkmnp-tv-z]{16,24}$

Response Body

CampaignRunReport

application/json
  1. response
campaignId*CampaignId
Match^camp_[0-9a-hjkmnp-tv-z]{16,24}$
runId*CampaignRunId
Match^crun_[0-9a-hjkmnp-tv-z]{16,24}$
totalRecipients*integer
Range0 <= value <= 9007199254740991
dispatchedCount*integer
Range0 <= value <= 9007199254740991
failedCount*integer
Range0 <= value <= 9007199254740991
skippedCount*integer
Range0 <= value <= 9007199254740991
deliveredCount*integer
Range0 <= value <= 9007199254740991
hardBounceCount*integer
Range0 <= value <= 9007199254740991
softBounceCount*integer
Range0 <= value <= 9007199254740991
complaintCount*integer
Range0 <= value <= 9007199254740991
engagement*
unsubscribesByTopic*array<>
replyCount*integer
Range0 <= value <= 9007199254740991
skippedReasons*array<>
Example Request
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    }  ]}

Related documentation