Campaigns

POST /v1/campaigns/{campaignId}/control

Pause, resume or cancel a running send.

Wszystkie punkty końcowe Campaigns

Uwierzytelnianie

Wyślij klucz API jako token bearer. Ten punkt końcowy nie określa konkretnego uprawnienia w specyfikacji, więc nadaj swojemu kluczowi minimum potrzebnych uprawnień i sprawdź odpowiedź zamiast zakładać.

Miejsce na identyfikator organizacji

Ten punkt końcowy przyjmuje org_id jako pole w treści JSON.

Identyfikator Twojej organizacji znajduje się na ekranie kluczy API w Twoim panelu, obok samego klucza. Jest to ten sam identyfikator w każdym wywołaniu, które wykonujesz.

Wypróbuj

Zastąp wszystko w nawiasach ostrych własnymi wartościami, a zastępczy znacznik klucza kluczem ze swojego pulpitu nawigacyjnego.

curl -X POST https://api.zinndigital.com/v1/campaigns/{campaignId}/control \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "action": <string<pause, resume, cancel>> }'

Zalogowany? Konsola API w Twoim panelu uzupełnia rzeczywiste identyfikator organizacji oraz Twój własny klucz i wykonuje żądanie względem aktywnego API, dzięki czemu możesz zobaczyć rzeczywistą odpowiedź. Otwórz ten punkt końcowy w konsoli API

Szczegóły

The decision is written to the database first and signalled second, so a worker that restarted and never saw the signal still stops on its next batch.

Parametry

NazwaTypWymaganeCo to jest
campaignId (path)stringTak

Treść żądania

NazwaTypWymaganeCo to jest
actionstring<pause, resume, cancel>Tak
org_idstringNie

Odpowiedź

NazwaTypWymaganeCo to jest
idstringTak
org_idstringTak
namestringTak
template_idstringTak
segment_idstringNie
purposestring<marketing, transactional>Tak
channelsstring[]Tak
statusstring<draft, scheduled, sending, paused, sent, cancelled, failed>Tak
scheduled_forstringNie
include_not_in_good_standingbooleanNie
total_recipientsintegerTak
skippedCampaignSkipCountsTak⛔ 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…
deliveryCampaignDeliveryCountsNie⛔ `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_errorstringNie
created_atstringTak
started_atstringNie
finished_atstringNie
signal_deliveredbooleanNie⛔ Reported honestly. `false` means the decision is recorded and the running workflow was not reachable — it will still stop on its next batch, but that is a real difference an o…

Błędy, które ten punkt końcowy może zwrócić

401 · 403 · 404 · 422