Social media DM API for Instagram and Facebook Messenger
A social media DM API that brings Instagram DMs and Facebook Page messages into your own product. Both platforms share one conversation model, so the same code reads messages, handles webhook events, and sends replies.
Last updated: October 2026
Official APIsDirect engineer support
{ "content": { "text": "Thanks for writing! What do you need help with?", "quickReplies": [ { "label": "Order status", "payload": "TOPIC_ORDER" }, { "label": "Returns", "payload": "TOPIC_RETURNS" } ] }, "replyToMessageId": "msg_123"}- customers
- 17,242+
- connected accounts
- 1.09m+
- uptime
- 99.881%
- Trustpilot
- 4.8 / 5
A shared conversation model for your social inbox
Account and team ownership
Each conversation is linked to the connected social account and to the team that owns it.
Message events
New messages and status changes arrive as events, so your inbox updates without polling.
Platform-aware replies
One integration sends replies to both platforms, and each platform keeps its own message formats and reply limits.
How to add social messaging
- 01
Connect customer accounts
Connect Instagram Business or Creator accounts and Facebook Pages to the teams they belong to. - 02
Enable messaging and process events
Turn on messaging for each account, then receive the message events in your backend. - 03
Read conversations and respond
Show the thread in your application and run your routing or reply logic before sending the response.
Example
Build messaging into a multi-tenant product
A multi-tenant SaaS can keep each customer’s conversations isolated by team. An agency tool can do the same per client brand. The shared conversation model gives you the data; you decide how the inbox looks and who sees what.
Conversations in the bundle.social DM API have the same fields on both networks: the platform (INSTAGRAM or FACEBOOK), the connected social account, the team, the participant, the status, and an unread count. Each message carries a direction, a delivery status, and a source. The source tells your application whether the message came from the participant, a bundle.social send, a private reply, or the account owner answering in the native app.
Sending is also the same on both platforms. A single endpoint takes text, attachments, quick replies, buttons, or a carousel, and bundle.social converts it into the format each Meta Send API expects. If a platform cannot handle part of the message, such as phone buttons on Instagram, the API returns a 400 error and nothing is sent.
Replies follow Meta's rule: a business can answer within 24 hours of the participant's last message and cannot start a conversation with someone who has never written. Each conversation exposes platformData.lastInboundAt, which your interface can use to show how much of the reply window is left.
Example: reply in an Instagram or Messenger conversation
This request replies to the participant of a conversation, and the body is identical for Instagram DMs and Facebook Messenger. Swap the conversation ID in the path and replyToMessageId for IDs from your own webhook events.
The response has the updated conversation, the sent message with its status, and a conflict flag. replyToMessageId has to point to a message in the same conversation, and the link it creates exists only in bundle.social data. Regular sends are not deduplicated, so if a request times out, list the conversation's messages before you retry.
POST /api/v1/conversations/:id/messagesRead the sending messages guide
Getting started
Start with Instagram or Facebook Messenger
Supported accounts and limits
- Direct messaging currently covers Instagram and Facebook Messenger.
- Account permissions and supported message formats differ by platform, and Meta's 24-hour reply window applies on both.
- Cold DM broadcasts are not possible. A business can only message people who wrote to it first.
- Under the bundle.social retention policy, messages are kept for 30 days. If you need a longer history, store webhook events in your own system.
- Data retention policy
FAQ
Questions developers ask before building
Which networks does the DM API support?
Does one messaging API mean every message format works on both platforms?
Can I build my own social inbox?
Is messaging available on the Free plan?
Can I use the same API key as my publishing integration?
Which plans include DMs and automations?
How long are messages and automation logs kept?
Build your messaging workflow on one API
Start a trial with whichever network your customers use most, and add the other one later.Message and automation allowances on paid plans are counted per connected account.