---
title: "Rork Instagram integration · Spaces"
description: "Connect Instagram to an app built with Rork: 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/rork/instagram
---

# Connect Instagram to your Rork app

Rork builds native iOS and Android apps (Expo). With Spaces, that app reads your Instagram chats and replies through one API, without a developer app or a review by Instagram. You keep using the account you already have.

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

**Rork**

**Instagram**

## What your Rork app can do on Instagram

### DMs and message requests

Read and answer every DM, message requests too, with photos, videos and voice notes.

### Comments

Read the comments under each post and answer them, with @mentions.

### Comment a word, get a DM

Someone comments a keyword under a post and gets a private message, once each.

### Posts and insights

Publish and schedule photos and videos, and read reach and engagement for each post.

## Four steps

1. ### Get a Spaces key
  Sign up free and create an API key in Settings, under Developers.
2. ### Connect Instagram
  You sign in to Instagram through a Spaces link. Turn on two-step verification in Instagram first, so the sign-in goes through cleanly.
3. ### Add the key to Rork
  Save it in Environment Variables, as SPACES_API_KEY.
4. ### Paste the prompt
  Give Rork the prompt below. It builds the Instagram inbox, calling Spaces from a Rork Backend function.

**Keep the key off people’s devices.** Never put the key in a variable that starts with EXPO_PUBLIC_: those are built into the app that people download.

## The prompt for Rork

For an app that answers your own Instagram. 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 Instagram 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 Rork Backend function, with the header "Authorization: Bearer <key>". Never send the key to the browser.

Build:
1. My connected Instagram accounts: GET /messaging/accounts?channel=instagram.
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.

Instagram is paced tightly for new conversations with strangers, so build for answering people who wrote in. Comments, comment-to-DM and posts are described in the Instagram 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.
```

Have the app call your Rork Backend function, and only the function call Spaces.

## Let Rork look at your real Instagram chats

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

## Apps people build with Instagram

### A DM inbox for a shop

Questions about price, sizes and delivery are answered in minutes, with the order link.

### A comment-to-DM funnel

People comment a word under a launch post and get the link in their DMs.

### A creator dashboard

Messages, comments and post results for one account, on one screen.

Do you have the green jacket in medium?

Yes, two left in medium. Here is the link to order, and it ships tomorrow.

Ordered, thanks!

## Limits that keep the account safe

| New messages a day | 150 |
| --- | --- |
| Replies to people who wrote in, a day | 250 |
| New conversations a day | 100 |
| Gap between two sends | 15 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 paces new conversations with strangers tightly on Instagram. It is built for answering people who write in, not for cold mass DMs.

## Your users’ Instagram accounts

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

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 Rork app send and receive Instagram messages?

Yes, through Spaces. The app calls the Spaces API from a Rork Backend function, and Spaces reads and sends on the Instagram accounts connected to it.

### How do I connect Instagram?

You sign in to Instagram through a Spaces link. Turn on two-step verification in Instagram first, so the sign-in goes through cleanly. There is no developer app or app review to pass.

### Where does the API key go?

In Environment Variables. Call Spaces only from a Rork Backend function, never from code that runs in the browser.

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

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 Instagram account get restricted?

Spaces paces new conversations with strangers tightly on Instagram. It is built for answering people who write in, not for cold mass DMs. 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 Rork: [WhatsApp](https://www.spacesos.com/build-with/rork/whatsapp) · [LinkedIn](https://www.spacesos.com/build-with/rork/linkedin) · [Facebook Messenger](https://www.spacesos.com/build-with/rork/messenger) · [Telegram](https://www.spacesos.com/build-with/rork/telegram) · [Instagram in Spaces](https://www.spacesos.com/channels/instagram)

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

Live in under 60 seconds

## Your Rork app, answering Instagram.

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.
