---
title: "Rocket LinkedIn integration · Spaces"
description: "Connect LinkedIn to an app built with Rocket: read chats and reply through one API, with a prompt to paste and no developer app or review."
url: https://www.spacesos.com/build-with/rocket/linkedin
---

# Connect LinkedIn to your Rocket app

Rocket builds web and mobile apps. With Spaces, that app reads your LinkedIn chats and replies through one API, without a developer app or a review by LinkedIn. You keep using the account you already have.

[Get a free API key](https://www.spacesos.com/signup) Copy the prompt

**Rocket**

**LinkedIn**

## What your Rocket 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.

## Four steps

1. ### Get a Spaces key
  Sign up free and create an API key in Settings, under Developers.
2. ### Connect LinkedIn
  You sign in to LinkedIn through a Spaces link, including any code LinkedIn asks for.
3. ### Add the key to Rocket
  Save it in the.env file in the Code tab, with separate staging and production values, as SPACES_API_KEY.
4. ### Paste the prompt
  Give Rocket the prompt below. It builds the LinkedIn inbox, calling Spaces from a server-side API route or a Supabase edge function.

## The prompt for Rocket

For an app that answers your own LinkedIn. Paste it as it is: it stays in English so it matches the Spaces docs word for word.

```
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 a server-side API route or a Supabase edge function, 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.
```

Use a separate Spaces key for staging, so tests never touch your live accounts.

## Let Rocket look at your real LinkedIn chats

To give it only the LinkedIn tools, use this address instead of the main one: `https://api.spacesos.com/mcp/linkedin`

## Apps people build with 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.

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.

## Limits that keep the account safe

| 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 |

For each account after warm-up. New accounts start lower and warm up over four weeks. [Every limit, per channel](https://www.spacesos.com/limits)

Spaces keeps each LinkedIn account inside LinkedIn’s daily limits. It suits personal outreach and follow-ups, not thousands of messages a day.

## Your users’ LinkedIn accounts

Building a product where each user connects their own LinkedIn? That needs a partner account, in early access. [Spaces for SaaS](https://www.spacesos.com/saas) · [Partner setup for Rocket](https://www.spacesos.com/build-with/rocket)

06

## Questions

**Still have a question?** Ask your AI agent: it can read our docs. Or browse every answer.[All answers](https://www.spacesos.com/answers)

### Can a Rocket app send and receive LinkedIn messages?

Yes, through Spaces. The app calls the Spaces API from a server-side API route or a Supabase edge function, and Spaces reads and sends on the LinkedIn accounts connected to it.

### How do I connect LinkedIn?

You sign in to LinkedIn through a Spaces link, including any code LinkedIn asks for. There is no developer app or app review to pass.

### Where does the API key go?

In the.env file in the Code tab, with separate staging and production values. Call Spaces only from a server-side API route or a Supabase edge function, never from code that runs in the browser.

### Can my app’s users connect their own LinkedIn?

Yes, with a partner account: each user connects through a link that shows your app’s name and gets a key of their own. Partner accounts are in early access; see Spaces for SaaS.

### What does it cost?

The Free plan has 1 connected account and 20 actions a day, with no card, which is enough to build and test. Pay as you go is $19 a month per account with 200 actions per account a day, then $0.005 an action. Reading messages is always free.

### Will my LinkedIn account get restricted?

Spaces keeps each LinkedIn account inside LinkedIn’s daily limits. It suits personal outreach and follow-ups, not thousands of messages a day. New accounts warm up over four weeks, and repeated messages to many people wait for you to approve them. No tool can promise a platform will never restrict an account.

Other channels in Rocket: [WhatsApp](https://www.spacesos.com/build-with/rocket/whatsapp) · [Instagram](https://www.spacesos.com/build-with/rocket/instagram) · [Facebook Messenger](https://www.spacesos.com/build-with/rocket/messenger) · [Telegram](https://www.spacesos.com/build-with/rocket/telegram) · [LinkedIn in Spaces](https://www.spacesos.com/channels/linkedin)

LinkedIn with another builder: [Lovable](https://www.spacesos.com/build-with/lovable/linkedin) · [Base44](https://www.spacesos.com/build-with/base44/linkedin) · [Bolt](https://www.spacesos.com/build-with/bolt/linkedin) · [Replit](https://www.spacesos.com/build-with/replit/linkedin) · [v0](https://www.spacesos.com/build-with/v0/linkedin) · [Anything](https://www.spacesos.com/build-with/anything/linkedin) · [Google AI Studio](https://www.spacesos.com/build-with/google-ai-studio/linkedin) · [Emergent](https://www.spacesos.com/build-with/emergent/linkedin) · [All 49 builders](https://www.spacesos.com/build-with)

Live in under 60 seconds

## Your Rocket app, answering LinkedIn.

Start free with one account and 20 actions a day. 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.
