---
title: "Amp on LinkedIn: add LinkedIn messages to your app"
description: "How to add LinkedIn to an app built with Amp: read and answer LinkedIn chats through one API, with a prompt to paste, step by step."
url: https://www.spacesos.com/blog/amp-on-linkedin
author: "Bhavya Barot"
published: "2026-12-04"
modified: "2026-12-04"
keywords: "Amp on LinkedIn,Amp LinkedIn integration,LinkedIn API for Amp,connect LinkedIn to Amp,Amp LinkedIn messages"
---

LinkedIn4 Dec 20269 min read

# Amp on LinkedIn: add LinkedIn to your app

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

You are building with Amp, and the app needs LinkedIn: to read the chats that come in, answer them, and maybe let an AI agent draft the replies. Amp can build almost any screen, but it cannot reach LinkedIn on its own.

This guide shows how to connect the two with Spaces, what the app can do once it is connected, the prompt to paste, how to test it, and the problems people run into.

Key takeaways

- Amp cannot reach LinkedIn on its own; Spaces gives the app one API for it.
- You connect the LinkedIn account you already use, with no developer app or review.
- The key stays in environment variables (a.env file kept out of git, and your host’s secret settings), and Spaces is called only from your own server code or API routes.
- Test with an account you control before real customers write.

**Amp**

**LinkedIn**

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

## The short answer

Amp apps cannot talk to LinkedIn directly. Spaces sits in between: you connect your LinkedIn account to Spaces once, and your Amp app reads and answers its chats through one REST API, called from your own server code or API routes.

There is no developer app to register and no review to pass on LinkedIn.

The same API covers Instagram, WhatsApp, LinkedIn, Facebook Messenger and Telegram, so adding a second channel later is the same calls with a different account.

## Why LinkedIn is hard to add on your own

Most people first look for a LinkedIn messaging API and find that LinkedIn does not offer one to most developers: its open APIs cover sign-in, sharing posts and a few partner programs, not reading and answering a person’s messages. Many builders stop there.

What the LinkedIn API asks for, 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.

Spaces connects the account you already use instead, and keeps each account inside the network’s limits. The full comparison, with sources: /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 it works with Amp

Amp works in your own code. You give it a prompt, it reads the Spaces guide for agents, and it writes the server routes and pages for a LinkedIn inbox in your project.

With the Spaces MCP server added, it can also look at your real accounts while it builds.

Spaces does the LinkedIn side: it holds the connection, paces every send, screens messages written by other people before an AI agent reads them, and tells your app when something new arrives through a signed webhook.

## What your Amp app can do on LinkedIn

### Messages and InMail

Read and answer chats with your connections, and send InMail with the credits you have.

### Invitations

Send connection requests with a note, answer the ones you get, and withdraw old ones.

### Search and profiles

Search people and companies, with Sales Navigator filters when you have it, and read profiles in full.

### Follow-ups that stop on reply

A few messages days apart, which stop as soon as someone answers.

## Step by step

1. Create a free Spaces account. The Free plan has 1 connected account and 20 actions a day with no card, which is enough to build and test.
2. Connect LinkedIn. You sign in to LinkedIn through a Spaces link, including any code LinkedIn asks for.
3. Create an API key in Settings, under Developers. Copy it once: Spaces shows it only when you create it.
4. Save the key in environment variables (a.env file kept out of git, and your host’s secret settings), under the name SPACES_API_KEY. Do not paste it into a page, a prompt or anything that runs in the browser.
5. Paste the prompt below into Amp. It asks for a list of your LinkedIn accounts, the chats of one account, the messages of a chat and a reply box, all called from your own server code or API routes.
6. Ask a friend to send a message to your LinkedIn account, open it in your app, and answer it. The reply arrives in LinkedIn like any other message from you.

## The prompt to paste into Amp

Paste it as it is. It stays in English so it matches the Spaces docs word for word, and it tells Amp where the key lives and what to build.

```
Add Spaces to this app so it can read and answer my LinkedIn messages.

First read https://www.spacesos.com/llms.txt. My Spaces API key is in a secret called SPACES_API_KEY. Call https://api.spacesos.com/v1 only from your own server code or API routes, with the header "Authorization: Bearer <key>". Never send the key to the browser.

Build:
1. My connected LinkedIn accounts: GET /messaging/accounts?channel=linkedin.
2. The chats of one account: GET /messaging/accounts/{account_id}/chats, newest first.
3. The messages of one chat: GET /messaging/accounts/{account_id}/chats/{chat_id}/messages.
4. A reply box: POST /messaging/accounts/{account_id}/chats/{chat_id}/messages with {"text": "..."} and an Idempotency-Key header, a new one for each message.

LinkedIn limits connection requests and new messages per account each day, and Spaces keeps every account inside them. Invitations, search and follow-ups are described in the LinkedIn section of the guide.

Show Spaces' error messages as they are. On 429, wait retry_after_seconds before trying again. Do not send the same message to many people.
```

Add Spaces to Amp’s MCP servers and paste the prompt as the first task.

Add https://api.spacesos.com/mcp as a remote MCP server (streamable HTTP) and sign in with your Spaces account when asked. To give it only the LinkedIn tools, use https://api.spacesos.com/mcp/linkedin as the MCP address.

## What it looks like

A short example of a Amp app answering on LinkedIn, 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?

Thursday works.

## Apps people build with Amp and LinkedIn

### A recruiting inbox

Candidate replies in one list, with the profile next to each chat and an AI draft to answer.

### A sales follow-up tool

Accepted invitations start a short, personal sequence that stops when the person replies.

### A founder’s LinkedIn assistant

Sorts the inbox, answers the simple messages and flags the ones that need the founder.

## Test it before real customers write

1. Connect a LinkedIn account you control, not a customer’s, and keep the app on the Free plan while you build.
2. Have a friend write to it, and check that the chat shows up with the right name and the newest message first.
3. Answer from the app and check the reply on the friend’s phone, then answer again to see that the history stays in order.
4. Send a photo or a voice note, and make sure the app shows something sensible instead of an empty bubble.
5. Turn off the network for a moment or use a wrong key, and check that the app shows Spaces’ error message instead of failing silently.
6. Only then let an AI agent draft replies, and keep a person approving them for the first days.

## Limits on LinkedIn

| 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. Spaces keeps each LinkedIn account inside LinkedIn’s daily limits. It suits personal outreach and follow-ups, not thousands of messages a day. Every limit is at /limits.

## Common problems and how to fix them

- The app shows no chats. Check that the LinkedIn account is connected in Spaces and that the app asks for accounts with channel=linkedin. A new account shows chats once someone writes to it.
- “Unauthorized”. The key is missing or wrong. Check the name of the secret in Amp and that the call adds the header Authorization: Bearer followed by the key.
- A 429 answer. A limit was reached for that account, and nothing was sent. The answer says how many seconds to wait in retry_after_seconds; wait, then try again with the same Idempotency-Key.
- The same message went out twice. Every send needs a new Idempotency-Key, and a retry must reuse the key of the message it repeats. Spaces never sends twice for the same key.
- The account needs to sign in again. Networks sometimes ask for it. Spaces marks the account and sends a link; until then, sends on that account wait. LinkedIn limits connection requests and new messages per account each day, and Spaces keeps every account inside them. Invitations, search and follow-ups are described in the LinkedIn section of the guide.

## When your users bring their own LinkedIn

Everything above uses your own LinkedIn account and one key. If you are building a product where each user connects their own LinkedIn, you need a partner account, which is in early access.

Your app creates a Spaces user for each of its users, gets a key for them, and sends them a connect link that shows your app’s name.

```
Add Spaces to this app so each of my users can connect their own Instagram, WhatsApp, LinkedIn, Messenger or Telegram account and answer their messages inside the app.

First read https://www.spacesos.com/docs/partners. My Spaces partner key is in a secret called SPACES_PARTNER_KEY. Call https://api.spacesos.com/v1 only from your own server code or API routes. Never send a key to the browser.

Build:
1. When a user opens messaging settings: POST /partner/users with {"external_user_id": "<our user id>"} (safe to repeat), then POST /partner/users/{id}/keys to get that user's key, and store it with the user, encrypted.
2. A "Connect Instagram" (or WhatsApp, LinkedIn...) button: POST /partner/users/{id}/connect-links with {"channel": "instagram", "return_url": "<this page>"} and send the user to the link.
3. With that user's key: their accounts (GET /messaging/accounts), chats, messages and a reply box, as in https://www.spacesos.com/llms.txt.

Show Spaces' error messages as they are, and wait retry_after_seconds on 429.
```

Partner pricing and the full flow are at /saas and /docs/partners.

## What it costs

[Free to start](https://www.spacesos.com/pricing)

Amp is billed by its maker, separately from Spaces. Reading messages is always free in Spaces; sends and other actions count toward the day’s allowance.

## Summary

You are building with Amp, and the app needs LinkedIn: to read the chats that come in, answer them, and maybe let an AI agent draft the replies. Amp can build almost any screen, but it cannot reach LinkedIn on its own.

## FAQ

### Does Amp support LinkedIn on its own?

Amp can call any API from your own server code or API routes, but it has no built-in LinkedIn messaging. Spaces is the API it calls: you connect LinkedIn to Spaces, and the Amp app reads and answers the chats.

### Do I need the official LinkedIn API?

No. Spaces connects the LinkedIn account you already use through a secure link, so you skip the developer app and the review. You sign in to LinkedIn through a Spaces link, including any code LinkedIn asks for.

### Can I keep using LinkedIn on my phone?

Yes. Messages your app sends appear in LinkedIn like any message from you, and you can still answer from the LinkedIn app. Both see the same chats.

### Is the API key safe in a Amp app?

Yes, if it stays in environment variables (a.env file kept out of git, and your host’s secret settings) and Spaces is called only from your own server code or API routes. Never put the key in code that runs in the browser or in a mobile app people download.

### Can the app answer on its own, with AI?

Yes. Let Spaces call your app with a webhook when a message arrives, and have an AI step draft the answer. Start with a person approving each reply, and let it send on its own once the drafts are right. Messages from other people are screened before an AI reads them.

### How much does it cost?

[Free to start](https://www.spacesos.com/pricing). The Free plan is enough to build and test. Reading messages is always free.

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

## Questions people ask

[Why does Claude Duet keep logging me out of LinkedIn?Claude Duet on LinkedIn](https://www.spacesos.com/blocked/linkedin/claude-duet/logs-you-out) [Why does ChatGPT keep logging me out of LinkedIn?ChatGPT on LinkedIn](https://www.spacesos.com/blocked/linkedin/chatgpt/logs-you-out) [Why does Instinct keep logging me out of LinkedIn?Instinct on LinkedIn](https://www.spacesos.com/blocked/linkedin/instinct/logs-you-out) [Why does LinkedIn keep logging out Claude?Claude on LinkedIn](https://www.spacesos.com/blocked/linkedin/claude/logged-out) [LinkedIn API for AI startups: give your agent LinkedIn for every userGuide](https://www.spacesos.com/blog/linkedin-api-for-ai-startups) [LinkedIn for enterprise: AI agents across teams, with controlGuide](https://www.spacesos.com/blog/linkedin-for-enterprise)

## Related

## More articles

[LinkedIn**Google Antigravity on LinkedIn: add LinkedIn to your app** 4 Dec 2026 · 9 min read](https://www.spacesos.com/blog/antigravity-on-linkedin) [LinkedIn**Aider on LinkedIn: add LinkedIn to your app** 4 Dec 2026 · 9 min read](https://www.spacesos.com/blog/aider-on-linkedin) [LinkedIn**Adalo on LinkedIn: add LinkedIn to your app** 4 Dec 2026 · 8 min read](https://www.spacesos.com/blog/adalo-on-linkedin) [LinkedIn**Anything on LinkedIn: add LinkedIn to your app** 4 Dec 2026 · 9 min read](https://www.spacesos.com/blog/anything-on-linkedin) [LinkedIn**AppSheet on LinkedIn: add LinkedIn to your app** 4 Dec 2026 · 8 min read](https://www.spacesos.com/blog/appsheet-on-linkedin) [LinkedIn**Appsmith on LinkedIn: add LinkedIn to your app** 4 Dec 2026 · 8 min read](https://www.spacesos.com/blog/appsmith-on-linkedin)

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.
