curl --request PATCH \
--url https://app.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"daily_limit": 500,
"target_limit": 500,
"learning_enabled": true,
"delay_in_seconds": 1800,
"smart_limits_enabled": true,
"reset_hold": true
}
'import requests
url = "https://app.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid}"
payload = {
"daily_limit": 500,
"target_limit": 500,
"learning_enabled": True,
"delay_in_seconds": 1800,
"smart_limits_enabled": True,
"reset_hold": True
}
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'Team-SID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
daily_limit: 500,
target_limit: 500,
learning_enabled: true,
delay_in_seconds: 1800,
smart_limits_enabled: true,
reset_hold: true
})
};
fetch('https://app.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid}', 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-account-smart-limits/{sid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'daily_limit' => 500,
'target_limit' => 500,
'learning_enabled' => true,
'delay_in_seconds' => 1800,
'smart_limits_enabled' => true,
'reset_hold' => 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-account-smart-limits/{sid}"
payload := strings.NewReader("{\n \"daily_limit\": 500,\n \"target_limit\": 500,\n \"learning_enabled\": true,\n \"delay_in_seconds\": 1800,\n \"smart_limits_enabled\": true,\n \"reset_hold\": true\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://app.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid}")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"daily_limit\": 500,\n \"target_limit\": 500,\n \"learning_enabled\": true,\n \"delay_in_seconds\": 1800,\n \"smart_limits_enabled\": true,\n \"reset_hold\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Team-SID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"daily_limit\": 500,\n \"target_limit\": 500,\n \"learning_enabled\": true,\n \"delay_in_seconds\": 1800,\n \"smart_limits_enabled\": true,\n \"reset_hold\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "update",
"item": {
"sid": "<string>",
"team_sid": "<string>",
"linkedin_account_sid": "<string>",
"limit_type": "send_connection_requests",
"daily_limit": 123,
"smart_limit": 123,
"target_limit": 123,
"delay_in_seconds": 123,
"batch_size": 123,
"done_today_count": 123,
"last_reset_at": "<string>",
"smart_limits_enabled": true,
"status": "active",
"hold_till": "<string>",
"linkedin_quota_hit_till": "<string>",
"last_counted_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"done_7d_count": 123
},
"updated_fields": [
"<string>"
],
"previous_values": {},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}Update LinkedIn account smart limit
Patch the operator-tunable policy of one limit row (daily_limit / target_limit / delay_in_seconds / smart_limits_enabled / learning_enabled; at least one field OR reset_hold:true). status recomputes atomically. RISK RULE: read the row’s recommended_daily_limit and recommended_delay_in_seconds first. Up to twice the recommendation (or a delay down to half) is dangerous and answers risk_level “elevated”; more than twice (or under half) gets the account restricted by LinkedIn and answers “ban_likely”. Nothing is refused: warn the user in those words before committing, and flag turning smart_limits_enabled off. A spent daily budget is status “held”; raising daily_limit alone does not clear it, pass reset_hold:true in the same call (clears only when the new cap exceeds done_today_count). On a smart-managed row the persistent lever is target_limit. System-managed fields (counters, smart_limit, clocks, status, recommended_* / risk_level) are rejected as inputs; a LinkedIn-side lock is never resettable.
Contract:
- MCP tool
update_linkedin_account_smart_limit, registry packagemcp.linkedin/linkedin_account_smart_limits, mountlinkedin.accounts. - Operation
update, response envelopeupdate. - Flags: dangerous: the MCP layer gates it behind a preview/commit token, and the effect cannot be undone through this API.
curl --request PATCH \
--url https://app.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Team-SID: <api-key>' \
--data '
{
"daily_limit": 500,
"target_limit": 500,
"learning_enabled": true,
"delay_in_seconds": 1800,
"smart_limits_enabled": true,
"reset_hold": true
}
'import requests
url = "https://app.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid}"
payload = {
"daily_limit": 500,
"target_limit": 500,
"learning_enabled": True,
"delay_in_seconds": 1800,
"smart_limits_enabled": True,
"reset_hold": True
}
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'Team-SID': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
daily_limit: 500,
target_limit: 500,
learning_enabled: true,
delay_in_seconds: 1800,
smart_limits_enabled: true,
reset_hold: true
})
};
fetch('https://app.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid}', 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-account-smart-limits/{sid}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'daily_limit' => 500,
'target_limit' => 500,
'learning_enabled' => true,
'delay_in_seconds' => 1800,
'smart_limits_enabled' => true,
'reset_hold' => 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-account-smart-limits/{sid}"
payload := strings.NewReader("{\n \"daily_limit\": 500,\n \"target_limit\": 500,\n \"learning_enabled\": true,\n \"delay_in_seconds\": 1800,\n \"smart_limits_enabled\": true,\n \"reset_hold\": true\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://app.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid}")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"daily_limit\": 500,\n \"target_limit\": 500,\n \"learning_enabled\": true,\n \"delay_in_seconds\": 1800,\n \"smart_limits_enabled\": true,\n \"reset_hold\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.gtm-api.com/linkedin/v4/api/linkedin-account-smart-limits/{sid}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Team-SID"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"daily_limit\": 500,\n \"target_limit\": 500,\n \"learning_enabled\": true,\n \"delay_in_seconds\": 1800,\n \"smart_limits_enabled\": true,\n \"reset_hold\": true\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "update",
"item": {
"sid": "<string>",
"team_sid": "<string>",
"linkedin_account_sid": "<string>",
"limit_type": "send_connection_requests",
"daily_limit": 123,
"smart_limit": 123,
"target_limit": 123,
"delay_in_seconds": 123,
"batch_size": 123,
"done_today_count": 123,
"last_reset_at": "<string>",
"smart_limits_enabled": true,
"status": "active",
"hold_till": "<string>",
"linkedin_quota_hit_till": "<string>",
"last_counted_at": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"done_7d_count": 123
},
"updated_fields": [
"<string>"
],
"previous_values": {},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}Authorizations
Access token issued by gtm.service.id. Its access_identity claim carries team_sid, actor_sid and actor_type, and that team scope is authoritative.
Team scope for tokens that do not carry one. Ignored when the token already names a team.
Path Parameters
Smart-limit row sid (ln_sm_…).
18^ln_sm_Body
Request body of update_linkedin_account_smart_limit.
Active cap (1..1000).
1 <= x <= 1000Warm-up ceiling; null clears it.
0 <= x <= 1000Whether the adaptive ceiling keeps moving. false pins learned_ceiling where it stands; the quota-hit block clock still arms either way, so this is a tuning knob, not a safety switch.
Batch-boundary cooldown (1..3600).
1 <= x <= 3600Clear the daily-saturation hold in the same call (the atomic "raise the limit AND resume now"). Only resumes if the new daily_limit > done_today_count; otherwise the row re-holds. Never touches a LinkedIn-side lock.
Response
update success envelope.