Social messaging API

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

POST /api/v1/conversations/:id/messages
{  "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

  1. 01

    Connect customer accounts

    Connect Instagram Business or Creator accounts and Facebook Pages to the teams they belong to.
  2. 02

    Enable messaging and process events

    Turn on messaging for each account, then receive the message events in your backend.
  3. 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

Set up one account, receive a real conversation event, and check how it maps to your teams and customer records. The second platform then plugs into the same conversation model.
Read the setup guide

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?

It supports Instagram DMs and Facebook Messenger conversations on Pages.

Does one messaging API mean every message format works on both platforms?

No. Conversations share one model, but rich messages, account settings, and reply rules depend on the platform. Phone buttons, for example, work on Messenger and are rejected on Instagram.

Can I build my own social inbox?

Yes. Conversations, message history, webhook events, and replies give you the messaging layer, and you build the inbox interface on top.

Is messaging available on the Free plan?

No. Direct messaging needs a paid plan. You can still use the Free plan for the API features it includes.

Can I use the same API key as my publishing integration?

Yes. Messaging is part of the bundle.social API and works within your existing organization and teams.

Which plans include DMs and automations?

bundle.social Pro includes 200 sent DMs and 200 automation runs per connected account each month. Business raises them to 1,000 sent DMs and 1,000 automation runs, and Enterprise limits are agreed per customer. Incoming messages don't count against the sent-DM allowance. DMs and automations are not available on the Free plan. DMs and automations are turned on per organization on request: email [email protected] with your organization ID.

How long are messages and automation logs kept?

bundle.social keeps messages and automation execution logs for 30 days. If your product needs a longer history, store the message events in your own database. The data retention documentation explains how old conversations are cleaned up.

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.