CreateCampaignFromTemplate

View as Markdown
## Creates a new campaign by cloning the sequence and schedule of an existing campaign (the template). The new campaign is created in DRAFT status. The sequence (workflow) and schedule are copied from the template campaign identified by `campaignIdForTemplate`; you supply the new name, lead list, sender accounts and exclude options. After creation, call **StartCampaign** (`POST /api/public/campaign/StartCampaign?campaignId=<id>`) to activate it. ### Body Parameters - **campaignIdForTemplate** _(long, required)_: ID of the existing campaign to use as the template. Its sequence and schedule are copied to the new campaign. - **name** _(string, required)_: The new campaign name. 1-50 characters. - **linkedInUserListId** _(long, required)_: ID of the lead list for the new campaign. Must exist and be of type USER_LIST. - **linkedInAcccountIdsForCampaign** _(long[], required)_: Sender LinkedIn account IDs. 1-100 items. All accounts must exist and have valid auth. - **excludeContactedFromOtherCampaigns** _(bool, required)_: Skip leads already in any other campaign. - **excludeHasOtherAccConversations** _(bool, required)_: Skip leads that already have conversations with other sender accounts. - **excludeContactedFromSenderInOtherCampaign** _(bool, required)_: Skip leads the sender accounts have already contacted in other campaigns. - **excludeListId** _(long, optional)_: A separate list of leads to always exclude. Must not equal `linkedInUserListId`.

Headers

X-API-KEYstringOptional

API key header using this scheme. Example: “X-API-KEY: {API_KEY}

Request

This endpoint expects an object.
campaignIdForTemplateintegerRequired
namestringRequired
linkedInUserListIdintegerRequired
excludeContactedFromOtherCampaignsbooleanRequired
excludeHasOtherAccConversationsbooleanRequired
excludeContactedFromSenderInOtherCampaignbooleanRequired
linkedInAcccountIdsForCampaignlist of integersRequired
excludeListIdany or nullOptional

Response

OK
campaignIdinteger