Skip to content

Pause immediately; nothing goes out afterwards

POST
/v1/campaigns/{campaign}:pause
curl --request POST \
--url https://api.replifier.com/v1/campaigns/cmp_01hx0000000000000000000000:pause \
--header 'Authorization: Bearer <token>'
campaign
required
string
/^cmp_[a-z0-9]{26}$/

Example

cmp_01hx0000000000000000000000

Campaign after the action

Media typeapplication/json
object
campaign
required
object
id
required
string
brandId
required
string
name
required
string
kind
required

plan: per-contact send plan (M6.9); its rows are supplied by whoever builds it

string
Allowed values: campaign plan
status
required
string
Allowed values: draft scheduled awaiting_approval preparing sending paused completed cancelled failed
channel
required

Sending channel

string
Allowed values: email whatsapp sms
subject
required
string
nullable
preheader
required
string
nullable
fromName
required
string
nullable
fromEmail
required
string
nullable
replyTo
required
string
nullable
connectionId
required
string
nullable
senderId
required

Messaging sender (messaging_senders.id); null for email campaigns

string
nullable
phoneField
required

Field in contact.fields holding the E.164 number; null for email campaigns

string
nullable
trackingMode
required
string
Allowed values: full anonymous none
gdprSafeSwitch
required

Whether GDPR contacts without current consent are excluded

boolean
plainText
required

Hand-edited plain text; null = generated from the HTML at send time (DAT-3166)

string
nullable
plainTextEdited
required

“Hand-edited” flag: the email is sent with plainText instead of the generated text

boolean
plainTextStale
required

The HTML changed after the plain text was edited: warn and offer to regenerate it (plainText: null) or keep it (save it again)

boolean
notifyOnComplete
required

Whether the person who launched the campaign is notified by email when sending finishes

boolean
trackingParams
required

Query string template appended to the destination of each tracked link (S5.4)

string
nullable
content
required
object
key
additional properties
nullable
templateVersionId
required

Template version it was built from (pinned outside draft)

string
nullable
audience
required
object
lists
Array<string>
default: <= 50 items
segments
Array<string>
default: <= 50 items
excludeLists
Array<string>
default: <= 50 items
excludeSegments
Array<string>
default: <= 50 items
scheduledAt
required
string
nullable
localSend
required
object
mode
required

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

string
Allowed values: local_time optimal
date
required

Local date, YYYY-MM-DD

string
/^\d{4}-\d{2}-\d{2}$/
time
required

Local time HH:MM; with optimal, the fallback time for contacts without history

string
/^([01]\d|2[0-3]):[0-5]\d$/
autoPause
required

Custom auto-pause thresholds; null = the defaults (bounces 5%, complaints 0.1%, over 1,000 accepted sends)

object
bounceRate
required

Bounce rate over accepted sends that pauses the campaign (0.05 = 5%)

number
<= 1
complaintRate
required

Complaint rate that pauses the campaign (0.001 = 0.1%)

number
<= 1
minDeliveries
required

Minimum accepted sends before measuring

integer
>= 1 <= 10000000
deferredByWarmup

Only when fetching a single campaign: rows that connection warm-up moved to a later day

number
abTest
required

Normalized A/B test (variants keyed A..D)

object
key
additional properties
nullable
ab
required
object
phase
required
string
nullable
Allowed values: testing decided
winner
required
string
nullable
waitUntil
required
string
nullable
decidedBy
required

system if chosen by the criterion, or the id of whoever picked it manually

string
nullable
reason
required
string
nullable
Allowed values: opens clicks manual tie no_data
decidedAt
required
string
nullable
pauseReason
required
string
nullable
approvalRequestedBy
required
string
nullable
approvalDecidedBy
required
string
nullable
approvalReason
required
string
nullable
approvalAskReason
required

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.

string
nullable
Allowed values: audience_changed audience_grew segment_changed
approvedRecipients
required

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.

integer
nullable
failureReason
required

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)

string
nullable
statusInfo
required

Unified status with reason (if any) and recommended action as i18n keys

object
status
required
string
Allowed values: draft scheduled awaiting_approval preparing sending paused completed cancelled failed
reason
required

Full i18n key of the reason (e.g. campaign.pause_reason.bounce_rate); null if not applicable

string
nullable
recommendedAction
required

Full i18n key of the recommended action (e.g. campaign.action.resume_or_cancel)

string
createdBy
required
string
nullable
counts
object
queued
required
number
sending
required
number
accepted
required
number
skipped
required
number
failed
required
number
attachments

Campaign attachments (S5.6); only returned when fetching a single campaign

Array<object>
object
id
required
string
fileVersionId
required
string
name
required
string
mime
required
string
bytes
required
number
position
required
integer
createdAt
required
string
createdAt
required
string
updatedAt
required
string
requeued
number

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

No session, expired session, or invalid, expired or revoked API key

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Does not exist or is not visible to you

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Conflict

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Internal error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}

Service temporarily unavailable

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string

Example

{
"error": {
"code": "not_found"
}
}