Campaigns

POST /v1/campaigns/{campaignId}/control

Pause, resume or cancel a running send.

Tất cả các điểm cuối Campaigns

Xác thực

Gửi khóa API dưới dạng mã thông báo bearer. Điểm cuối này không nêu rõ quyền cụ thể trong thông số kỹ thuật, vì vậy hãy cấp cho khóa của bạn quyền tối thiểu cần thiết và kiểm tra phản hồi thay vì phỏng đoán.

Nơi điền id tổ chức của bạn

Endpoint này nhận org_id làm một trường trong phần thân JSON.

Mã tổ chức của bạn nằm ở màn hình khóa API trong bảng điều khiển, ngay bên cạnh khóa đó. Đây là cùng một mã trong mọi lệnh gọi mà bạn thực hiện.

Dùng thử

Thay thế bất kỳ nội dung nào trong ngoعل (angle brackets) bằng giá trị của riêng bạn và trình giữ chỗ key bằng một key từ trang tổng quan của bạn.

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>> }'

Đã đăng nhập? Bảng điều khiển API trong trang quản lý của bạn sẽ tự điền ID tổ chức thực tế và khóa của riêng bạn, sau đó chạy yêu cầu đối với API trực tiếp để bạn có thể xem phản hồi thực tế. Mở điểm cuối này trong bảng điều khiển API

Chi tiết

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.

Tham số

TênLoạiBắt buộcNội dung này là gì
campaignId (path)string

Nội dung yêu cầu

TênLoạiBắt buộcNội dung này là gì
actionstring<pause, resume, cancel>
org_idstringKhông

Phản hồi

TênLoạiBắt buộcNội dung này là gì
idstring
org_idstring
namestring
template_idstring
segment_idstringKhông
purposestring<marketing, transactional>
channelsstring[]
statusstring<draft, scheduled, sending, paused, sent, cancelled, failed>
scheduled_forstringKhông
include_not_in_good_standingbooleanKhông
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…
deliveryCampaignDeliveryCountsKhông⛔ `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_errorstringKhông
created_atstring
started_atstringKhông
finished_atstringKhông
signal_deliveredbooleanKhông⛔ 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…

Các lỗi điểm cuối này có thể trả về

401 · 403 · 404 · 422