Campaigns

POST /v1/campaigns/{campaignId}/send

Start the durable send.

Lahat ng Campaigns endpoint

Pagpapatotoo

Magpadala ng API key bilang bearer token. Ang endpoint na ito ay hindi naglatag ng tiyak na pahintulot sa pagtutukoy, kaya ibigay sa iyong key ang pinakamababang kailangan nito at suriin ang tugon sa halip na umasa.

Kung saan mapupunta ang id ng iyong organisasyon

Ang endpoint na ito ay kumukuha ng org_id bilang isang field sa JSON body.

Ang id ng iyong organisasyon ay nasa screen ng mga API key sa iyong dashboard, sa tabi mismo ng key. Ito ang parehong id sa bawat tawag na gagawin mo.

Subukan ito

Palitan ang anuman sa loob ng mga panaklong na may anggulo ng iyong sariling mga halaga, at ang placeholder ng key na may key mula sa iyong dashboard.

curl -X POST https://api.zinndigital.com/v1/campaigns/{campaignId}/send \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{  }'

Nakalagda? Ang API console sa iyong dashboard ay awtomatikong naglalagay ng iyong tunay na ID ng organisasyon at sariling susi, at pinapatakbo ang kahilingan laban sa live na API upang makita mo ang aktwal na tugon. Buksan ang endpoint na ito sa console ng API

Mga Detalye

Returns immediately; the send runs as a Temporal workflow that resumes rather than truncating. A send above the confirmation threshold requires `confirm` to equal the campaign's name exactly — enforced here, because a control that lives only in the client is one an API call walks past.

Mga Parameter

PangalanUriKailanganAno ito
campaignId (path)stringOo

Katawan ng kahilingan

PangalanUriKailanganAno ito
confirmstringHindi
org_idstringHindi

Tugon

PangalanUriKailanganAno ito
idstringOo
org_idstringOo
namestringOo
template_idstringOo
segment_idstringHindi
purposestring<marketing, transactional>Oo
channelsstring[]Oo
statusstring<draft, scheduled, sending, paused, sent, cancelled, failed>Oo
scheduled_forstringHindi
include_not_in_good_standingbooleanHindi
total_recipientsintegerOo
skippedCampaignSkipCountsOo⛔ 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…
deliveryCampaignDeliveryCountsHindi⛔ `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_errorstringHindi
created_atstringOo
started_atstringHindi
finished_atstringHindi

Mga error na maibabalik ng endpoint na ito

401 · 403 · 404 · 409 · 422