curl --request POST \
--url https://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-newsletters \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"linkedin_account_sid": "<string>",
"page_size": 50,
"cursor": "<string>",
"author_organization_id": "<string>"
}
'import requests
url = "https://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-newsletters"
payload = {
"linkedin_account_sid": "<string>",
"page_size": 50,
"cursor": "<string>",
"author_organization_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Team-SID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
linkedin_account_sid: '<string>',
page_size: 50,
cursor: '<string>',
author_organization_id: '<string>'
})
};
fetch('https://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-newsletters', 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://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-newsletters",
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([
'linkedin_account_sid' => '<string>',
'page_size' => 50,
'cursor' => '<string>',
'author_organization_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Team-SID: <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://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-newsletters"
payload := strings.NewReader("{\n \"linkedin_account_sid\": \"<string>\",\n \"page_size\": 50,\n \"cursor\": \"<string>\",\n \"author_organization_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Team-SID", "<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://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-newsletters")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"linkedin_account_sid\": \"<string>\",\n \"page_size\": 50,\n \"cursor\": \"<string>\",\n \"author_organization_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-newsletters")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Team-SID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"linkedin_account_sid\": \"<string>\",\n \"page_size\": 50,\n \"cursor\": \"<string>\",\n \"author_organization_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "action",
"action": "<string>",
"item": "<unknown>",
"result": {
"rows": [
{
"newsletter_id": "<string>",
"newsletter_urn": "<string>",
"title": "<string>",
"description": "<string>",
"url": "<string>",
"issue_count": 123,
"subscriber_count": 123,
"publish_frequency": {
"duration": 123,
"unit": "<string>"
},
"author_profile_id": "<string>",
"author_organization_id": "<string>",
"logo_url": "<string>"
}
],
"paging": {
"next_cursor": "<string>",
"total": 123
},
"creation_enabled": true,
"activity_log": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
},
"pacing": {
"linkedin_account_sid": "<string>",
"limit_type": "<string>",
"next_call_after": "<string>",
"remaining_today": 1
}
}Get LinkedIn newsletters
One page of the newsletters (LinkedIn content series) the account, or a COMPANY PAGE it administers (author_organization_id), may publish articles into (wire get-newsletters): newsletter_id (what create_linkedin_article takes), title, url, issue_count, subscriber_count, publish_frequency. An account without the newsletter feature answers rows [] (creation_enabled describes the product, not the entitlement). A PRIVATE read that spends the one Content bucket, posting (20/day in series of 3 at a 1200 s pause; free plan 4). Offset-paged: page_size 1-100 (default 20), pass paging.next_cursor back as cursor; paging.total is NOT reliable on this finder (LinkedIn answered 0 with two newsletters live), the end of the list is a null next_cursor.
Contract:
- MCP tool
get_linkedin_newsletters, registry packagemcp.linkedin/linkedin_posting, mountlinkedin.content. - Operation
action, response envelopeaction. - Flags: paced: a call spends the
postingsmart-limit bucket of the account it runs on, and calls of one bucket are spaced per account. A short wait is slept by the server; a longer one answers 429rate_limitedwithcontext.retry_after, and the same call succeeds from that moment. Parallel calls on one account queue behind each other.
curl --request POST \
--url https://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-newsletters \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"linkedin_account_sid": "<string>",
"page_size": 50,
"cursor": "<string>",
"author_organization_id": "<string>"
}
'import requests
url = "https://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-newsletters"
payload = {
"linkedin_account_sid": "<string>",
"page_size": 50,
"cursor": "<string>",
"author_organization_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'Team-SID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
linkedin_account_sid: '<string>',
page_size: 50,
cursor: '<string>',
author_organization_id: '<string>'
})
};
fetch('https://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-newsletters', 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://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-newsletters",
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([
'linkedin_account_sid' => '<string>',
'page_size' => 50,
'cursor' => '<string>',
'author_organization_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json",
"Team-SID: <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://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-newsletters"
payload := strings.NewReader("{\n \"linkedin_account_sid\": \"<string>\",\n \"page_size\": 50,\n \"cursor\": \"<string>\",\n \"author_organization_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Team-SID", "<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://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-newsletters")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"linkedin_account_sid\": \"<string>\",\n \"page_size\": 50,\n \"cursor\": \"<string>\",\n \"author_organization_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gtm-api.com/linkedin/v4/api/linkedin-posting/get-newsletters")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Team-SID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"linkedin_account_sid\": \"<string>\",\n \"page_size\": 50,\n \"cursor\": \"<string>\",\n \"author_organization_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "action",
"action": "<string>",
"item": "<unknown>",
"result": {
"rows": [
{
"newsletter_id": "<string>",
"newsletter_urn": "<string>",
"title": "<string>",
"description": "<string>",
"url": "<string>",
"issue_count": 123,
"subscriber_count": 123,
"publish_frequency": {
"duration": 123,
"unit": "<string>"
},
"author_profile_id": "<string>",
"author_organization_id": "<string>",
"logo_url": "<string>"
}
],
"paging": {
"next_cursor": "<string>",
"total": 123
},
"creation_enabled": true,
"activity_log": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
},
"pacing": {
"linkedin_account_sid": "<string>",
"limit_type": "<string>",
"next_call_after": "<string>",
"remaining_today": 1
}
}Authorizations
Body
Request body of get_linkedin_newsletters.
Read a company page's newsletters instead of the member's own: its numeric id in any spelling (the digits, a company urn, a linkedin.com/company// link), or its link or slug when your workspace already knows the id. The account must administer that page or the list comes back empty; get_linkedin_administered_companies lists those pages and their ids.
2048Response
action success envelope.