curl --request POST \
--url https://api.linkedcamp.com/v2/linkedin_account_list \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"keyword": "<string>",
"status": "<string>",
"userId": "<string>"
}
'import requests
url = "https://api.linkedcamp.com/v2/linkedin_account_list"
payload = {
"keyword": "<string>",
"status": "<string>",
"userId": "<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({keyword: '<string>', status: '<string>', userId: '<string>'})
};
fetch('https://api.linkedcamp.com/v2/linkedin_account_list', 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/linkedin_account_list",
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([
'keyword' => '<string>',
'status' => '<string>',
'userId' => '<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/linkedin_account_list"
payload := strings.NewReader("{\n \"keyword\": \"<string>\",\n \"status\": \"<string>\",\n \"userId\": \"<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/linkedin_account_list")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"keyword\": \"<string>\",\n \"status\": \"<string>\",\n \"userId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkedcamp.com/v2/linkedin_account_list")
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 \"keyword\": \"<string>\",\n \"status\": \"<string>\",\n \"userId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyusing RestSharp;
var options = new RestClientOptions("https://api.linkedcamp.com/v2/linkedin_account_list");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-Api-Key", "<api-key>");
request.AddJsonBody("{\n \"keyword\": \"<string>\",\n \"status\": \"<string>\",\n \"userId\": \"<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>"
}
}List LinkedIn accounts
Read-only. It changes nothing.
The LinkedIn accounts connected to this account. A campaign sends from exactly one of them, attached via campaign_update; if there is more than one, ask the user which. Whether an account has a Sales Navigator or Recruiter seat is NOT in this output — those flags exist on the account record but are not exposed by the API, and the worker only sets them during a send. Ask the user, because INMAILS steps and /sales/ or /talent/ lead sources depend on it. Check isValid, isPaused, accountRestricted and weeklyLimitReached before assigning an account — a campaign attached to a broken account will launch but never send. This lists; it does not connect. Adding a LinkedIn account takes a password and a verification PIN and has no endpoint at all — it is done in the web app. Attaching an existing account to a campaign is campaign_update, and changing the account’s own limits is linkedin_account_update.
curl --request POST \
--url https://api.linkedcamp.com/v2/linkedin_account_list \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <api-key>' \
--data '
{
"keyword": "<string>",
"status": "<string>",
"userId": "<string>"
}
'import requests
url = "https://api.linkedcamp.com/v2/linkedin_account_list"
payload = {
"keyword": "<string>",
"status": "<string>",
"userId": "<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({keyword: '<string>', status: '<string>', userId: '<string>'})
};
fetch('https://api.linkedcamp.com/v2/linkedin_account_list', 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/linkedin_account_list",
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([
'keyword' => '<string>',
'status' => '<string>',
'userId' => '<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/linkedin_account_list"
payload := strings.NewReader("{\n \"keyword\": \"<string>\",\n \"status\": \"<string>\",\n \"userId\": \"<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/linkedin_account_list")
.header("X-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"keyword\": \"<string>\",\n \"status\": \"<string>\",\n \"userId\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.linkedcamp.com/v2/linkedin_account_list")
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 \"keyword\": \"<string>\",\n \"status\": \"<string>\",\n \"userId\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyusing RestSharp;
var options = new RestClientOptions("https://api.linkedcamp.com/v2/linkedin_account_list");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("X-Api-Key", "<api-key>");
request.AddJsonBody("{\n \"keyword\": \"<string>\",\n \"status\": \"<string>\",\n \"userId\": \"<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
Read a SUB-ACCOUNT instead of your own data. Accepted only from an agency owner, and only for an account inside your own agency: take the id from subaccount_list and never construct or guess one. An id outside that list is refused. Omit it to read your own data, and name the account to the user when you pass it.
Response
The result, as JSON. Writes answer { "ok": true, "message": ..., "data": ... }.
The response is of type object.
