curl --request POST \
--url https://app.gtm-api.com/linkedin/v4/api/linkedin-followings/unfollow \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"linkedin_account_sid": "<string>",
"target": {
"ln_id": "<string>",
"sn_id": "<string>",
"recruiter_id": "<string>",
"ln_member_id": "<string>",
"nickname": "<string>"
}
}
'import requests
url = "https://app.gtm-api.com/linkedin/v4/api/linkedin-followings/unfollow"
payload = {
"linkedin_account_sid": "<string>",
"target": {
"ln_id": "<string>",
"sn_id": "<string>",
"recruiter_id": "<string>",
"ln_member_id": "<string>",
"nickname": "<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>',
target: {
ln_id: '<string>',
sn_id: '<string>',
recruiter_id: '<string>',
ln_member_id: '<string>',
nickname: '<string>'
}
})
};
fetch('https://app.gtm-api.com/linkedin/v4/api/linkedin-followings/unfollow', 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-followings/unfollow",
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>',
'target' => [
'ln_id' => '<string>',
'sn_id' => '<string>',
'recruiter_id' => '<string>',
'ln_member_id' => '<string>',
'nickname' => '<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-followings/unfollow"
payload := strings.NewReader("{\n \"linkedin_account_sid\": \"<string>\",\n \"target\": {\n \"ln_id\": \"<string>\",\n \"sn_id\": \"<string>\",\n \"recruiter_id\": \"<string>\",\n \"ln_member_id\": \"<string>\",\n \"nickname\": \"<string>\"\n }\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-followings/unfollow")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"linkedin_account_sid\": \"<string>\",\n \"target\": {\n \"ln_id\": \"<string>\",\n \"sn_id\": \"<string>\",\n \"recruiter_id\": \"<string>\",\n \"ln_member_id\": \"<string>\",\n \"nickname\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gtm-api.com/linkedin/v4/api/linkedin-followings/unfollow")
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 \"target\": {\n \"ln_id\": \"<string>\",\n \"sn_id\": \"<string>\",\n \"recruiter_id\": \"<string>\",\n \"ln_member_id\": \"<string>\",\n \"nickname\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_bodyUnfollow LinkedIn member
Stop following a LinkedIn member as this account, the inverse of follow_linkedin_member. NOT a disconnect: it leaves a 1st-degree connection intact and only stops that member’s posts reaching the feed, so it is how you mute someone you still want to stay connected to. Severing the relationship is remove_linkedin_connection. IDEMPOTENT: unfollowing someone this account does not follow returns 200 with the same terminal state, so a repeat is a success, not an error, and it still spends one networking_general unit (40 a day, 180 s apart). Pass target.nickname whenever you know it, even alongside ln_id: with both the action is ONE LinkedIn request, with the URN alone two (the slug is read first). Identity-bound: linkedin_account_sid REQUIRED, 429 on saturation. Deletes nothing locally; the follow list catches up on the next get_linkedin_account_my_following refresh.
Contract:
- MCP tool
unfollow_linkedin_member, registry packagemcp.linkedin/linkedin_accounts, mountlinkedin.accounts. - Operation
action, response envelopeaction. - Flags: dangerous: the MCP layer gates it behind a preview/commit token, and the effect cannot be undone through this API; paced: a call spends the
networking_generalsmart-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-followings/unfollow \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"linkedin_account_sid": "<string>",
"target": {
"ln_id": "<string>",
"sn_id": "<string>",
"recruiter_id": "<string>",
"ln_member_id": "<string>",
"nickname": "<string>"
}
}
'import requests
url = "https://app.gtm-api.com/linkedin/v4/api/linkedin-followings/unfollow"
payload = {
"linkedin_account_sid": "<string>",
"target": {
"ln_id": "<string>",
"sn_id": "<string>",
"recruiter_id": "<string>",
"ln_member_id": "<string>",
"nickname": "<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>',
target: {
ln_id: '<string>',
sn_id: '<string>',
recruiter_id: '<string>',
ln_member_id: '<string>',
nickname: '<string>'
}
})
};
fetch('https://app.gtm-api.com/linkedin/v4/api/linkedin-followings/unfollow', 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-followings/unfollow",
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>',
'target' => [
'ln_id' => '<string>',
'sn_id' => '<string>',
'recruiter_id' => '<string>',
'ln_member_id' => '<string>',
'nickname' => '<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-followings/unfollow"
payload := strings.NewReader("{\n \"linkedin_account_sid\": \"<string>\",\n \"target\": {\n \"ln_id\": \"<string>\",\n \"sn_id\": \"<string>\",\n \"recruiter_id\": \"<string>\",\n \"ln_member_id\": \"<string>\",\n \"nickname\": \"<string>\"\n }\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-followings/unfollow")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"linkedin_account_sid\": \"<string>\",\n \"target\": {\n \"ln_id\": \"<string>\",\n \"sn_id\": \"<string>\",\n \"recruiter_id\": \"<string>\",\n \"ln_member_id\": \"<string>\",\n \"nickname\": \"<string>\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gtm-api.com/linkedin/v4/api/linkedin-followings/unfollow")
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 \"target\": {\n \"ln_id\": \"<string>\",\n \"sn_id\": \"<string>\",\n \"recruiter_id\": \"<string>\",\n \"ln_member_id\": \"<string>\",\n \"nickname\": \"<string>\"\n }\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Body
Request body of unfollow_linkedin_member.
Response
action success envelope.