---
title: "Social Media API for AI agents: posts, DMs and comments · Spaces"
description: "A social media API and MCP server for AI agents: publish and schedule posts, answer DMs and reply to comments on Instagram, Facebook and LinkedIn."
url: https://www.spacesos.com/social-media-api
---

# The social media API for AI agents

One API and one MCP server for the social accounts your customers use. Publish and schedule posts on Instagram, Facebook Pages and LinkedIn, then do the part most social media APIs stop short of: read and answer the DMs and comments those posts bring in, on Instagram, WhatsApp, LinkedIn, Messenger and Telegram.

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

- **3** networks to publish and schedule on
- **5** channels to read and answer messages on
- **353** tools in one API and MCP server
- **0** developer apps to register

## Everything after the post, in one API

### Publish and schedule

Post text, photos, video, stories and carousels on Instagram, Facebook Pages and LinkedIn. Schedule once or every week, add a first comment, or cross-post one post to several accounts, adapted to each network.

### Read and answer DMs

Every conversation on Instagram, WhatsApp, LinkedIn, Messenger and Telegram in one API: list chats, read messages and attachments, reply, start a chat and schedule a message.

### Comments and comment-to-DM

Read and reply to comments, like them, and answer a comment with a private message when someone comments a keyword.

### Limits that keep accounts safe

Every action is paced inside each network’s limits, with a warm-up for new accounts, so an agent cannot get an account restricted by sending too fast.

### Events your agent listens to

New messages, comments and post results arrive as webhooks or through wait_for_events, so your agent answers within minutes, not when someone asks it to.

### Built for AI agents

Add one MCP address to Claude, ChatGPT, Cursor or your own agent and it can use every tool. Developers get the same tools as a REST API.

## A publishing API, or a social media API for agents

| What you need | Publishing-only APIs | Spaces |
| --- | --- | --- |
| Publish and schedule posts | Yes | Yes |
| Read and answer DMs on the same accounts | Usually not | Yes |
| WhatsApp and Telegram chats in the same API | Usually not | Yes |
| An MCP server any AI agent can add | Usually not | Yes |
| Per-account limits so an agent cannot send too fast | Usually not | Yes |

Comparing a specific tool? See [Spaces vs Ayrshare](https://www.spacesos.com/compare/ayrshare) and [every comparison](https://www.spacesos.com/compare).

## One post to several networks

Send one post to several accounts. Spaces adapts it to each network and returns one result per account. Preview first with `/v1/posts/cross/preview`, which sends nothing.

```
curl https://api.spacesos.com/v1/posts/cross \
  -H "Authorization: Bearer $SPACES_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Autumn menu is out. Book a table this week.",
    "media": ["https://example.com/menu.jpg"],
    "targets": [{ "account_id": "acc_instagram" }, { "account_id": "acc_linkedin" }],
    "send_at": "2026-12-05T09:00",
    "timezone": "America/Toronto"
  }'
```

## An API for each network

### [WhatsApp API](https://www.spacesos.com/whatsapp-api)

A WhatsApp API and MCP server for AI agents on your own number: read and answer chats, send files, start and schedule messages. Free to start.

### [Instagram API](https://www.spacesos.com/instagram-api)

Let your AI agent answer Instagram DMs, reply to comments, turn comments into DMs and manage followers, on the account you already use. Free to start.

### [LinkedIn API](https://www.spacesos.com/linkedin-api)

Let your AI agent answer LinkedIn messages and InMail, send invitations, search people and companies, and post, on your own profile. Free to start.

### [Messenger API](https://www.spacesos.com/messenger-api)

Let your AI agent answer Facebook Messenger and Page messages with photos and files, start chats and schedule replies, inside safe limits. Free to start.

### [Telegram API](https://www.spacesos.com/telegram-api)

A Telegram API and MCP server for AI agents on your own Telegram account: read and answer chats with photos and files, inside safe limits. Free to start.

## Who builds on it

- [AI agents and the people who run them](https://www.spacesos.com/agents): add one MCP address and your agent posts and answers on your accounts.
- [SaaS products and AI startups](https://www.spacesos.com/docs/partners): your customers connect their own accounts through a link, and your product posts and answers for them.
- [Digital agencies](https://www.spacesos.com/agencies): one workspace per client, with reports that never show your cost.
- [Enterprises](https://www.spacesos.com/pricing): custom limits and terms on the Enterprise plan.

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)

### What is a social media API?

A social media API lets your software or your AI agent work with social accounts without opening each app: publish and schedule posts, read comments and messages, and reply. A unified social media API does this for several networks through one set of calls, so you do not build and maintain a separate connection for each network.

### Which social networks does the Spaces API cover?

Publishing and scheduling on Instagram, Facebook Pages and LinkedIn. Messages on Instagram, WhatsApp, LinkedIn, Messenger and Telegram. Spaces covers fewer networks than tools that only publish, and goes deeper on each one: the conversations, comments and limits as well as the posts.

### How is Spaces different from a publishing API?

Most social media APIs are built for posting and analytics. Spaces is the messaging layer for AI agents: it publishes too, and it lets your agent answer the people who reply, comment and send DMs, on the same accounts, inside each network’s limits.

### Do I need a developer app or app review on each network?

No. You connect each account through a secure link and approve it. Spaces handles the connection, so there is no developer app to register and no review to wait for.

### Can I use it from Claude, ChatGPT or my own agent?

Yes. Add https://api.spacesos.com/mcp as an MCP server and your agent sees every tool, or call the REST API at https://api.spacesos.com/v1 from your own code.

### Can I connect my customers’ accounts, for a SaaS product or an agency?

Yes. Each customer connects their own accounts through a link you send or embed, and your keys only see the accounts they may use. See the partner docs at /docs/partners.

### How much does the social media API cost?

[Free to start](https://www.spacesos.com/pricing). Reading messages, comments and posts is always free. You pay per connected account, not per post or per message.

Live in under 60 seconds

## Post, then answer everyone who replies.

Connect your first account in a minute. 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.
