Skip to main content
POST
Restore a campaign's body to a previously saved version. The restore is

Authorizations

X-API-Key
string
header
required

Company API key - scoped to a specific company. Generate from the Integrations page in your dashboard.

Path Parameters

campaignId
string
required
versionId
string
required

Response

The campaign after restoring the selected version

Marketing campaign object

bodyHtml
string

HTML body of the email

companyId
string

Company this campaign belongs to

completedAt
string

ISO timestamp when sending completed

created_date
string

ISO timestamp when the campaign was created

failedCount
integer

Number of recipients that failed to send

fieldMappings
object

Field mapping for resolving recipient email from a list row

fromName
string

Display name shown in the From: header

id
string

Campaign ID

listId
string

Smart list ID whose rows become recipients

name
string

Internal campaign name

replyTo
string

Reply-To email address used on outgoing emails

scheduleType
string

Schedule type (now, scheduled)

scheduledAt
string

ISO timestamp at which sending begins (for scheduled campaigns)

senderProfile
object

Summary of the sender profile

senderProfileId
string

Sender profile ID

sentCount
integer

Number of recipients the email has been sent to

skippedCount
integer

Number of list rows skipped (missing email, duplicate, etc.)

smartList
object

Summary of the associated smart list

startedAt
string

ISO timestamp when sending started

status
string

Campaign status (draft, scheduled, sending, sent, failed, cancelled)

subject
string

Email subject line

timezone
string

IANA timezone used to interpret scheduledAt

totalRecipients
integer

Total rows in the associated smart list at read time

uid
string

User ID that created the campaign

updated_date
string

ISO timestamp when the campaign was last updated