Skip to main content
GET
Check whether a campaign can be approved

Authorizations

Authorization
string
header
required

Your API token (af_…) as the Basic-auth username, with an empty password.

Path Parameters

campaignId
string
required

The campaign's id (24-character hex ObjectId), as returned by POST /business/campaigns or as the campaignId of a GET /business/campaigns row.

Response

Success

campaignId
string
required
ready
boolean
required

Whether approve would start the campaign now.

reason
enum<string> | null
required

The first check the campaign fails, as approve's refusal names it; null when it is ready.

Available options:
CAMPAIGN_NOT_APPROVABLE,
CAMPAIGN_HAS_NO_LIST,
CAMPAIGN_HAS_NO_STEPS,
STEP_BODY_MISSING,
STEP_SUBJECT_MISSING,
STEP_TOPIC_MISSING,
CONDITION_BRANCH_EMPTY,
SEQUENCE_STRUCTURE_INVALID,
CLICK_TRACKING_REQUIRED,
CAMPAIGN_MAILBOX_NOT_PERMITTED,
NO_ACTIVE_EMAIL_ACCOUNTS,
NO_ACTIVE_LINKEDIN_ACCOUNTS,
null
contacts
object
required
dueNow
object
required

What goes out as soon as the campaign runs.