Sync Inbox or Specific Conversation



Sync All Conversations (Inbox)


This endpoint is used to synchronize conversations and messages from LinkedIn inbox, using

POST/api/v1/conversations/sync

curl https://api.salesflow.io/public/v1/conversations/sync \
  --request POST \
  --header 'X-AccountId: 1234567890' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "conversationsFromDate": "2025-08-01T00:30:00Z",
  "messagesFromDate": "2025-01-01T00:00:00Z",
  "cursor": null
}'

Note:
X-AccountId is required in the request header. You obtain this ID after adding a LinkedIn account through the iFrame authentication flow.

Request Body

Field

Type

Format

Description

conversationsFromDate

string

date-time

Sync conversations created or updated since this date and greater.

messagesFromDate

string

date-time

Sync messages within conversations since this date and greater.

cursor

string | null

Cursor for paginating conversation sync results. Set to null for initial request.

Response : 202 -Synchronization started successfully.

Get array Conversations to Webhook New Messages

Check how wehooks works (Doc Webhooks Triggers > New Messages)

Sync Specific Conversation

POST /api/v1/conversations/{id}/sync

curl 'https://api.salesflow.io/public/v1/conversations/{id}/sync' \
  --request POST \
  --header 'X-AccountId: 1234567890' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'

Note:

X-AccountId is required in the request header. You obtain this ID after adding a LinkedIn account through the iFrame authentication flow.

Response : 202 -Message synchronization started successfully..

Get Conversation data to Webhook New Messages

Check how wehooks works (Doc Webhooks Triggers > New Messages)

Use Cases

  1. Pre-Sync Before Inbox Display

    • Call this endpoint before showing inbox in your UI.

  2. Trigger New Message Webhook

    • Use this as part of your webhook strategy to update your system with new incoming or outgoing messages.

  3. Avoid Data Loss on Reconnect

    • Sync message history when a user reconnects their LinkedIn account after disconnection.

  4. Scheduled Inbox Updates

    • Run this sync every few hours in the background for users to keep CRM data up to date.