---
title: "Zed Instagram, WhatsApp and LinkedIn integration · Spaces"
description: "Add Instagram, WhatsApp, LinkedIn, Messenger and Telegram messages to your Zed app with Spaces: one API, a prompt to paste, and no Meta app review."
url: https://www.spacesos.com/build-with/zed
---

# Instagram, WhatsApp and LinkedIn messages in your Zed app

Zed builds apps in the Zed editor, with its agent. Spaces gives that app one API for the messages on Instagram, WhatsApp, LinkedIn, Facebook Messenger and Telegram: read the chats, reply, and see what came in, without a developer app or review on each network.

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

By channel: [Zed + WhatsApp](https://www.spacesos.com/build-with/zed/whatsapp) · [Zed + Instagram](https://www.spacesos.com/build-with/zed/instagram) · [Zed + LinkedIn](https://www.spacesos.com/build-with/zed/linkedin) · [Zed + Facebook Messenger](https://www.spacesos.com/build-with/zed/messenger) · [Zed + Telegram](https://www.spacesos.com/build-with/zed/telegram)

## Four steps

1. ### Get a Spaces key
  Sign up free, connect the account you want to test with, and create an API key in Settings, under Developers.
2. ### Add it to Zed
  Save it in environment variables (a.env file kept out of git, and your host’s secret settings), as SPACES_API_KEY.
3. ### Paste the prompt
  Give Zed the prompt below. It reads the Spaces guide for agents and builds the inbox, calling Spaces from your own server code or API routes.
4. ### Try it on a real chat
  Ask a friend to message the connected account, then answer from your app.

## The prompt for Zed: your own accounts

For an inbox, a dashboard or an AI agent that answers your business’s messages.

```
Add Spaces to this app so it can read and answer my Instagram, WhatsApp, LinkedIn, Messenger and Telegram 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. A list of my connected accounts: GET /messaging/accounts.
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.

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 as a context server in Zed’s settings.

## Add the Spaces MCP server to Zed

Add https://api.spacesos.com/mcp as a remote MCP server (streamable HTTP) and sign in with your Spaces account when asked. With it, the agent can list your accounts and read a real chat while it builds, so the code matches what Spaces returns.

## The prompt for Zed: your users’ accounts

For a product where each user connects their own Instagram, WhatsApp or LinkedIn. This needs a partner account, in early access: email hello@spacesos.com, or read [Spaces for SaaS](https://www.spacesos.com/saas).

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

## Safe for the accounts

- Every account is paced inside each network’s limits, and new accounts warm up over four weeks. [Limits per channel](https://www.spacesos.com/limits).
- Messages written by other people are screened before an AI agent reads them.
- Repeated messages to many people wait for a person to approve them.

FAQ

## Questions, *answered.*

**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 Zed app send Instagram, WhatsApp and LinkedIn messages?

Yes, through Spaces. The app calls the Spaces API from your own server code or API routes, and Spaces reads and sends on the accounts that are connected to it: Instagram, WhatsApp, LinkedIn, Facebook Messenger and Telegram.

### Do I need a Meta or LinkedIn developer app?

No. Accounts connect through a Spaces link, with a QR code for WhatsApp and a normal sign-in for the others. There is no app review to pass on each network.

### Where does the API key go?

In environment variables (a.env file kept out of git, and your host’s secret settings). Call Spaces only from your own server code or API routes, never from code that runs in the browser.

### Can the people who use my app connect their own accounts?

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

### Is there a free plan?

Yes. 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 accounts get banned?

Spaces paces every account inside each network’s limits, warms new accounts up over four weeks and holds repeated messages for you to approve. No tool can promise a platform will never restrict an account, so build for replies to people who wrote in, not cold blasts.

Building with something else? [Cursor](https://www.spacesos.com/build-with/cursor) · [Claude Code](https://www.spacesos.com/build-with/claude-code) · [GitHub Copilot](https://www.spacesos.com/build-with/github-copilot) · [Codex](https://www.spacesos.com/build-with/codex) · [Windsurf](https://www.spacesos.com/build-with/windsurf) · [Google Antigravity](https://www.spacesos.com/build-with/antigravity) · [Jules](https://www.spacesos.com/build-with/jules) · [Cline](https://www.spacesos.com/build-with/cline) · [All 49 builders](https://www.spacesos.com/build-with)

Live in under 60 seconds

## Your Zed app, answering Instagram, WhatsApp and 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.
