Skip to content

LinkedIn Accounts

Monitor LinkedIn account health, status, budget usage, and ramp-up state.

Full name: campaignstack_list_accounts

accounts:read Read-only Idempotent

List accounts connected to a workspace. Returns LinkedIn and Google accounts with a platform field. Optionally filter by platform (‘linkedin’ or ‘google’). LinkedIn accounts include today’s budget usage; Google accounts include email and status. Call this when the user asks which accounts are connected, or to find an accountId. It does not connect a new account: that happens in the CampaignStack app.

NameTypeRequiredDefaultDescription
workspaceIdstringYesWorkspace ID. REQUIRED for a user key (csu_), which spans every workspace you belong to; omitted for a workspace key (cs_), which is bound to one and ignores this argument. campaignstack_whoami reports which kind of key you are holding and, for a user key, the workspaces it can reach. (min length: 1)
platformlinkedin | googleNoFilter by platform. Omit to return all accounts.

Full name: campaignstack_get_platform_capabilities

accounts:read Read-only Idempotent

Lists every platform action (like_post, comment_on_post, follow_profile, send_message, send_connection_request, send_inmail, extract_post_engagements) with the platforms it supports and, per platform, the accepted target fields and optional params. Returns platforms, which says for each platform whether accounts can be connected, how many this workspace has, and which actions exist there: a platform with no actions is tracking-only by design, not unfinished. connectedPlatforms is the older shape and lists only platforms with a connected account. Call this when an action tool returns wrong_target_for_platform or unsupported_capability.

NameTypeRequiredDefaultDescription
workspaceIdstringNoWorkspace ID. REQUIRED for a user key (csu_), which spans every workspace you belong to; omitted for a workspace key (cs_), which is bound to one and ignores this argument. campaignstack_whoami reports which kind of key you are holding and, for a user key, the workspaces it can reach.

Full name: campaignstack_get_account

accounts:read Read-only Idempotent

Get detailed account health info including status, budget usage per action type, ramp-up state, and last activity timestamps. Requires platform (‘linkedin’ or ‘google’) and accountId. Use campaignstack_list_accounts to find valid accountId values. Call this after campaignstack_list_accounts, before dispatching outreach, to check today’s budget. It does not split CampaignStack’s sends from the rest: campaignstack_get_account_safety does.

NameTypeRequiredDefaultDescription
platformlinkedin | googleYesPlatform of the account to retrieve
accountIdstringYes(min length: 1)

Full name: campaignstack_start_connections_export

accounts:write

Start an async runner job that exports the 1st-degree LinkedIn connections for the given account as leads. The job runs in the background. Use campaignstack_get_automation_jobs to monitor progress. Each account has ONE connections list per workspace (source ‘linkedin_connections’): the first export creates it, every later export refreshes it in place (connections are added, never removed). The job result carries leadListId. Pass keepUpToDate to subscribe the list to new connections. Use campaignstack_list_accounts to find valid accountId values (platform: ‘linkedin’). Call this when the user wants an account’s connections turned into a lead list. It does not send new connection requests: campaignstack_send_connection_request does that, one at a time.

NameTypeRequiredDefaultDescription
accountIdstringYes(min length: 1)
workspaceIdstringYes(min length: 1)
maxConnectionsintegerNoMaximum number of connections to export (default 2500) (max: 10000)
listNamestringNoName for the connections list. Used only when the account has no connections list in this workspace yet; an existing list keeps its name. (min length: 1, max length: 120)
keepUpToDatebooleanNoKeep the list current: new connections are added automatically from the account’s daily connection read, at no extra LinkedIn activity. Default false (one-shot export).

Full name: campaignstack_get_private_proxy

accounts:read Read-only Idempotent

Get the private proxy connection info (host, port, username; never the password) for a LinkedIn account, or null if the account is on a shared pool proxy. You can only read proxies for accounts in your own workspace. Call this before campaignstack_set_private_proxy or campaignstack_remove_private_proxy to check which mode an account is on. It never returns the password.

NameTypeRequiredDefaultDescription
accountIdstringYes(min length: 1)
workspaceIdstringYesWorkspace ID. REQUIRED for a user key (csu_), which spans every workspace you belong to; omitted for a workspace key (cs_), which is bound to one and ignores this argument. campaignstack_whoami reports which kind of key you are holding and, for a user key, the workspaces it can reach. (min length: 1)

Full name: campaignstack_set_private_proxy

accounts:write Destructive

Set (or replace) a private ‘bring-your-own’ HTTP proxy on a LinkedIn account. The proxy is TESTED first; if it cannot reach LinkedIn, NOTHING changes (the current proxy keeps serving runs) and an error is returned. On success the account uses your proxy and any shared pool proxy is released. Use campaignstack_list_accounts to find valid accountId values (platform: ‘linkedin’). Call this when the user has their own proxy for one account. It takes a password, so CampaignStack refuses this call from a connected app: use an API key or the account’s settings in the app.

NameTypeRequiredDefaultDescription
accountIdstringYes(min length: 1)
workspaceIdstringYesWorkspace ID. REQUIRED for a user key (csu_), which spans every workspace you belong to; omitted for a workspace key (cs_), which is bound to one and ignores this argument. campaignstack_whoami reports which kind of key you are holding and, for a user key, the workspaces it can reach. (min length: 1)
hoststringYes(min length: 1)
portintegerYes(min: 1, max: 65535)
usernamestringNo
passwordstringNo

Full name: campaignstack_remove_private_proxy

accounts:write Destructive

Remove the private proxy from a LinkedIn account and revert it to a shared pool proxy. No-op if the account is already on a shared proxy. Call this when the user’s proxy stopped working and the account should fall back to the shared pool. campaignstack_set_private_proxy tests and applies a replacement instead.

NameTypeRequiredDefaultDescription
accountIdstringYes(min length: 1)
workspaceIdstringYesWorkspace ID. REQUIRED for a user key (csu_), which spans every workspace you belong to; omitted for a workspace key (cs_), which is bound to one and ignores this argument. campaignstack_whoami reports which kind of key you are holding and, for a user key, the workspaces it can reach. (min length: 1)