curl --request POST \
--url https://app.gtm-api.com/linkedin/v4/api/linkedin-accounts/{sid}/my-position \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"position_id": "<string>",
"delete": true,
"title": "<string>",
"company_name": "<string>",
"company_id": "<string>",
"employment_type_id": "<string>",
"end_date": {
"month": 6,
"year": 2000
},
"is_current": true,
"end_current_position_ids": [
"<string>"
],
"location": "<string>",
"geo_location_id": "<string>",
"description": "<string>",
"skills": [
"<string>"
],
"allow_profile_edit_broadcasts": true
}
'import requests
url = "https://app.gtm-api.com/linkedin/v4/api/linkedin-accounts/{sid}/my-position"
payload = {
"position_id": "<string>",
"delete": True,
"title": "<string>",
"company_name": "<string>",
"company_id": "<string>",
"employment_type_id": "<string>",
"end_date": {
"month": 6,
"year": 2000
},
"is_current": True,
"end_current_position_ids": ["<string>"],
"location": "<string>",
"geo_location_id": "<string>",
"description": "<string>",
"skills": ["<string>"],
"allow_profile_edit_broadcasts": True
}
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({
position_id: '<string>',
delete: true,
title: '<string>',
company_name: '<string>',
company_id: '<string>',
employment_type_id: '<string>',
end_date: {month: 6, year: 2000},
is_current: true,
end_current_position_ids: ['<string>'],
location: '<string>',
geo_location_id: '<string>',
description: '<string>',
skills: ['<string>'],
allow_profile_edit_broadcasts: true
})
};
fetch('https://app.gtm-api.com/linkedin/v4/api/linkedin-accounts/{sid}/my-position', 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-accounts/{sid}/my-position",
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([
'position_id' => '<string>',
'delete' => true,
'title' => '<string>',
'company_name' => '<string>',
'company_id' => '<string>',
'employment_type_id' => '<string>',
'end_date' => [
'month' => 6,
'year' => 2000
],
'is_current' => true,
'end_current_position_ids' => [
'<string>'
],
'location' => '<string>',
'geo_location_id' => '<string>',
'description' => '<string>',
'skills' => [
'<string>'
],
'allow_profile_edit_broadcasts' => true
]),
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-accounts/{sid}/my-position"
payload := strings.NewReader("{\n \"position_id\": \"<string>\",\n \"delete\": true,\n \"title\": \"<string>\",\n \"company_name\": \"<string>\",\n \"company_id\": \"<string>\",\n \"employment_type_id\": \"<string>\",\n \"end_date\": {\n \"month\": 6,\n \"year\": 2000\n },\n \"is_current\": true,\n \"end_current_position_ids\": [\n \"<string>\"\n ],\n \"location\": \"<string>\",\n \"geo_location_id\": \"<string>\",\n \"description\": \"<string>\",\n \"skills\": [\n \"<string>\"\n ],\n \"allow_profile_edit_broadcasts\": true\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-accounts/{sid}/my-position")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"position_id\": \"<string>\",\n \"delete\": true,\n \"title\": \"<string>\",\n \"company_name\": \"<string>\",\n \"company_id\": \"<string>\",\n \"employment_type_id\": \"<string>\",\n \"end_date\": {\n \"month\": 6,\n \"year\": 2000\n },\n \"is_current\": true,\n \"end_current_position_ids\": [\n \"<string>\"\n ],\n \"location\": \"<string>\",\n \"geo_location_id\": \"<string>\",\n \"description\": \"<string>\",\n \"skills\": [\n \"<string>\"\n ],\n \"allow_profile_edit_broadcasts\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gtm-api.com/linkedin/v4/api/linkedin-accounts/{sid}/my-position")
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 \"position_id\": \"<string>\",\n \"delete\": true,\n \"title\": \"<string>\",\n \"company_name\": \"<string>\",\n \"company_id\": \"<string>\",\n \"employment_type_id\": \"<string>\",\n \"end_date\": {\n \"month\": 6,\n \"year\": 2000\n },\n \"is_current\": true,\n \"end_current_position_ids\": [\n \"<string>\"\n ],\n \"location\": \"<string>\",\n \"geo_location_id\": \"<string>\",\n \"description\": \"<string>\",\n \"skills\": [\n \"<string>\"\n ],\n \"allow_profile_edit_broadcasts\": true\n}"
response = http.request(request)
puts response.read_bodySet my position
Add, edit or remove ONE position (work experience entry) on the connected account’s OWN LinkedIn profile. No position_id = add (title, company_name and start_date required, end_date unless is_current). position_id = edit: send only the fields that change, the backend reads the position’s form first and submits it whole (the LinkedIn wire replaces the form); is_current: true drops the end date, an end_date ends a current position. position_id + delete: true = remove it (the backend reads the form and mirrors it into the delete, as LinkedIn’s own editor does). position_id is the numeric id each entry carries on the account’s own experience list (enrich_linkedin_person_experience on its own profile, or the add’s answer). Company, geo and employment-type ids are LinkedIn’s own numeric ids; without them the company is free text and the location display text only. Spends one edit_profile slot per call.
Contract:
- MCP tool
set_linkedin_account_my_position, 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
edit_profilesmart-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-accounts/{sid}/my-position \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"position_id": "<string>",
"delete": true,
"title": "<string>",
"company_name": "<string>",
"company_id": "<string>",
"employment_type_id": "<string>",
"end_date": {
"month": 6,
"year": 2000
},
"is_current": true,
"end_current_position_ids": [
"<string>"
],
"location": "<string>",
"geo_location_id": "<string>",
"description": "<string>",
"skills": [
"<string>"
],
"allow_profile_edit_broadcasts": true
}
'import requests
url = "https://app.gtm-api.com/linkedin/v4/api/linkedin-accounts/{sid}/my-position"
payload = {
"position_id": "<string>",
"delete": True,
"title": "<string>",
"company_name": "<string>",
"company_id": "<string>",
"employment_type_id": "<string>",
"end_date": {
"month": 6,
"year": 2000
},
"is_current": True,
"end_current_position_ids": ["<string>"],
"location": "<string>",
"geo_location_id": "<string>",
"description": "<string>",
"skills": ["<string>"],
"allow_profile_edit_broadcasts": True
}
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({
position_id: '<string>',
delete: true,
title: '<string>',
company_name: '<string>',
company_id: '<string>',
employment_type_id: '<string>',
end_date: {month: 6, year: 2000},
is_current: true,
end_current_position_ids: ['<string>'],
location: '<string>',
geo_location_id: '<string>',
description: '<string>',
skills: ['<string>'],
allow_profile_edit_broadcasts: true
})
};
fetch('https://app.gtm-api.com/linkedin/v4/api/linkedin-accounts/{sid}/my-position', 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-accounts/{sid}/my-position",
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([
'position_id' => '<string>',
'delete' => true,
'title' => '<string>',
'company_name' => '<string>',
'company_id' => '<string>',
'employment_type_id' => '<string>',
'end_date' => [
'month' => 6,
'year' => 2000
],
'is_current' => true,
'end_current_position_ids' => [
'<string>'
],
'location' => '<string>',
'geo_location_id' => '<string>',
'description' => '<string>',
'skills' => [
'<string>'
],
'allow_profile_edit_broadcasts' => true
]),
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-accounts/{sid}/my-position"
payload := strings.NewReader("{\n \"position_id\": \"<string>\",\n \"delete\": true,\n \"title\": \"<string>\",\n \"company_name\": \"<string>\",\n \"company_id\": \"<string>\",\n \"employment_type_id\": \"<string>\",\n \"end_date\": {\n \"month\": 6,\n \"year\": 2000\n },\n \"is_current\": true,\n \"end_current_position_ids\": [\n \"<string>\"\n ],\n \"location\": \"<string>\",\n \"geo_location_id\": \"<string>\",\n \"description\": \"<string>\",\n \"skills\": [\n \"<string>\"\n ],\n \"allow_profile_edit_broadcasts\": true\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-accounts/{sid}/my-position")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"position_id\": \"<string>\",\n \"delete\": true,\n \"title\": \"<string>\",\n \"company_name\": \"<string>\",\n \"company_id\": \"<string>\",\n \"employment_type_id\": \"<string>\",\n \"end_date\": {\n \"month\": 6,\n \"year\": 2000\n },\n \"is_current\": true,\n \"end_current_position_ids\": [\n \"<string>\"\n ],\n \"location\": \"<string>\",\n \"geo_location_id\": \"<string>\",\n \"description\": \"<string>\",\n \"skills\": [\n \"<string>\"\n ],\n \"allow_profile_edit_broadcasts\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gtm-api.com/linkedin/v4/api/linkedin-accounts/{sid}/my-position")
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 \"position_id\": \"<string>\",\n \"delete\": true,\n \"title\": \"<string>\",\n \"company_name\": \"<string>\",\n \"company_id\": \"<string>\",\n \"employment_type_id\": \"<string>\",\n \"end_date\": {\n \"month\": 6,\n \"year\": 2000\n },\n \"is_current\": true,\n \"end_current_position_ids\": [\n \"<string>\"\n ],\n \"location\": \"<string>\",\n \"geo_location_id\": \"<string>\",\n \"description\": \"<string>\",\n \"skills\": [\n \"<string>\"\n ],\n \"allow_profile_edit_broadcasts\": true\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Path Parameters
Body
Request body of set_linkedin_account_my_position.
Response
action success envelope.