LinkedIn API for AI agents
Connect your LinkedIn profile and your AI agent can answer messages from connections, send and track connection requests, search people and companies, read profiles and posts, publish, comment and react, and handle job posts and Recruiter or Sales Navigator actions.
What your agent can do on LinkedIn
- Answer messages from connections
- Send, track and withdraw connection requests, and accept the ones you receive
- Search people and companies, and read profiles and posts
- Publish posts with images, video or a link preview, comment and react
- Schedule posts, reshare a post, or post as a company page you manage
- See how your posts do: impressions, clicks, engagement and reach
- Manage job posts and applicants, and Recruiter or Sales Navigator actions
Three steps
- Start a trial and connect LinkedIn. You sign in to LinkedIn through a secure link and approve the connection.
- Add Spaces to your AI agent with one URL,
https://api.spacesos.com/mcp/linkedin, or use the REST API athttps://api.spacesos.com/v1. Steps for each AI client. - 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/agentsThe core tools
| What it does | MCP tool | REST |
|---|---|---|
| Your conversations, newest first. Filter to unread. | list_messaging_chats | GET …/chats |
| The messages in one conversation. | list_messaging_messages | GET …/chats/{chat_id}/messages |
| An image, file, voice note or video from a message. | get_messaging_attachment | GET …/chats/{chat_id}/messages/{message_id}/attachments/{attachment_id} |
| Reply in a conversation, with text or attachments. | reply_in_chat | POST …/chats/{chat_id}/messages |
| Start a new conversation with someone who expects to hear from you. | start_chat | POST …/chats |
| Send a message at a set local time, inside working hours you choose. | schedule_message | POST /v1/messaging/schedules |
Only on LinkedIn
| What it does | MCP tool | REST |
|---|---|---|
| Send a connection request, with an optional note. | send_invitation | POST …/invitations |
| Connection requests you have sent. | list_invitations | GET …/invitations |
| Withdraw a connection request. | cancel_invitation | DELETE …/invitations/{invitation_id} |
| Search LinkedIn for people, companies or posts. | search_linkedin | POST …/search |
| A person’s recent posts, with reactions and comments. | list_user_posts | GET …/users/{identifier}/posts |
| Your own posts with their numbers: likes or reactions, comments, reposts, impressions, and on LinkedIn clicks, engagement and reach. | list_own_posts | GET …/posts |
| One post with its numbers, including LinkedIn analytics for your own posts. | get_post | GET …/posts/{post_id} |
| Publish a post: text, images or video and a link preview on LinkedIn, where you can also reshare a post or post as a company page you manage; a feed post or story with a caption and location on Instagram. | create_post | POST …/posts |
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 30 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: at most 20 a day and 100 a week per account, and fewer while a new account warms up.
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?
Plans from $19 a month for one connected account, with a trial. You pay per connected account, not per message or per contact.