---
title: "LinkedIn API for AI startups: give your agent LinkedIn"
description: "How AI startups give their agent LinkedIn with Spaces: each user connects their own account, the agent reads and replies through one MCP server, safely."
url: https://www.spacesos.com/blog/linkedin-api-for-ai-startups
author: "Bhavya Barot"
published: "2026-12-04"
modified: "2026-12-04"
keywords: "LinkedIn API for AI agents,LinkedIn API for AI startups,LinkedIn MCP server,give AI agent LinkedIn,messaging layer for AI agents"
---

AI agents4 Dec 20267 min read

# LinkedIn API for AI startups: give your agent LinkedIn for every user

By [Bhavya Barot](https://www.linkedin.com/in/bhavyabarot/) · Updated 4 Dec 2026

Your agent is only as useful as the inboxes it can reach, and your users’ customers write on LinkedIn.

This guide shows how AI startups give their agent LinkedIn with Spaces: how each user connects, how the agent listens and replies, how accounts and the agent are kept safe, and what it costs.

Key takeaways

- Users judge an AI agent on what it gets done.
- Before you choose, it helps to know what building on LinkedIn API directly involves.
- Every endpoint for users, keys, connect links, caps, webhooks and usage is at /docs/partners.
- An agent that only acts when asked misses the customer who wrote ten minutes ago.
- New accounts start lower and warm up over four weeks.

1. ### A customer writes
  On LinkedIn, any time of day.
2. ### Spaces passes it on
  With limits that keep the account safe.
3. ### Your AI agent replies
  In the same chat, in your words. Hard ones go to you.

[Start free](https://app.spacesos.com/signup) [Read the docs](https://www.spacesos.com/docs)

## Why your agent needs LinkedIn

Users judge an AI agent on what it gets done. If their customers write on LinkedIn and the agent cannot see those messages, the user still has to answer by hand, and your product only covers part of their day.

With LinkedIn connected, your agent can:

- Sort and answer the user’s LinkedIn messages, and flag the ones that matter.
- Send connection requests and first messages at a careful pace.
- Use InMail when the user’s plan has credits.
- Publish posts and answer the comments under them.

## What building on LinkedIn API involves

Before you choose, it helps to know what building on LinkedIn API directly involves. From LinkedIn’s own documentation, read on 3 Dec 2026:

- LinkedIn says most of its API permissions and partner programs need its explicit approval.
- The permissions open to every developer are Sign in with LinkedIn (profile and email) and Share on LinkedIn, which lets an app post, comment and like for a signed-in member.
- None of the open permissions covers reading or sending LinkedIn messages.
- The Community Management API manages company pages, their posts, comments, reactions and analytics. Its approved use cases do not include direct messages.
- Moving the Community Management API from its Development Tier to the Standard Tier needs a screencast of each use case, and the Development Tier allows 500 requests per app and 100 per member by default.
- Sales integrations need approval as a Sales Navigator Application Platform (SNAP) partner, and reading member posts (r_member_social) is closed to new requests.

The full comparison, with sources, is at /api-alternatives/linkedin-api.

Ready to try it?

Start free and let your own AI agent do the replying, or talk to a person on our team first.

[Start free with AI](https://app.spacesos.com/signup) [Talk to a person](https://www.spacesos.com/support)

## How Spaces connects your agent

1. You get a partner key, which manages your users and cannot read or send messages itself.
2. You create a Spaces user for each of yours, with your own id. Calling it again returns the same user.
3. You send the user to a connect link that shows your name and logo. Your user signs in to LinkedIn through the connect link and approves the connection. Then they come back to your app.
4. You create a key for that user and give it to your agent. The key reaches that user’s accounts and nobody else’s.
5. Your agent uses the Spaces MCP server at https://api.spacesos.com/mcp or the REST API with that key.

```
{
  "mcpServers": {
    "spaces": {
      "url": "https://api.spacesos.com/mcp",
      "headers": { "Authorization": "Bearer $USER_KEY" }
    }
  }
}
```

Every endpoint for users, keys, connect links, caps, webhooks and usage is at /docs/partners. Before you have a partner account, build on your own accounts on the Free plan with the same tools.

## Listening, not polling

An agent that only acts when asked misses the customer who wrote ten minutes ago. Spaces gives you three ways to hear about new LinkedIn messages:

- One webhook for all your users. Each event is signed, retried and tagged with your own user id.
- GET /partner/events, one stream for all your users that waits up to 50 seconds for something new.
- wait_for_events in the MCP server, so an agent running in a loop picks up each new message for its user.

The same event id can arrive twice, so skip repeats. Each event says which account and chat it belongs to, and the agent reads the conversation before it answers.

## What it looks like

A short example with made-up names:

Thanks for connecting. Is this relevant for a 40-person team?

Yes, most of our customers are 20 to 100 people. Worth 15 minutes on Thursday?

approves the draft in your app, and it is sent from their own profile.

## Keeping the agent and the account safe

- Messages written by other people are screened before your agent reads them, and messages that try to give the agent orders are held back. A DM that says “ignore your instructions” never reaches the model as an instruction.
- Keys can be read-only, able to send, or draft-only, where every reply waits for the user to approve it in your product.
- Send rules let a user forbid phrases and links, and the same text sent to many people at once is held for review.
- Every account is paced inside the network’s limits, with a four-week warm-up when it is new or reconnected.
- You can cap or pause any user, and a paused user’s key is refused until you resume them.

| Each account, after warm-up | LinkedIn |
| --- | --- |
| New messages a day | 100 |
| Replies to people who wrote in, a day | 200 |
| New conversations a day | 100 |
| Gap between two sends | 20 seconds |

New accounts start lower and warm up over four weeks. Replies to people who wrote in first have their own, higher limits, because that is what each network treats most gently. Every number is at /limits.

LinkedIn is the strictest network. Spaces keeps invitations and new messages well under its limits, and a careful pace is the product, not a setting to work around.

## Pricing your product

Partner pricing in early access is $3.50 per connected end-user account a month plus $0.75 per 1,000 actions, with a $99 monthly minimum. Reading messages is free, so an agent that reads a lot and sends only what matters stays cheap.

GET /partner/usage shows each user’s accounts and actions for the month, with an invoice preview.

Most AI startups include LinkedIn in a paid plan, or charge per connected channel. With 500 users connecting one account each, account fees come to $1,750 a month, plus $0.75 for every 1,000 actions.

## A launch plan

1. Week 1: connect your own LinkedIn account on the Free plan, add the MCP server to your agent, and get it reading and drafting.
2. Week 2: open a partner account, build the connect button and the webhook, and store each user’s key next to that user.
3. Week 3: ship to ten design partners with draft-only keys, so every reply is approved, and fix what the drafts get wrong.
4. Week 4: switch the users who are happy to sending keys, set caps, add usage to billing, and launch.

## MCP server or REST API

Both reach the same LinkedIn conversations with the same key. The MCP server suits agents that decide for themselves what to do next: the model sees tools such as list chats, read messages, reply and wait for events, and calls them as it works.

The REST API suits a backend that already knows the steps, such as a webhook handler that loads the conversation, asks your model for a reply and sends it.

Many startups use both: REST for the event loop and the product screens, MCP for the agent itself.

## What to build in your product first

- A Connect LinkedIn button in settings, with the account’s status and a Reconnect button when the network signs it out.
- A view of what the agent did today: messages answered, drafts waiting and conversations handed to the user.
- An approve-or-edit screen for drafts, which turns every correction into better instructions for the agent.
- A clear off switch per channel, so users trust the agent with more once they know they can stop it.

## Mistakes AI startups make

- Sending from day one. Draft first; users forgive a weak draft but not a wrong message sent in their name.
- One shared key for every user. A key per user keeps one user’s messages away from another’s, and a leak stays small.
- Ignoring 429 answers. When Spaces asks the agent to wait, nothing was sent; wait the given time and retry with the same request.
- Treating every DM as a lead. Most messages are questions; answering them well is what users pay for.

## When to build on LinkedIn API instead

- If you are building a product for LinkedIn company pages, ads or Sales Navigator at scale and can go through LinkedIn’s partner approval, its own APIs are the long-term route.
- If you only need people to sign in with LinkedIn or share a post, the open permissions are enough and free.

## Summary

Your agent is only as useful as the inboxes it can reach, and your users’ customers write on LinkedIn. This guide shows how AI startups give their agent LinkedIn with Spaces: how each user connects, how the agent listens and replies, how accounts and the agent are kept safe, and what it costs.

## FAQ

### How do I give my AI agent LinkedIn?

Add the Spaces MCP server or REST API, and let each user connect their own LinkedIn account through a Spaces connect link. Your agent then reads and replies with a key for that user.

### Does my agent need to poll?

No. Use one webhook for all your users, the partner event stream, or wait_for_events in the MCP server.

### How is prompt injection in DMs handled?

Messages written by other people are screened before the agent reads them, and messages that try to give it orders are held back. Draft-only keys and approvals add a person before anything is sent.

### Do I need LinkedIn app review?

No. Your users connect through Spaces, so there is no developer app or app review on LinkedIn for you to run.

### What does it cost?

Partner pricing is $3.50 per connected end-user account a month plus $0.75 per 1,000 actions, with a $99 monthly minimum. Reading is free.

### What happens when a user disconnects LinkedIn?

Their account stops at once and its copy of the messages is removed. Your webhook gets an account.status event, so your product can show a Reconnect button, and the user can connect again through a new connect link.

### Can I start before I have a partner account?

Yes. [Free to start](https://www.spacesos.com/pricing). Build on your own accounts with the same tools, then move to partner and user keys.

[Start free](https://app.spacesos.com/signup) [Read the docs](https://www.spacesos.com/docs)

## Questions people ask

[Why does Grokbot keep logging me out of LinkedIn?Grokbot on LinkedIn](https://www.spacesos.com/blocked/linkedin/grokbot/logs-you-out) [Why does Muse keep logging me out of LinkedIn?Muse on LinkedIn](https://www.spacesos.com/blocked/linkedin/muse/logs-you-out) [Did Claude Duet get my LinkedIn account restricted?Claude Duet on LinkedIn](https://www.spacesos.com/blocked/linkedin/claude-duet/restricted) [Why aren’t ChatGPT messages sending on LinkedIn?ChatGPT on LinkedIn](https://www.spacesos.com/blocked/linkedin/chatgpt/not-sending) [Replit on LinkedIn: add LinkedIn to your appGuide](https://www.spacesos.com/blog/replit-on-linkedin) [v0 on LinkedIn: add LinkedIn to your appGuide](https://www.spacesos.com/blog/v0-on-linkedin)

## Related

## More articles

[AI agents**LinkedIn for enterprise: AI agents across teams, with control** 4 Dec 2026 · 7 min read](https://www.spacesos.com/blog/linkedin-for-enterprise) [AI agents**LinkedIn API for AI agents: what the options are** 2 Nov 2026 · 10 min read](https://www.spacesos.com/blog/linkedin-api-for-ai-agents) [AI agents**Instagram API for AI startups: give your agent Instagram for every user** 4 Dec 2026 · 7 min read](https://www.spacesos.com/blog/instagram-api-for-ai-startups) [AI agents**Messenger API for AI startups: give your agent Messenger for every user** 4 Dec 2026 · 7 min read](https://www.spacesos.com/blog/messenger-api-for-ai-startups) [AI agents**Telegram API for AI startups: give your agent Telegram for every user** 4 Dec 2026 · 7 min read](https://www.spacesos.com/blog/telegram-api-for-ai-startups) [AI agents**WhatsApp API for AI startups: give your agent WhatsApp for every user** 4 Dec 2026 · 7 min read](https://www.spacesos.com/blog/whatsapp-api-for-ai-startups)

Live in under 60 seconds

## Your customers are messaging right now.

Let your AI agent answer them tonight. Free to start, no card needed.

For you[Start free, live in 60 seconds](https://app.spacesos.com/signup) No card needed. Connect WhatsApp, Instagram, LinkedIn or Messenger.

For your AI agent

`Set up Spaces for me by following https://www.spacesos.com/agents`

Paste it into Grok, Muse, Claude or ChatGPT. Your agent does the rest.
