Campaigns

GET /v1/campaigns/{campaignId}

One campaign and its delivery report.

All Campaigns endpoints

Authentication

Send an API key as a bearer token. This endpoint does not state a specific permission in the specification, so give your key the least it needs and check the response rather than assuming.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X GET https://api.zinndigital.com/v1/campaigns/{campaignId} \
  -H "Authorization: Bearer zdk_live_…"

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

One campaign with its full delivery report: how many are queued, sent, delivered, bounced, opened, failed and skipped, and why each skip happened.

Parameters

NameTypeRequiredWhat it is
campaignId (path)stringYes

Response

NameTypeRequiredWhat it is
idstringYes
org_idstringYes
namestringYes
template_idstringYes
segment_idstringNo
purposestring<marketing, transactional>Yes
channelsstring[]Yes
statusstring<draft, scheduled, sending, paused, sent, cancelled, failed>Yes
scheduled_forstringNo
include_not_in_good_standingbooleanNo
total_recipientsintegerYes
skippedCampaignSkipCountsYes⛔ Every skip counted separately and never silent, and **every one is present even when it is zero**. "4,127 recipients, 312 skipped — not in good standing" is rendered from thes…
deliveryCampaignDeliveryCountsNo⛔ `sent` is NOT `delivered`. `sent` means a provider accepted the hand-off; `delivered` means the receiving server accepted it, which arrives later by webhook. A screen showing…
last_errorstringNo
created_atstringYes
started_atstringNo
finished_atstringNo

Errors this endpoint can return

401 · 403 · 404