Social media API for AI agents: publish, schedule, reply and measure
A social media API for AI agents lets Claude, ChatGPT or your platform publish, schedule, reply to comments and DMs and read analytics on a business's accounts, and easyCoexistence is one, built on each network's official API. It covers WhatsApp, Instagram, Facebook, TikTok, YouTube, LinkedIn and more channels behind one MCP connector and a Partner API, every connection monitored 24/7, at US$ 9 to US$ 0.75 per connection a month.
- Each network's official API, through OAuth
- One MCP connector and a Partner API
- Every connection monitored 24/7
Nothing charged for 3 days. Cancel anytime.
MCP connectors an easyCoexistence account needs, reaching every network connected to it.
How often easyCoexistence checks each social connection, renewing its access before it expires.
The most text one Instagram DM can carry through the API, encoded as UTF-8.
Video posts TikTok's publishing endpoint accepts per account through the API.
What YouTube's push notifications report: a new upload, a new title or a new description, not comments.
What can an AI agent do on each network?
Publish, schedule, reply and measure, as far as each network's API allows. Posts cover photos, carousels, Reels and Stories on Instagram; text, links, photos and videos on Facebook; videos and photo posts on TikTok; uploads on YouTube; and text with an image or a link on LinkedIn. Analytics come from each network's own figures, from Instagram insights to YouTube Analytics and LinkedIn statistics.
Conversations differ most. The agent replies to DMs on WhatsApp, Instagram and Facebook; on TikTok, YouTube and LinkedIn it works in the comments. The table sets out the split.
| Publish and schedule | Conversations | |
|---|---|---|
| Templates to open a conversation | Replies within 24 hours of a message | |
| Posts, Reels and Stories; our queue | Replies to comments and DMs, comment-to-DM | |
| Page posts; our queue | Replies to comments and Messenger, comment-to-DM | |
| TikTok | Videos and photo posts; our queue | Comment replies, in public |
| YouTube | Uploads; YouTube's scheduling | Comments, read and replied to on request |
| Page and profile posts, scheduled on request | Comments, read and replied to on request |
Which official API does each connection use?
The network's own, signed in through the network's own login, so nothing depends on a shared password or an unofficial session:
- WhatsApp: Meta's Cloud API, on a number connected through Coexistence, so the WhatsApp Business app keeps working beside it.
- Instagram: the Instagram API with Instagram Login, on a Business or Creator account.
- Facebook: Meta's Pages API through Facebook Login for Business, with each Page its own connection.
- TikTok: TikTok's API for Business, on a personal or Business account.
- YouTube: the YouTube Data API and YouTube Analytics API, through Google sign-in.
- LinkedIn: the Community Management API, for company Pages and a personal profile.
How does an agent call it: MCP or the API?
Either, and often both. Claude, ChatGPT and other MCP clients use the connector at https://easycoexistence.com/api/mcp, with more than 35 tools behind one OAuth sign-in. Your own platform uses the Partner API: it connects your customers' accounts through a hosted link, lists and removes connections, hands out each one's credentials and sets where its events go.
With those credentials, your code calls TikTok, Google or LinkedIn directly. easyCoexistence connects each account, keeps its token renewed and monitors it, without sitting between your code and the network. Instagram and Facebook work through the MCP tools, which keep the token.
How do events reach the agent?
As they happen, on the networks that send them. Comments, mentions and DMs on Instagram and Facebook, and comments on TikTok, are forwarded to your HTTPS endpoint, signed with a secret for each account. A WhatsApp number's messages go from Meta straight to your server, or through easyCoexistence when automations or signed forwarding are on.
YouTube and LinkedIn are read on request instead: the agent lists new comments and replies when it runs. Changes to a connection, such as one being connected, dropping or being removed, arrive as signed events at the URL you set, retried for about 33 hours.
How is each connection kept working?
By watching it around the clock. A WhatsApp number is followed through Meta's webhooks and regular checks of its quality rating, messaging tier, Coexistence link and ability to send, and the owner gets an email when Meta disconnects it, and when sending is blocked or restored.
Social accounts are checked every 6 hours, and their tokens are renewed before they expire: Instagram's 60-day token, TikTok's 24-hour one and Google's hourly one. LinkedIn's access lasts 60 days, and the owner is emailed whenever an account needs reconnecting.
Common mistakes
- Storing a network token for later. TikTok tokens rotate, so fetch the credentials fresh from easyCoexistence each time you need them.
- Treating forwarded events as a queue. Each one is passed on once, with no copy kept and no retries, so answer 2xx at once and do slow work afterwards.
- Attaching files to an MCP publishing tool. The MCP tools take media at a public HTTPS URL; from your own code, upload a file with POST /media and pass its media_id.
easyCoexistence gives AI agents one API and MCP server for WhatsApp, Instagram, Facebook, TikTok, YouTube, LinkedIn and more channels, each on its official API, with every connection monitored 24/7. US$ 9 to US$ 0.75 per connection per month, the same on every network, no seats, with the first 3 days free.
easyCoexistence is a multichannel API and MCP server that connects AI agents such as Claude and ChatGPT to WhatsApp, Instagram, TikTok, Facebook and more. On WhatsApp it uses Coexistence: the business keeps using its number in the WhatsApp Business app while the AI works through Meta's official API.
Frequently asked questions
Can my own platform use it, or only Claude and ChatGPT?
Both. Assistants use the MCP connector. Your platform uses the Partner API to connect customers' accounts, then calls each network's API with the credentials easyCoexistence issues and keeps renewed.
Can the agent reply to DMs on every network?
On WhatsApp, Instagram and Facebook, within 24 hours of the person's last message. TikTok, YouTube and LinkedIn have no DMs here, so the agent works in the comments.
How much does easyCoexistence cost for AI agents?
Per connection, the same on every network: US$ 9 to US$ 0.75 per connection per month, falling as you add connections. There are no seats, and the first 3 days are free.
What happens if a connection drops?
easyCoexistence emails the owner and, if you set an events URL, sends your platform a signed event. Running the network's sign-in again reconnects the account.
Keep reading
Connect your first channel in two minutes.
No platform reviews to wait for. Connect WhatsApp, Instagram, TikTok or another channel, then ask your AI to post, reply or report, and watch it work.
- 3 days free
- Cancel any time
- Official APIs only
- Monitored 24/7
Verified on