LinkedIn API

LinkedIn API endpoints, one outreach engine.

Every LinkedIn action Swarmhit runs is an endpoint your product can call directly, and a step the sequencer can schedule, rotate across senders and stop on reply. Each runs through LinkedIn accounts your users connect, behind daily caps and 250+ safeguards monitored 24/7.

POST /accounts/{id}/messages

LinkedIn DM API

Send LinkedIn messages from code: one POST per message, or a step in a sequence with variants, attachments and reply detection. Per-sender caps built in.

Send a message

POST /accounts/{id}/connections

LinkedIn connection request API

Send LinkedIn connection requests from code, with or without a note, check status and withdraw stale invites. Weekly and daily caps enforced for you.

Send a connection request

POST /accounts/{id}/inmails

LinkedIn InMail API

Send LinkedIn InMails to non-connections from code, with subject, credits and open-profile handling. Daily caps and clear errors when credits run out.

Send an InMail

POST /accounts/{id}/profile-views

LinkedIn profile view API

Register real LinkedIn profile views from code to warm leads before an invite, or look profiles up silently. Daily view caps per sender, on the server.

Visit a profile

POST /accounts/{id}/follows

LinkedIn follow API

Follow LinkedIn profiles from code to see their posts without sending a connection request. A light touch for sequences, with a daily cap per sender.

Follow a profile

POST /accounts/{id}/post-likes

LinkedIn like post API

Like a lead's latest LinkedIn post from code, as a direct action or a sequence step. Clear 422 when there is no recent post, and a daily cap per sender.

Like a post

POST /accounts/{id}/post-comments

LinkedIn comment API

Comment on a lead's latest LinkedIn post from code, or let AI write the comment from the post itself with a human approval queue. Daily caps per sender.

Comment on a post

POST /inbox/chats/{id}/messages

LinkedIn voice message API

Send LinkedIn voice notes from code: a recorded note in a conversation, or AI voice notes per lead from a script, in your voice or ours, with approval.

Send a voice note

POST /lead-imports

LinkedIn search API

Turn a LinkedIn or Sales Navigator search into leads with one API call: paste the search URL or send filters, then route them into a list or a campaign.

Import a LinkedIn search

GET /inbox/chats

LinkedIn inbox API

Read LinkedIn conversations and reply from code: list chats, send text, files or voice notes, and pause or stop the lead's sequence in the same call.

Read and reply

POST /webhooks

LinkedIn webhooks

Get LinkedIn events as they happen: replies, accepted invites, imports, AI drafts and account status, signed with HMAC-SHA256 and retried with backoff.

Receive webhooks

Direct actions or campaign steps

Call an endpoint when your product decides the moment: a user clicks Connect in your CRM, an AI agent chooses to follow up. Use campaigns when the timing is the hard part: one POST /campaigns describes the whole sequence, and the engine schedules each step inside the sending window, rotates leads across senders, retries what failed and stops the sequence when the lead replies.

The same safety on every call

Every send takes an Idempotency-Key, so a retry replays the first answer instead of acting twice. Every sender has daily caps per action and a weekly connection-request cap, enforced on the server, and a limit reached returns a 429 with the limit, the count used and, for daily and weekly caps, the reset time. Senders run on dedicated proxies with managed warmup and health checks, through LinkedIn accounts your users own and connect.

Built for products and AI agents

Swarmhit is the Smart API for outreach: LinkedIn today, cold email in beta, in the same campaigns. Read the LinkedIn automation API overview, see how AI agents use the LinkedIn API, read the LinkedIn API guide on official versus account-based access, or compare the market in our LinkedIn API pricing guide.

Stop building the execution layer.
Start shipping outreach.

Get an API key, connect a LinkedIn sender or a mailbox, and launch your first campaign with one call.