Skip to main content
Unified Social Media Messaging API

Social Media Messaging API

Send and manage Instagram DM replies programmatically with one API. Connect your users' accounts and respond to customer messages without building Meta's messaging integration yourself.

  • List DM conversations with participants and last message
  • Load full message history for any conversation
  • Reply to messages from one unified endpoint
  • No developer apps or App Review on your side
No credit card required.
POST https://api.postpeer.dev/v1/posts
{ "platforms": ["twitter", "linkedin"], "content": "Hello world!" }
Published
2 platforms
TwitterLinkedIn
All posts delivered
Scheduled
queue
12
Queued
847
Sent
Next: in 15 min
Platforms
connected
XLIFBTT
One API, every platform
DF

"I was up and running on six different platforms in under 30 minutes. Strongly recommend!"

David Flor, Founder at Darklight Interactive

Divanshu KhatterMarketing Manager at Sembark

"Couldn't figure out the official Pinterest API. PostPeer was smooth. Using it daily."

Divanshu Khatter, Marketing Manager at Sembark

Het TikawalaFounder at Kalizzle AI Studio

"Great integration experience. Jonathan ships fixes within hours. Mad respect for the speed."

Het Tikawala, Founder at Kalizzle AI Studio

Add Social Media to Your Product in Three Steps

Connect once, then publish, schedule, and read data through the same API.

01

Get Your API Key

Sign up and get your API key instantly. No sales calls or complicated setup.

02

Integrate in Minutes

Connect once to PostPeer to publish, schedule, analyze, manage comments, and handle messages.

03

Support Every Major Platform

Give your users access to major social platforms without building and maintaining each integration yourself.

New to PostPeer? Read the getting started guide

One Request. Structured Response.

Clean, predictable JSON that's easy to parse and integrate.

POSTRequest
curl -X POST "https://api.postpeer.dev/v1/messages/" \
  -H "x-access-key: YOUR_ACCESS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "instagram",
    "accountId": "INTEGRATION_ID",
    "recipientId": "RECIPIENT_ID",
    "text": "Thanks for reaching out! How can we help?"
  }'
JSONResponse
{
  "success": true,
  "messageId": "MESSAGE_ID"
}

Why Choose PostPeer

Build the social experience your users need while PostPeer handles the platform-specific complexity behind it.

Unified Messages Endpoint

List conversations, read message history, and send replies through one `/v1/messages` endpoint. The same request shape works across every platform PostPeer supports, so you write one integration instead of one per network.

List Conversations

Fetch conversations for a connected account with each participant name, username, and profile picture, plus the most recent message and updated time. Paginate through the inbox with a cursor.

Read Message History

Load the messages in any conversation, paginated, each with the sender and a timestamp. Rebuild a full thread on your side and render it however your product needs.

Send Replies

Reply to a recipient with one call. The response returns the sent message ID so you can track delivery and reconcile it against your own inbox.

Build Your Own Inbox

Everything the PostPeer dashboard inbox uses is available through the API, so you can build a branded support inbox or wire DMs into your own CRM, help desk, or automation tools.

Platform Messaging Windows Handled

Several platforms only allow sends inside a limited window after the user's last message. Those are platform rules, not ours, and the API surfaces the failure clearly when a window has closed.

Manage Instagram Direct Messages via One API

Add messaging to your product without building and maintaining the underlying Meta messaging integration yourself.

One Integration. Every Way to Build.

Start with REST, use a typed SDK, connect an automation workflow, or hand the job to an agent. The same PostPeer API powers every path.

01

REST API

One predictable endpoint for every supported platform. Connect accounts once, then publish everywhere.

02

Typed, drop-in Node.js and Python clients generated from the same API contract.

03

No-Code Automation

Build social publishing and scheduling workflows without creating a custom backend.

04

AI Agents & MCP

Give Claude, Cursor, Codex or your own agent access through hosted MCP, Agent Skills or REST tool calling.

publish.js
const response = await fetch(
  'https://api.postpeer.dev/v1/posts',
  {
    method: 'POST',
    headers: {
      'x-access-key': process.env.POSTPEER_API_KEY,
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      content: 'Hello from PostPeer!',
      platforms: [
        { platform: 'twitter', accountId: 'acc_twitter' },
        { platform: 'linkedin', accountId: 'acc_linkedin' },
      ],
      publishNow: true,
    }),
  },
);

const post = await response.json();
One request · Twitter + LinkedIn

Frequently Asked Questions

Power Your Next Project With a Unified Social Media API

Give your users posting, scheduling, analytics, and engagement features through one API your team can maintain.

Start with 20 free credits. No credit card required.