The social media engagement API: comments, DMs, and reviews
Get to market fast and scale effortlessly with the Ayrshare Engagement API for social media. Manage comments, direct messages, and reviews across networks from a single integration, with automations and real-time webhooks that turn conversations into sales, customer engagement, and direct customer support.
Read the docs14+
social networks, one call
4
DM channels
30M+
API calls handled daily
1
integration to maintain
14+
social networks, one call
4
DM channels
30M+
API calls handled daily
1
integration to maintain
One integration covers the whole conversation
Once your product starts publishing, replies follow: comments on Instagram, DMs on Facebook Messenger, reviews on Google Business Profile. Each normally needs its own platform API, with its own permissions and webhook formats. Ayrshare handles them all through the same integration, auth, and profiles you already use for publishing, so the inbox is an endpoint away.
Every interaction after the post goes live
Comments
Post, reply, retrieve, and delete comments, with one comment posting to every network where the original went out. Works with an Ayrshare post ID or the network's own IDs, so it also covers posts published outside Ayrshare.
Direct messages
Send and receive text, image, and video messages, pull full conversation histories, and set up automated responses for the channels where DMs drive business. WhatsApp Business messaging is now in private beta: free-form replies inside Meta's 24-hour customer service window, incoming messages and media, and stored conversations.
Reviews
Retrieve reviews, publish responses, and delete replies where the platform allows it. Reputation management runs through the same API as the rest of the inbox.
Instagram automations
Per-profile rules that turn engagement into action: a keyword comment, a story reply, an incoming DM, or a DM reaction triggers a DM reply, a webhook, an email, or all three. Runs entirely within Meta's policies, so your users' accounts stay safe.
Real-time webhooks
Events for comments, mentions, DMs, reactions, and read receipts delivered as they happen. Build a live inbox without polling loops or missed activity.
Moderation controls
Delete comments or entire comment threads, remove review replies, and turn comments off at publish time or on a live post (Instagram, LinkedIn, and TikTok). Give your users control over their own conversation surface.
Which networks support comments, DMs, and reviews?
Comment management covers Bluesky, Facebook Pages, Instagram, LinkedIn, Reddit, Threads, TikTok, X (Twitter), and YouTube. Direct messages run on Facebook Messenger, Instagram, and X, with WhatsApp in private beta. Reviews cover Facebook Pages and Google Business Profile, and engagement automations run on Instagram.
Facebook Pages
X (Twitter)
WhatsApp (beta)
TikTok
YouTube
Threads
Bluesky
Google Business Profile
// Reply to a comment on any supported networkconst res = await fetch("https://api.ayrshare.com/api/comments/reply", { method: "POST", headers: { "Content-Type": "application/json", "Authorization": `Bearer ${API_KEY}`, "Profile-Key": PROFILE_KEY // your end user }, body: JSON.stringify({ commentId: "COMMENT_ID", comment: "Thanks! Both sizes are back in stock." })});
Reply everywhere with the ID you already have
Publishing, comments, and messages share the same post and profile IDs, so the reply flow reads naturally against the objects your product already tracks. No mapping tables, no second vendor.
• One integration for Comments, DMs and Reviews
• Per-profile isolation: each end user's inbox and rate limits stay their own
• Webhooks for received messages, reactions, and read receipts
• The same endpoints work for AI agents responding at scale, with rate limiting and deduplication protecting the accounts they manage
Engagement plugs into everything else you've already integrated
Comments and DMs reference the same posts and profiles as publishing, analytics, and history. Add the inbox without adding a vendor.
Publishing
Post and schedule across 14+ networks in one call, with validation and approvals.
Analytics
Measure which posts drive the comments and messages your users are answering.
History
Pull past posts and engagement context per profile, including content published outside Ayrshare.
Engagement API questions
A social media engagement API lets your product handle everything that happens after a post goes live: reading and replying to comments, managing direct messages, and responding to reviews. The Ayrshare API puts all of it behind the same integration used for publishing.
The Ayrshare Comments API supports Bluesky, Facebook Pages, Instagram, LinkedIn, Reddit, Threads, TikTok, X (Twitter), and YouTube. Comments can be posted, replied to, retrieved, and deleted, within what each platform allows.
No. Comment replies are available from the Premium plan up, and Ayrshare doesn't impose monthly caps of its own. Each social network's rate limits still apply, though: platforms like Instagram, TikTok, and X enforce their own restrictions on comment activity, and Ayrshare operates within them rather than bypassing them. On X, replies are sent through your own X Developer credentials, so any permissions or restrictions on those credentials apply as well.
Facebook Messenger, Instagram, and X, with WhatsApp in private beta. The Ayrshare Messages API supports text, image, and video messages, full conversation retrieval, automated responses, and webhooks for received messages, reactions, and read receipts.
Yes, in private beta. Approved accounts link a WhatsApp Business Account through Meta's embedded signup flow, send free-form messages during Meta's 24-hour customer service window, receive incoming messages and media, and retrieve stored WhatsApp conversations. Contact Ayrshare to request access.
No. The Messages API manages and automates conversations with people who contacted the account first; it cannot send cold outbound DMs to users who haven't initiated contact, in line with Facebook, Instagram, and X platform policies. Within an existing conversation, it supports sending text, image, and video messages, retrieving the full conversation history, configuring automated replies, and webhooks for new messages, reactions, and read receipts.
Yes. The Ayrshare Reviews API retrieves reviews and publishes or deletes responses on Facebook Pages and Google Business Profile, so reputation management lives inside your product.
Yes. By passing the social network's own post or comment ID, the Ayrshare API can retrieve and respond to comments on content published natively or through another system, so your product's inbox covers everything.
Yes. Comments, DMs, and reviews arrive through consistent Ayrshare endpoints and webhook events, so a single inbox view in your product can show Instagram comments next to Facebook messages next to Google reviews, each with a reply action wired to the matching endpoint.
A keyword-matching comment on a post, a story reply, an incoming DM matching a keyword, or an emoji reaction to a DM can trigger a DM reply, a webhook into your pipeline, an email, or any combination. Rules are configured per profile and run entirely within Meta's policies.
The automation engine runs inside Meta's policy envelope by design: no follow-triggered DMs, no first messages to strangers, no bulk outbound. Every trigger represents a user who contacted the account first, and dispatches inherit per-account rate limits, per-recipient deduplication, and pacing tuned to Instagram's anti-spam thresholds.
Yes. AI agents can read new comments and messages via webhooks, draft responses, and reply through the same Ayrshare endpoints, with rate limiting and deduplication applied so agent-speed responses don't put the underlying accounts at risk.
Full parameter and response documentation lives in the Ayrshare Comments API docs and the Messages API docs.
Give your product the inbox its users keep asking for
If you already publish through Ayrshare, engagement uses the same keys, profiles, and IDs. If you don't yet, your first reply is one integration away.