Spaces

LinkedIn API for AI agents

Connect your LinkedIn profile and your AI agent can answer messages from connections, send InMail, send and answer connection requests, see who viewed your profile, search people, companies, posts and jobs, read profiles and posts, follow people, publish, comment and react, and handle job posts and Recruiter or Sales Navigator actions, all inside LinkedIn’s limits for your plan.

What your agent can do on LinkedIn

Three steps

  1. Start free and connect LinkedIn. You sign in to LinkedIn through a secure link and approve the connection.
  2. Add Spaces to your AI agent with one URL, https://api.spacesos.com/mcp/linkedin, or use the REST API at https://api.spacesos.com/v1. Steps for each AI client.
  3. Your agent reads and answers. Spaces paces every message inside the limits that keep the account safe.

Or paste this into your agent and let it set things up with you:

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

The core tools

What it doesMCP toolREST
Your conversations, newest first, with their tags, owner, star and whether a person has taken them over. Filter to unread, unanswered, starred, archived, message requests, handed over, a tag or an owner.list_messaging_chatsGET …/chats
The messages in one conversation.list_messaging_messagesGET …/chats/{chat_id}/messages
A photo, video, voice note, GIF, sticker or file from a message, or a private link to it that works for ten minutes.get_messaging_attachmentGET …/chats/{chat_id}/messages/{message_id}/attachments/{attachment_id}
Reply in a conversation, with text or attachments.reply_in_chatPOST …/chats/{chat_id}/messages
Start a new conversation with someone who expects to hear from you.start_chatPOST …/chats
Send a message at a set local time, inside working hours you choose.schedule_messagePOST /v1/messaging/schedules

Only on LinkedIn

What it doesMCP toolREST
Send a connection request, with an optional note.send_invitationPOST …/invitations
Connection requests you have sent.list_invitationsGET …/invitations
Withdraw a connection request.cancel_invitationDELETE …/invitations/{invitation_id}
Search LinkedIn for people, companies, posts or jobs, with filters such as location and industry, through Sales Navigator or Recruiter, or from a search link copied from LinkedIn.search_linkedinPOST …/search
Connection requests waiting for you, with any note.list_received_invitationsGET …/invitations/received
Accept or decline a connection request.respond_to_invitationPOST …/invitations/received/{invitation_id}
Withdraw your invitations that are still waiting after a number of days you choose. Off unless you turn it on.set_linkedin_auto_withdrawPATCH …/linkedin/settings
Who viewed your profile recently.list_profile_viewersGET …/linkedin/profile-viewers

Every LinkedIn tool · LinkedIn MCP guide · Full reference

Limits that keep the account safe

Up to 100 messages a day per account, at least 20 seconds apart, with 100 new chats a day at most and a four-week warm-up for new accounts. LinkedIn limits in full · How accounts are kept safe.

FAQ

Does LinkedIn have an API for messages?

LinkedIn does not offer a public API for messaging from a personal profile. Spaces connects your own profile after you sign in through a secure link, so your agent can read and answer your messages inside safe daily limits.

Can my agent send connection requests?

Yes, with an optional note, at a pace that stays inside LinkedIn’s limits for your plan: 100 a day and 150 a week on a free account, 100 a day and 200 a week on Premium, Sales Navigator or Recruiter, and fewer while a new account warms up. You can also have old invitations withdrawn for you.

What happens if LinkedIn restricts my account?

Sending from that account stays paused until you reconnect it. Open LinkedIn and do what it asks. A limit on one action does not pause the account, and reading keeps working.

Can I use this for cold outreach?

Spaces is for people who know you and expect to hear from you. It refuses the same cold message sent to many people and stops messaging anyone who says stop.

How much does the LinkedIn API cost?

Free to start, then $19 per connected account a month. The Free plan has one connected account and needs no card. You pay per connected account, not per message or per contact.