SocialAPI.ai

The messaging API for CRMs and helpdesks

Add WhatsApp, Instagram, Messenger, Telegram, X, Bluesky, and Zalo conversations to your CRM through one REST API. Your customers connect their own business accounts, every new message arrives in the same JSON format, and your agents reply from the contact record. SocialAPI.ai uses each platform's official API and stores and refreshes the tokens for you.

  • Free tier available
  • Instant API key
  • MCP server included
  • Updated

A message comes in, your agent replies

cURL
# 1. A customer writes on WhatsApp. Your endpoint receives:
# POST https://crm.example.com/hooks/socialapi
# X-SocialAPI-Event: dm.received
{
  "event": "dm.received",
  "data": {
    "platform": "whatsapp",
    "author": { "id": "15551234567", "name": "Maya R." },
    "content": { "text": "Can I change my delivery address?" },
    "brand_id": "<your-customer-brand-id>",
    "account_id": "<whatsapp-account-id>",
    "conversation_id": "7f1c4e2b-2841-41a8-85d7-27b0f37ac067"
  }
}

# 2. Your agent replies from the contact record
curl -X POST \
  https://api.social-api.ai/v1/inbox/conversations/<conversation-id>/messages \
  -H "Authorization: Bearer <your-api-key>" \
  -H "Content-Type: application/json" \
  -d '{
    "account_id": "<whatsapp-account-id>",
    "text": "Done. Your order now ships to the new address."
  }'

# Response
{ "success": true, "message_ids": ["sapi_dm_GXRM4BNTW7KFYSD3HAEV6QJZ2CLP9U1I"] }

SocialAPI.ai posts each new message to your endpoint with the brand, account, and conversation it belongs to. Write it to the contact's timeline, then answer with one request, which is the same on every platform.

Why: Each messaging channel you add to a CRM is its own integration project.

Instagram and Messenger need a Meta app review, WhatsApp needs Business onboarding, and Telegram needs a bot token. Each channel then has its own message format, reply window, and token lifetime, and the work repeats for every customer who connects an account. With SocialAPI.ai you integrate one conversation model and one webhook. After the first channel, a new one arrives as a different value in the platform field.

Where it lands: One call, every network

The same request lands on each platform as that platform draws it.

  • On WhatsApp

    Maya R.

    online

    Monday

    Are you open on Sunday?

    18:42

    Yes, 11 to 5.

    18:45
    Today

    Still got these in a 42?

    09:12
    ❤️
    Maya R.Still got these in a 42?

    Two pairs left. Want us to hold one?

    09:14

    Hold a pair

    Not now

    POST/v1/inbox/conversations/{id}/messages200 OK
  • On Instagram

    Jin K.

    jin.k

    Sat 6:42 PM

    Is grip tape free?

    Free with any deck.

    Today 9:12 AM

    ❤️

    Broke it on the 5-stair. Got an 8.25?

    You replied to jin.k

    Three in 8.25. Want it gripped?

    Seen

    Grip itI'll do it
    POST/v1/inbox/conversations/{id}/messages200 OK
  • On Facebook

    Anne M.

    Active now

    Anne M.

    Thu 6:42 PM

    Do you do fittings?

    Yes, every Saturday morning.

    9:12 AM
    ❤️

    Wore these out in a year. Anything tougher?

    You replied to Anne M.

    Wore these out in a year. Anything tougher?

    Double-stitched toe cap, sizes 36 to 46.

    Book a fittingSend sizes
    POST/v1/inbox/conversations/{id}/messages200 OK

Works across every connected network.

Capabilities: What the Messaging API for CRM covers

WhatsApp, Instagram, and Messenger conversations on the contact record, through one API.

  • Direct messages

    List conversations, read threads, and send replies on WhatsApp, Instagram, Messenger, Telegram, X, Bluesky, and Zalo through the same endpoints.

    • GET/v1/inbox/conversations
    • POST/v1/inbox/conversations/{id}/messages
  • Webhooks

    When a person writes on Instagram, Messenger, WhatsApp, Telegram, or Zalo, your endpoint gets a signed dm.received event with the conversation, account, and brand IDs.

    • comment.received
    • dm.received
    • mention.received
  • Delivery receipts

    Each outgoing message has a status that moves from pending to sent, delivered, read, or failed as the platform reports it.

  • Media and buttons

    Send images, video, audio, and files by URL, plus quick replies, buttons, and WhatsApp list menus on the platforms that support them.

  • Brands per customer

    One brand per CRM customer groups that customer's accounts. Every event names its brand, and a brand-restricted API key sees only its own brands.

  • Public comments

    Read and answer comments in the same inbox. On Instagram and Facebook, a private reply moves the commenter into a DM thread.

    • GET/v1/inbox/comments/{postId}
    • POST/v1/inbox/comments/{postId}

In depth: Messaging API for CRM, in depth

One conversation model for seven messengers

A conversation is the thread between one connected account and one person. It has the participant's ID, name, and picture, the last message, an unread count, and an active or archived status. Each message has a direction, text, an attachment, the message it replies to, and a delivery status. The fields are the same for a WhatsApp number, an Instagram account, a Facebook Page, a Telegram bot, an X account, a Bluesky account, and a Zalo Official Account, so you build the contact timeline once and it shows all seven.

Webhooks for the contact timeline

Instagram, Messenger, WhatsApp, Telegram, and Zalo push each new message to SocialAPI.ai as it happens, and it reaches your endpoint as a dm.received event signed with HMAC-SHA256. On Instagram, Messenger, and WhatsApp a dm.sent event also fires for messages your customer's team sent. On Instagram and Messenger that includes replies typed in the platform's own app, so those replies still appear on the timeline. X and Bluesky conversations are read through the inbox endpoints.

Reply windows on each platform

Each platform decides when a business may message a person. Instagram and Messenger allow 24 hours from the person's last message. WhatsApp needs its 24-hour service window for a free-form message and an approved template outside it. Zalo allows 7 days, and Telegram requires the person to write first. A send outside the window fails with a typed error code such as whatsapp.window_closed and sends nothing, so your composer can tell the agent why and offer a template.

Your customers connect their own accounts

Start a connection with one request and send your customer to the platform's consent screen. SocialAPI.ai redirects them back to your app with the new account's ID. WhatsApp goes through Meta's own signup. X is the exception: it connects through an X developer app that you register, because X bills API usage to the app's owner. A single-use invite link lets someone outside your app connect an account to a brand. SocialAPI.ai stores and refreshes the access tokens.

Official platform APIs

Every channel runs on the platform's official API for business accounts: the WhatsApp Business Platform, the Instagram and Messenger APIs, the Telegram Bot API, and the Zalo Official Account API. Nobody hands over an account password or a session cookie, and nobody scans a QR code from a personal phone. Bluesky connects with an app password the account owner creates, and Telegram with the bot's token.

Comments and reviews in the same inbox

Support requests also arrive as public comments and reviews. Comments on Instagram, Facebook, Threads, TikTok, YouTube, LinkedIn, X, and Bluesky and reviews on Google Business Profile use the same Interaction object as a DM, with the same author fields, so the code that opens a ticket or attaches a message to a contact handles them too. You can reply in public, or on Instagram and Facebook send a private reply that continues the thread in DMs.

An AI agent on the same inbox

The inbox your CRM reads is also available as a native MCP server with 75+ tools. The assistant inside your product can list conversations, draft a reply, and send it with the same permissions as your API key. A brand-restricted key keeps an agent that works for one customer inside that customer's conversations.

Compare: Comparing messaging APIs for your CRM?

Unipile connects LinkedIn, email, and messaging accounts for sales outreach. SocialAPI.ai covers customer conversations on business accounts through official platform APIs, with comments, reviews, and publishing on the same key.

Frequently asked questions

What developers ask before they ship.

What is the best messaging API for a CRM?

The best messaging API for a CRM depends on which conversations the CRM has to hold. For customer conversations on business accounts, choose an API that uses official platform APIs, pushes new messages by webhook, and returns the same conversation format for every channel. SocialAPI.ai does that for WhatsApp, Instagram, Messenger, Telegram, X, Bluesky, and Zalo. The same key also covers comments and Google reviews, and there is a free tier. For LinkedIn member messaging and email outreach, compare an outreach API such as Unipile or LinkupAPI.

Which messaging channels can I add to my CRM with one API?

SocialAPI.ai sends and receives direct messages on seven platforms: WhatsApp, Instagram, Facebook Messenger, Telegram, X, Bluesky, and Zalo. The conversation and message endpoints are the same on all seven. The same API also reads and answers public comments on Instagram, Facebook, Threads, TikTok, YouTube, LinkedIn, X, and Bluesky, and reviews on Google Business Profile.

How do I sync WhatsApp and Instagram DMs to CRM contact records?

Subscribe a webhook endpoint to dm.received. Each event has the sender in author (on WhatsApp the ID is the sender's phone number, or a business-scoped ID when they hide it), the message in content, and the brand_id, account_id, and conversation_id it belongs to. Match the sender to a contact, write the message to the timeline, and store the conversation_id. To reply, POST the text to /v1/inbox/conversations/{id}/messages. To backfill history, list conversations and their messages with the two GET endpoints.

Can each of my CRM's customers connect their own accounts?

Yes. Create one brand per customer, then start a connection for that brand with POST /v1/accounts/connect. Your customer approves access on the platform's consent screen and returns to your app with the account connected. Every event includes the brand_id, the conversation list filters by it, and an API key can be restricted to a set of brands, so one customer's conversations never reach another customer's workspace.

Does the API use official WhatsApp and Instagram APIs?

Yes. WhatsApp runs on the WhatsApp Business Platform through Meta's own signup, and Instagram and Messenger run on Meta's messaging APIs for professional accounts and Pages. Telegram uses the Bot API with the bot's token, Zalo the Official Account API, and Bluesky an app password. On the platforms with a consent screen your customers grant access there, and SocialAPI.ai stores and refreshes the tokens.

Can agents reply after the 24-hour window closes?

It depends on the platform. On WhatsApp, an approved template message reaches a person outside the 24-hour service window, and sending templates needs a paid plan. On Instagram connected through Instagram Login, the HUMAN_AGENT tag extends the window to 7 days for a reply typed by a member of your team, once it is enabled for your SocialAPI.ai account. On Messenger the window is 24 hours from the person's last message. A send outside a window returns a typed error and sends nothing.

How much does a messaging API cost for a multi-tenant CRM?

SocialAPI.ai prices by social profile, which is one of your customers with every account they connect. Hobby is free with 2 profiles, Side Hustle covers 10 profiles for $29 per month, Full Send 50 for $109, and Empire 200 for $349, with about 20% off on annual billing. Past 200 profiles the price is quoted by sales. A request that sends a message uses 1 interaction credit, and reading conversations and messages uses none.

Can my team answer messages before our integration is finished?

Yes. Every plan includes the SocialAPI.ai dashboard. Its inbox shows messages, comments, and reviews, and replies are sent from the screen. Your support team can work there while your developers build the same conversations into the CRM, since both read the same data.

Ready to unify your social interactions?

Free tier available. No credit card required. Ships with the MCP server.