Send now: prepares the audience and starts (or requests approval if it exceeds the organization threshold). The 202 response can also carry `status = awaiting_approval` when preparation finds that the real audience (materialized members of large segments, changed data) exceeds the threshold: whoever requested the send and whoever created the campaign cannot approve it
const url = 'https://api.replifier.com/v1/campaigns/cmp_01hx0000000000000000000000:send';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.replifier.com/v1/campaigns/cmp_01hx0000000000000000000000:send \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Example
cmp_01hx0000000000000000000000Responses
Section titled “Responses”Campaign after the action
object
object
plan: per-contact send plan (M6.9); its rows are supplied by whoever builds it
Sending channel
Messaging sender (messaging_senders.id); null for email campaigns
Field in contact.fields holding the E.164 number; null for email campaigns
Whether GDPR contacts without current consent are excluded
Hand-edited plain text; null = generated from the HTML at send time (DAT-3166)
“Hand-edited” flag: the email is sent with plainText instead of the generated text
The HTML changed after the plain text was edited: warn and offer to regenerate it (plainText: null) or keep it (save it again)
Whether the person who launched the campaign is notified by email when sending finishes
Query string template appended to the destination of each tracked link (S5.4)
object
Template version it was built from (pinned outside draft)
object
object
local_time: at the requested local time in each contact’s time zone; optimal: at the hour with the most real opens for the contact in the last 90 days
Local date, YYYY-MM-DD
Local time HH:MM; with optimal, the fallback time for contacts without history
Custom auto-pause thresholds; null = the defaults (bounces 5%, complaints 0.1%, over 1,000 accepted sends)
object
Bounce rate over accepted sends that pauses the campaign (0.05 = 5%)
Complaint rate that pauses the campaign (0.001 = 0.1%)
Minimum accepted sends before measuring
Only when fetching a single campaign: rows that connection warm-up moved to a later day
Normalized A/B test (variants keyed A..D)
object
object
system if chosen by the criterion, or the id of whoever picked it manually
Why preparation requested approval again at start (DAT-2854): audience_changed (never approved and the audience crossed the threshold), audience_grew (approved, but the audience grew by more than 10%) or segment_changed (approved, but the definition of a segment or list changed). Null if the approval was requested by :send or :schedule.
Contacts in the audience when it was approved (DAT-2854); with more than 10% above this, or with a changed segment or list, the campaign returns to awaiting_approval at start. Null if not approved.
Why it ended up failed (e.g. segment_invalid: a segment in its audience is deleted or no longer exists; list_invalid: a list in its audience is deleted or no longer exists; campaign_tags_unknown: the email uses a tag, field, list or segment that no longer exists)
Unified status with reason (if any) and recommended action as i18n keys
object
Full i18n key of the reason (e.g. campaign.pause_reason.bounce_rate); null if not applicable
Full i18n key of the recommended action (e.g. campaign.action.resume_or_cancel)
object
Campaign attachments (S5.6); only returned when fetching a single campaign
object
Example
{ "campaign": { "kind": "campaign", "status": "draft", "channel": "email", "trackingMode": "full", "audience": { "lists": [], "segments": [], "excludeLists": [], "excludeSegments": [] }, "localSend": { "mode": "local_time" }, "ab": { "phase": "testing", "reason": "opens" }, "approvalAskReason": "audience_changed", "statusInfo": { "status": "draft" } }}Invalid data
object
object
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
object
object
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
object
object
Example
{ "error": { "code": "not_found" }}Does not exist or is not visible to you
object
object
Example
{ "error": { "code": "not_found" }}Conflict
object
object
Example
{ "error": { "code": "not_found" }}Internal error
object
object
Example
{ "error": { "code": "not_found" }}Service temporarily unavailable
object
object
Example
{ "error": { "code": "not_found" }}