curl --request POST \
--url https://api.linkedcamp.com/v2/campaign_update \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"campaignId": "<string>",
"title": "<string>",
"linkedAccountId": "<string>",
"emailAccountIds": [
"<string>"
],
"timezone": "<string>",
"schedule": {},
"campaginLimits": {
"CONNECT": 1,
"MESSAGE": 1,
"INMAILS": 1,
"ENGAGEMENT": 1,
"FOLLOW": 1
},
"tags": [
"<string>"
],
"assignTo": {},
"leadsPriority": "<string>",
"stopOnReply": true,
"skipProfiles": true,
"uniqueProfiles": true,
"premiumProfiles": true,
"connectionOutreach": true,
"snOutreach": true,
"prioritizeNewLeads": true,
"reload": true,
"trackOpens": true,
"trackClicks": true,
"emailAsText": true,
"pauseCampaign": true,
"scheduledAt": "<string>",
"agentId": "<string>"
}
'import requests
url = "https://api.linkedcamp.com/v2/campaign_update"
payload = {
"campaignId": "<string>",
"title": "<string>",
"linkedAccountId": "<string>",
"emailAccountIds": ["<string>"],
"timezone": "<string>",
"schedule": {},
"campaginLimits": {
"CONNECT": 1,
"MESSAGE": 1,
"INMAILS": 1,
"ENGAGEMENT": 1,
"FOLLOW": 1
},
"tags": ["<string>"],
"assignTo": {},
"leadsPriority": "<string>",
"stopOnReply": True,
"skipProfiles": True,
"uniqueProfiles": True,
"premiumProfiles": True,
"connectionOutreach": True,
"snOutreach": True,
"prioritizeNewLeads": True,
"reload": True,
"trackOpens": True,
"trackClicks": True,
"emailAsText": True,
"pauseCampaign": True,
"scheduledAt": "<string>",
"agentId": "<string>"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
campaignId: '<string>',
title: '<string>',
linkedAccountId: '<string>',
emailAccountIds: ['<string>'],
timezone: '<string>',
schedule: {},
campaginLimits: {CONNECT: 1, MESSAGE: 1, INMAILS: 1, ENGAGEMENT: 1, FOLLOW: 1},
tags: ['<string>'],
assignTo: {},
leadsPriority: '<string>',
stopOnReply: true,
skipProfiles: true,
uniqueProfiles: true,
premiumProfiles: true,
connectionOutreach: true,
snOutreach: true,
prioritizeNewLeads: true,
reload: true,
trackOpens: true,
trackClicks: true,
emailAsText: true,
pauseCampaign: true,
scheduledAt: '<string>',
agentId: '<string>'
})
};
fetch('https://api.linkedcamp.com/v2/campaign_update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.linkedcamp.com/v2/campaign_update",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'campaignId' => '<string>',
'title' => '<string>',
'linkedAccountId' => '<string>',
'emailAccountIds' => [
'<string>'
],
'timezone' => '<string>',
'schedule' => [
],
'campaginLimits' => [
'CONNECT' => 1,
'MESSAGE' => 1,
'INMAILS' => 1,
'ENGAGEMENT' => 1,
'FOLLOW' => 1
],
'tags' => [
'<string>'
],
'assignTo' => [
],
'leadsPriority' => '<string>',
'stopOnReply' => true,
'skipProfiles' => true,
'uniqueProfiles' => true,
'premiumProfiles' => true,
'connectionOutreach' => true,
'snOutreach' => true,
'prioritizeNewLeads' => true,
'reload' => true,
'trackOpens' => true,
'trackClicks' => true,
'emailAsText' => true,
'pauseCampaign' => true,
'scheduledAt' => '<string>',
'agentId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.linkedcamp.com/v2/campaign_update"
payload := strings.NewReader("{\n \"campaignId\": \"<string>\",\n \"title\": \"<string>\",\n \"linkedAccountId\": \"<string>\",\n \"emailAccountIds\": [\n \"<string>\"\n ],\n \"timezone\": \"<string>\",\n \"schedule\": {},\n \"campaginLimits\": {\n \"CONNECT\": 1,\n \"MESSAGE\": 1,\n \"INMAILS\": 1,\n \"ENGAGEMENT\": 1,\n \"FOLLOW\": 1\n },\n \"tags\": [\n \"<string>\"\n ],\n \"assignTo\": {},\n \"leadsPriority\": \"<string>\",\n \"stopOnReply\": true,\n \"skipProfiles\": true,\n \"uniqueProfiles\": true,\n \"premiumProfiles\": true,\n \"connectionOutreach\": true,\n \"snOutreach\": true,\n \"prioritizeNewLeads\": true,\n \"reload\": true,\n \"trackOpens\": true,\n \"trackClicks\": true,\n \"emailAsText\": true,\n \"pauseCampaign\": true,\n \"scheduledAt\": \"<string>\",\n \"agentId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.linkedcamp.com/v2/campaign_update")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"campaignId\": \"<string>\",\n \"title\": \"<string>\",\n \"linkedAccountId\": \"<string>\",\n \"emailAccountIds\": [\n \"<string>\"\n ],\n \"timezone\": \"<string>\",\n \"schedule\": {},\n \"campaginLimits\": {\n \"CONNECT\": 1,\n \"MESSAGE\": 1,\n \"INMAILS\": 1,\n \"ENGAGEMENT\": 1,\n \"FOLLOW\": 1\n },\n \"tags\": [\n \"<string>\"\n ],\n \"assignTo\": {},\n \"leadsPriority\": \"<string>\",\n \"stopOnReply\": true,\n \"skipProfiles\": true,\n \"uniqueProfiles\": true,\n \"premiumProfiles\": true,\n \"connectionOutreach\": true,\n \"snOutreach\": true,\n \"prioritizeNewLeads\": true,\n \"reload\": true,\n \"trackOpens\": true,\n \"trackClicks\": true,\n \"emailAsText\": true,\n \"pauseCampaign\": true,\n \"scheduledAt\": \"<string>\",\n \"agentId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkedcamp.com/v2/campaign_update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"campaignId\": \"<string>\",\n \"title\": \"<string>\",\n \"linkedAccountId\": \"<string>\",\n \"emailAccountIds\": [\n \"<string>\"\n ],\n \"timezone\": \"<string>\",\n \"schedule\": {},\n \"campaginLimits\": {\n \"CONNECT\": 1,\n \"MESSAGE\": 1,\n \"INMAILS\": 1,\n \"ENGAGEMENT\": 1,\n \"FOLLOW\": 1\n },\n \"tags\": [\n \"<string>\"\n ],\n \"assignTo\": {},\n \"leadsPriority\": \"<string>\",\n \"stopOnReply\": true,\n \"skipProfiles\": true,\n \"uniqueProfiles\": true,\n \"premiumProfiles\": true,\n \"connectionOutreach\": true,\n \"snOutreach\": true,\n \"prioritizeNewLeads\": true,\n \"reload\": true,\n \"trackOpens\": true,\n \"trackClicks\": true,\n \"emailAsText\": true,\n \"pauseCampaign\": true,\n \"scheduledAt\": \"<string>\",\n \"agentId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyusing RestSharp;
var options = new RestClientOptions("https://api.linkedcamp.com/v2/campaign_update");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-Api-Key", "<api-key>");
request.AddJsonBody("{\n \"campaignId\": \"<string>\",\n \"title\": \"<string>\",\n \"linkedAccountId\": \"<string>\",\n \"emailAccountIds\": [\n \"<string>\"\n ],\n \"timezone\": \"<string>\",\n \"schedule\": {},\n \"campaginLimits\": {\n \"CONNECT\": 1,\n \"MESSAGE\": 1,\n \"INMAILS\": 1,\n \"ENGAGEMENT\": 1,\n \"FOLLOW\": 1\n },\n \"tags\": [\n \"<string>\"\n ],\n \"assignTo\": {},\n \"leadsPriority\": \"<string>\",\n \"stopOnReply\": true,\n \"skipProfiles\": true,\n \"uniqueProfiles\": true,\n \"premiumProfiles\": true,\n \"connectionOutreach\": true,\n \"snOutreach\": true,\n \"prioritizeNewLeads\": true,\n \"reload\": true,\n \"trackOpens\": true,\n \"trackClicks\": true,\n \"emailAsText\": true,\n \"pauseCampaign\": true,\n \"scheduledAt\": \"<string>\",\n \"agentId\": \"<string>\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
{}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}Update campaign settings
Write. It changes data in your account.
Change a campaign’s SETTINGS: title, sending accounts, schedule, daily limits, timezone and every safety toggle. Only the fields you pass are changed. Attaching accounts is done here: one linkedAccountId for LinkedIn steps, and emailAccountIds — a list — for EMAIL steps. Ask the user which accounts when there is a choice. NOT this endpoint: campaign status. It cannot start, pause, resume, archive or delete a campaign, and there is no status parameter. To start one use campaign_launch; to pause or resume one, campaign_set_status; to remove one, campaign_delete. Archiving is web-app only and has no endpoint at all — say so rather than looking for a substitute. Nor does it touch the sequence (flow_set) or the audience (campaign_set_source). One side effect worth knowing: changing linkedAccountId rewrites that account onto every lead already in the campaign, not just future ones.
curl --request POST \
--url https://api.linkedcamp.com/v2/campaign_update \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"campaignId": "<string>",
"title": "<string>",
"linkedAccountId": "<string>",
"emailAccountIds": [
"<string>"
],
"timezone": "<string>",
"schedule": {},
"campaginLimits": {
"CONNECT": 1,
"MESSAGE": 1,
"INMAILS": 1,
"ENGAGEMENT": 1,
"FOLLOW": 1
},
"tags": [
"<string>"
],
"assignTo": {},
"leadsPriority": "<string>",
"stopOnReply": true,
"skipProfiles": true,
"uniqueProfiles": true,
"premiumProfiles": true,
"connectionOutreach": true,
"snOutreach": true,
"prioritizeNewLeads": true,
"reload": true,
"trackOpens": true,
"trackClicks": true,
"emailAsText": true,
"pauseCampaign": true,
"scheduledAt": "<string>",
"agentId": "<string>"
}
'import requests
url = "https://api.linkedcamp.com/v2/campaign_update"
payload = {
"campaignId": "<string>",
"title": "<string>",
"linkedAccountId": "<string>",
"emailAccountIds": ["<string>"],
"timezone": "<string>",
"schedule": {},
"campaginLimits": {
"CONNECT": 1,
"MESSAGE": 1,
"INMAILS": 1,
"ENGAGEMENT": 1,
"FOLLOW": 1
},
"tags": ["<string>"],
"assignTo": {},
"leadsPriority": "<string>",
"stopOnReply": True,
"skipProfiles": True,
"uniqueProfiles": True,
"premiumProfiles": True,
"connectionOutreach": True,
"snOutreach": True,
"prioritizeNewLeads": True,
"reload": True,
"trackOpens": True,
"trackClicks": True,
"emailAsText": True,
"pauseCampaign": True,
"scheduledAt": "<string>",
"agentId": "<string>"
}
headers = {
"X-Api-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
campaignId: '<string>',
title: '<string>',
linkedAccountId: '<string>',
emailAccountIds: ['<string>'],
timezone: '<string>',
schedule: {},
campaginLimits: {CONNECT: 1, MESSAGE: 1, INMAILS: 1, ENGAGEMENT: 1, FOLLOW: 1},
tags: ['<string>'],
assignTo: {},
leadsPriority: '<string>',
stopOnReply: true,
skipProfiles: true,
uniqueProfiles: true,
premiumProfiles: true,
connectionOutreach: true,
snOutreach: true,
prioritizeNewLeads: true,
reload: true,
trackOpens: true,
trackClicks: true,
emailAsText: true,
pauseCampaign: true,
scheduledAt: '<string>',
agentId: '<string>'
})
};
fetch('https://api.linkedcamp.com/v2/campaign_update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.linkedcamp.com/v2/campaign_update",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'campaignId' => '<string>',
'title' => '<string>',
'linkedAccountId' => '<string>',
'emailAccountIds' => [
'<string>'
],
'timezone' => '<string>',
'schedule' => [
],
'campaginLimits' => [
'CONNECT' => 1,
'MESSAGE' => 1,
'INMAILS' => 1,
'ENGAGEMENT' => 1,
'FOLLOW' => 1
],
'tags' => [
'<string>'
],
'assignTo' => [
],
'leadsPriority' => '<string>',
'stopOnReply' => true,
'skipProfiles' => true,
'uniqueProfiles' => true,
'premiumProfiles' => true,
'connectionOutreach' => true,
'snOutreach' => true,
'prioritizeNewLeads' => true,
'reload' => true,
'trackOpens' => true,
'trackClicks' => true,
'emailAsText' => true,
'pauseCampaign' => true,
'scheduledAt' => '<string>',
'agentId' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.linkedcamp.com/v2/campaign_update"
payload := strings.NewReader("{\n \"campaignId\": \"<string>\",\n \"title\": \"<string>\",\n \"linkedAccountId\": \"<string>\",\n \"emailAccountIds\": [\n \"<string>\"\n ],\n \"timezone\": \"<string>\",\n \"schedule\": {},\n \"campaginLimits\": {\n \"CONNECT\": 1,\n \"MESSAGE\": 1,\n \"INMAILS\": 1,\n \"ENGAGEMENT\": 1,\n \"FOLLOW\": 1\n },\n \"tags\": [\n \"<string>\"\n ],\n \"assignTo\": {},\n \"leadsPriority\": \"<string>\",\n \"stopOnReply\": true,\n \"skipProfiles\": true,\n \"uniqueProfiles\": true,\n \"premiumProfiles\": true,\n \"connectionOutreach\": true,\n \"snOutreach\": true,\n \"prioritizeNewLeads\": true,\n \"reload\": true,\n \"trackOpens\": true,\n \"trackClicks\": true,\n \"emailAsText\": true,\n \"pauseCampaign\": true,\n \"scheduledAt\": \"<string>\",\n \"agentId\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.linkedcamp.com/v2/campaign_update")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"campaignId\": \"<string>\",\n \"title\": \"<string>\",\n \"linkedAccountId\": \"<string>\",\n \"emailAccountIds\": [\n \"<string>\"\n ],\n \"timezone\": \"<string>\",\n \"schedule\": {},\n \"campaginLimits\": {\n \"CONNECT\": 1,\n \"MESSAGE\": 1,\n \"INMAILS\": 1,\n \"ENGAGEMENT\": 1,\n \"FOLLOW\": 1\n },\n \"tags\": [\n \"<string>\"\n ],\n \"assignTo\": {},\n \"leadsPriority\": \"<string>\",\n \"stopOnReply\": true,\n \"skipProfiles\": true,\n \"uniqueProfiles\": true,\n \"premiumProfiles\": true,\n \"connectionOutreach\": true,\n \"snOutreach\": true,\n \"prioritizeNewLeads\": true,\n \"reload\": true,\n \"trackOpens\": true,\n \"trackClicks\": true,\n \"emailAsText\": true,\n \"pauseCampaign\": true,\n \"scheduledAt\": \"<string>\",\n \"agentId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkedcamp.com/v2/campaign_update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"campaignId\": \"<string>\",\n \"title\": \"<string>\",\n \"linkedAccountId\": \"<string>\",\n \"emailAccountIds\": [\n \"<string>\"\n ],\n \"timezone\": \"<string>\",\n \"schedule\": {},\n \"campaginLimits\": {\n \"CONNECT\": 1,\n \"MESSAGE\": 1,\n \"INMAILS\": 1,\n \"ENGAGEMENT\": 1,\n \"FOLLOW\": 1\n },\n \"tags\": [\n \"<string>\"\n ],\n \"assignTo\": {},\n \"leadsPriority\": \"<string>\",\n \"stopOnReply\": true,\n \"skipProfiles\": true,\n \"uniqueProfiles\": true,\n \"premiumProfiles\": true,\n \"connectionOutreach\": true,\n \"snOutreach\": true,\n \"prioritizeNewLeads\": true,\n \"reload\": true,\n \"trackOpens\": true,\n \"trackClicks\": true,\n \"emailAsText\": true,\n \"pauseCampaign\": true,\n \"scheduledAt\": \"<string>\",\n \"agentId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyusing RestSharp;
var options = new RestClientOptions("https://api.linkedcamp.com/v2/campaign_update");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-Api-Key", "<api-key>");
request.AddJsonBody("{\n \"campaignId\": \"<string>\",\n \"title\": \"<string>\",\n \"linkedAccountId\": \"<string>\",\n \"emailAccountIds\": [\n \"<string>\"\n ],\n \"timezone\": \"<string>\",\n \"schedule\": {},\n \"campaginLimits\": {\n \"CONNECT\": 1,\n \"MESSAGE\": 1,\n \"INMAILS\": 1,\n \"ENGAGEMENT\": 1,\n \"FOLLOW\": 1\n },\n \"tags\": [\n \"<string>\"\n ],\n \"assignTo\": {},\n \"leadsPriority\": \"<string>\",\n \"stopOnReply\": true,\n \"skipProfiles\": true,\n \"uniqueProfiles\": true,\n \"premiumProfiles\": true,\n \"connectionOutreach\": true,\n \"snOutreach\": true,\n \"prioritizeNewLeads\": true,\n \"reload\": true,\n \"trackOpens\": true,\n \"trackClicks\": true,\n \"emailAsText\": true,\n \"pauseCampaign\": true,\n \"scheduledAt\": \"<string>\",\n \"agentId\": \"<string>\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
{}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}{
"error": {
"code": "UNAUTHENTICATED",
"message": "<string>",
"hint": "<string>"
}
}Body
Tag ids applied to every lead in this campaign — this identifies the campaign's leads, so it should be a tag belonging to THIS campaign. Never reuse another campaign's tag: the two campaigns' leads then become indistinguishable. Mint one with tag_create (short label, interest NEUTRAL) and pass its id. Pass [] to remove all tags.
AI agent that answers replies in this campaign's inbox. Pass null to detach it. Never set this on your own: an agent writes to real prospects without further approval. Ask the user whether they want one, and offer both routes — pick an existing agent from agent_list, or build one with agent_upsert, give it material with kb_upsert and kb_attach, then agent_train. A campaign with no agent is perfectly normal; replies just come to the inbox.
Response
The result, as JSON. Writes answer { "ok": true, "message": ..., "data": ... }.
The response is of type object.
