Skip to main content

LinkedIn Messaging API

List conversations, read message history, and reply to LinkedIn messages programmatically. PostPeer gives you one unified endpoint and handles OAuth and token refreshes for you.

  • List conversations with participants and last message
  • Load full message history for any conversation
  • Reply to professional conversations from one endpoint
  • OAuth and token refreshes handled for you
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 "https://api.postpeer.dev/v1/messages?platform=linkedin&accountId=acc_li_567&limit=20" \
  -H "x-access-key: your-api-key"
JSONResponse
{
  "success": true,
  "selfId": "urn:li:person:AbC123",
  "selfUsername": "Your Brand",
  "conversations": [
    {
      "id": "urn:li:conversation:2233445566",
      "participants": [
        {
          "id": "urn:li:person:XyZ789",
          "name": "Jane Doe",
          "username": "jane-doe",
          "profilePictureUrl": "https://media.licdn.com/dms/image/..."
        },
        {
          "id": "urn:li:person:AbC123",
          "name": "Your Brand",
          "username": "yourbrand",
          "profilePictureUrl": "https://media.licdn.com/dms/image/..."
        }
      ],
      "lastMessage": {
        "id": "urn:li:message:6900000000000000001",
        "text": "Thanks for connecting, can we set up a call?",
        "from": {
          "id": "urn:li:person:XyZ789",
          "name": "Jane Doe"
        },
        "timestamp": "2026-08-05T16:40:00Z"
      },
      "updatedTime": "2026-08-05T16:40:00Z"
    }
  ],
  "nextCursor": "QVFIUl9..."
}

Everything You Need for LinkedIn Messaging

Read and reply to professional conversations without wrangling the LinkedIn API. List conversations, load history, and send replies from one endpoint.

List Conversations

Fetch conversations for a connected LinkedIn account with each participant name, headline, and profile picture, plus the most recent message and updated time.

Read Message History

Load the messages in a conversation, paginated, each with the sender and a timestamp. Rebuild the full professional thread on your side.

Send Replies

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

OAuth and Refresh Handled

Your users connect their LinkedIn account through PostPeer's OAuth flow. PostPeer manages tokens and refreshes so your integration keeps working without manual re-auth.

Build Your Own Inbox

Everything the PostPeer dashboard inbox uses is available through the API, so you can build a branded inbox or route conversations into your sales and support tooling.

One Endpoint Across Platforms

The LinkedIn Messages surface uses the same `/v1/messages` request and response shape as every other PostPeer messaging endpoint. Add it without a new integration.

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.