Skip to content
  • LinkedIn: Waitlist
  • Email: Live

LinkedIn API for AI agents

What LinkedIn's Messages and Invitations APIs allow, and how an AI agent sends connection requests and messages and reads the inbox through a REST API or an MCP server instead.

Diagram: your agent calls the REST API or the MCP server, which sends through a campaign with caps and pacing to your LinkedIn account.

Key takeaways

  • LinkedIn's Messages API and Invitations API are restricted to approved partners, and LinkedIn says a message must come from a member's own action, not an automated or scheduled event.
  • Through Bavlio, an agent sends connection requests with a note and follow-up messages as campaign steps, reads the LinkedIn inbox over REST or MCP, and replies over REST.
  • Every connection request and campaign message runs under per-account caps: 20 connection requests a day by default, 100 per rolling 7 days, and 100 messages a day. Replies in an existing conversation don't count against them.
  • LinkedIn runs on Bavlio, the outreach product from the team behind Bavimail. Existing Bavlio customers use it today, and new accounts join the waitlist.

What LinkedIn's own API allows

LinkedIn has a Messages API and an Invitations API. It restricts both to approved partners under an API agreement (Messages API, Invitations API, checked October 15, 2026).

LinkedIn APIWhat it doesWho can use it
Messages APISends a message to one or more first-degree connections, or replies in a conversationApproved partners only. Each message must come from a specific member action, and LinkedIn says member actions don't include an automated or scheduled event
Invitations APISends a connection request, with an optional note, as the signed-in member, through POST https://api.linkedin.com/v2/invitationsApproved partners only
Sign in with LinkedIn and Share on LinkedInThe member's name, headline, photo and email address; posting, commenting and liking as the memberEvery developer, without approval (open permissions)

So without a partner agreement, LinkedIn's own API can't send a connection request or a message, and even a partner can't send messages on a schedule.

Through Bavlio, you connect your own LinkedIn account once in the Bavlio dashboard, and every action runs as that account under the caps below. LinkedIn's User Agreement prohibits unauthorized automated methods, so any tool that sends from a member account carries a risk of restriction, ours included. The caps keep each account's volume low (LinkedIn automation limits).

What an agent can do

ActionHow the agent does itLimit
Send a connection request with a noteA connection_request step in a campaign20 a day by default and 100 per rolling 7 days
Send messages after the request is acceptedmessage and follow_up steps in the same campaign100 a day per account by default
Read the inboxGET /api/v1/linkedin/conversations and GET /api/v1/linkedin/conversations/{chat_id}/messages, or the MCP tools bavlio_list_inbox and bavlio_get_thread
Reply in a conversationPOST /api/v1/linkedin/conversations/{chat_id}/replyExisting conversations only
Search LinkedIn for peoplePOST /api/v1/linkedin/search50 a day, 10 an hour, 1 credit each
Look up a profileThe campaign looks each person up right before their invitationBulk lookups: 20 a day, one at a time
Most actions a day, per LinkedIn accountConnection requests also stop at 100 per rolling 7 days by default.
  1. Connection requestsMonday to Friday20
  2. Connection requestsEvery day14
  3. MessagesBy default100
  4. LinkedIn searches10 an hour50
  5. Bulk profile lookupsOne at a time20

Source: Limits enforced by Bavlio's outreach engine in production, checked October 15, 2026.

Guardrails

  • Caps. Daily and weekly connection request caps, a daily message limit and a 21-day warm-up for newly connected accounts. The numbers are on LinkedIn automation limits.
  • Pacing. A campaign sends in 2 to 5 short sessions a day inside its sending window, not all at once.
  • Stop on reply. A reply takes that person out of the sequence. No further steps send.
  • Opt-outs. A person who asks to stop goes on the suppression list and gets no further messages on any channel.
  • Preview. bavlio_preview_message returns the exact message a given person will receive, before launch.
  • Credit quotes. Lead search returns its maximum cost first and spends nothing until the agent confirms.

How an agent reaches it

  • REST API at api.bavlio.com, authenticated with a bav_live_ API key.
  • MCP server at https://mcp.bavlio.com/mcp, a hosted server over streamable HTTP with OAuth 2.1 sign-in, for Claude Code, Cursor, Claude Desktop and VS Code. See LinkedIn MCP server.

Send email from your agent today

Email runs on Bavimail, which is live with a free plan and no credit card. With an API key and an alias from the dashboard, this sends one email with the Node SDK, from the quickstart:

npm install bavimail
import { Bavimail } from 'bavimail'

const client = new Bavimail({ apiKey: process.env.BAVIMAIL_API_KEY })

const email = await client.emails.send({
  aliasId: 'your-alias-id',
  toEmail: '[email protected]',
  subject: 'Hello from Bavimail',
  body: '<strong>Your first email</strong>',
})

console.log('Sent:', email.id)

See inboxes for AI agents for every channel's status.

FAQ

Does LinkedIn have an official API for sending messages and connection requests?

Yes, the Messages API and the Invitations API, but LinkedIn restricts both to approved partners under an API agreement. The Messages API also requires each message to come from a specific member action, which excludes automated or scheduled events. Every developer gets only sign-in, the member's email address, and posting as that member.

Can an AI agent send a single LinkedIn message through this API?

No. Connection requests and first messages go out only as campaign steps, so the engine paces them under the account's caps. An agent can reply in an existing conversation directly.

Can I use it from Claude Code or Cursor?

Yes. The hosted MCP server at mcp.bavlio.com works with Claude Code, Cursor, Claude Desktop, VS Code and any client that supports remote MCP.

Can I sign up today?

LinkedIn is on the waitlist for new accounts, at bavlio.com/waitlist. It runs today for existing Bavlio customers.

How much does it cost?

There is no public price for LinkedIn yet.