Campaigns

POST /v1/campaigns/{campaignId}/send

Start the durable send.

Tutti gli endpoint Campaigns

Autenticazione

Invia una chiave API come bearer token. Questo endpoint non specifica un permesso specifico nella specifica, quindi assegna alla tua chiave i permessi minimi necessari e verifica la risposta invece di fare supposizioni.

L'ID della tua organizzazione va qui

Questo endpoint accetta org_id come campo nel corpo JSON.

L'identificativo della tua organizzazione si trova nella schermata delle chiavi API nella tua dashboard, accanto alla chiave stessa. È lo stesso identificativo in ogni chiamata che effettui.

Provalo

Sostituisci qualsiasi elemento tra parentesi angolari con i tuoi valori e il segnaposto key con una chiave dalla tua dashboard.

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

Hai effettuato l'accesso? La console API nella tua dashboard inserisce il tuo ID organizzazione reale e la tua chiave personale, ed esegue la richiesta sull'API live in modo da poter vedere la risposta effettiva. Apri questo endpoint nella console API

Dettagli

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.

Parametri

NomeTipoObbligatorioChe cos'è
campaignId (path)string

Corpo della richiesta

NomeTipoObbligatorioChe cos'è
confirmstringNo
org_idstringNo

Risposta

NomeTipoObbligatorioChe cos'è
idstring
org_idstring
namestring
template_idstring
segment_idstringNo
purposestring<marketing, transactional>
channelsstring[]
statusstring<draft, scheduled, sending, paused, sent, cancelled, failed>
scheduled_forstringNo
include_not_in_good_standingbooleanNo
total_recipientsinteger
skippedCampaignSkipCounts⛔ 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_atstring
started_atstringNo
finished_atstringNo

Errori che questo endpoint può restituire

401 · 403 · 404 · 409 · 422