Skip to main content
Social Selling tracks the LinkedIn posts your connected identities publish and the people who engage with them. The public API covers the same ground as the Social Selling pages of the app, in four groups:
  • Analytics: the overview, performance per identity and the best time to publish.
  • Discovery and measurement: search and rank posts across the workspace, a post’s metric history against its author’s baseline, and the outcomes that followed its engagement.
  • Content and media: a post’s text, links, mentions, first comment and every image, document or video, downloadable without a login.
  • Audience: the people who reacted or commented (engagers) and their export to a contacts list.
  • Comments and replies: comment threads with replies, author replies, and a shared reply queue.
  • Engagement: track any LinkedIn post, comment on it, get AI comment suggestions and add reactions.
  • Drafts and publishing: versioned drafts with media and a first comment, preview, schedule or publish an approved version, the publication’s outcome, the shared calendar, and the plain-text scheduler.
  • Capabilities and events: what each identity can do right now, and an event log of publications, new comments and metric refreshes.
A typical agent journey: find the best post on a topic (list_social_selling_posts with q and sortBy), inspect it (get_social_selling_post_content, list_social_selling_post_comments), reuse it as a draft for another identity (reuse_a_social_selling_post_as_a_draft), adapt and preview it, schedule the approved version, answer the comments it gets, and compare its first day with the author’s baseline (get_social_selling_post_performance). Every operation is also an MCP tool; the MCP tools table maps them.
Social Selling must be enabled for your workspace. Every call answers 403 otherwise: ask your workspace admin. Read operations need the SOCIAL_SELLING_READ scope. Write operations need SOCIAL_SELLING_WRITE, which also grants SOCIAL_SELLING_READ. The endpoint reference lists the scope and rate limit of each operation.

Before you start

Two post ids

A post can carry two ids. Each operation says which one it takes. A tracked post’s publishingPostId stays null until you first react to it or comment on it; Enginy creates it then. Comments and comment suggestions accept either id, exactly one per call. Post engagers, reactions and the export postId filter take the tracked postId. Scheduled posts use publishingPostId.

Identity scope

Over MCP, calls run as the connected user. A user restricted to some identities only reaches those identities, as in the app: their posts, analytics and engagers, and only those identities can comment or publish. Their comments, and comment suggestions by post id, only reach posts of those identities. An engager’s lifetime score and total interactions still count every identity of the workspace, as on the Prospects page of the app. The first and last detection times of an engager also cover the posts of every identity (see Posts and engagers). A workspace API key (x-api-key) reaches every identity of the workspace. An identityIds parameter narrows a call inside the caller’s scope and never widens it. The analytics and engager lists ignore ids outside the scope, and the export filter matches nothing for them. A post, identity or list of another workspace, or one outside the caller’s scope, answers 404. Reactions are the exception: an identityIds entry outside the scope answers 403.

Errors

Analytics

All analytics are read-only, use UTC days and cover the identities the caller may see. LinkedIn metrics are snapshotted daily at 03:00 UTC, so only completed days count.
  • GET /v1/social-selling/analytics/overview: posts, impressions, reactions, comments, people reached and new people reached over a range (last 30 days by default, at most 366). It compares them with the previous period of the same length (previousPeriod, changePct) and adds the impressions, reactions, comments and new people reached of each identity (series; posts and people reached per identity come from /analytics/identities). Requested identityIds the caller cannot see or that are not identities of the workspace get no series row. Add includeDaily=true for one row per day.
  • GET /v1/social-selling/analytics/identities: the same numbers per identity, ranked by sort. It ranks by reached by default, or by impressions, reactions, comments or posts. Each row has an appUrl to the identity’s page.
  • GET /v1/social-selling/analytics/publishing-times: the best weekday and hour to publish, learned from your own posts of the last 90 days. Pass timeZone (IANA, UTC by default) and a metric: engagement (reactions + comments, the default), reactions, comments or impressions. It returns the top limit slots as bestSlots, each with at least minPosts measured posts, and the averages per weekday (byWeekday) and per hour (byHour).

Discovery and measurement

Search and rank posts

GET /v1/social-selling/posts searches every tracked post of the identities you may see, so “our best map post” is one call:
  • q: case-insensitive substring of the post text or of the reposted original’s text (“map” also matches “roadmap”).
  • Filters: identityIds, dateFrom / dateTo, postTypes, topics, hasMedia, minImpressions, minComments, minReactions, includeReposts.
  • sortBy: postedAt (default), impressions, reactions, comments, reposts, recentGrowth (impressions gained over the last 7 observed days) or relativePerformance (impressions over the author’s median of the last 180 days, null below 3 comparable posts), with sortOrder. Ties break by publication time, then id, so pages never overlap.
  • The two computed sorts rank the 2,000 newest matching posts; meta.rankingWindow says so and each row carries a ranking object. Rows stay compact: media, comments and history come from the post tools below.

Post performance

GET /v1/social-selling/posts/{postId}/performance returns the post’s daily snapshots (cumulative counters and daily changes), its first-day and first-week windows, the author’s baseline for each window, engagement from your own identities apart from external people, freshness and a definition of every metric.
  • Metrics are collected daily. Hourly figures (including a first hour) are never estimated: firstHour is always NOT_COLLECTED. firstDay and firstWeek are filled only when a snapshot taken at most 24 hours after the window answers them; otherwise their availability is NOT_OBSERVED or NOT_REACHED with the reason.
  • The first snapshot of a post imported after it was published is flagged isBaseline: it is the post’s history, never growth.
  • The baseline is the median and 75th percentile of the same author’s other posts of the last 180 days at the same age, with the sample size; it is null below 3 posts.
  • Unknown values are null, never 0. lastObservedAt is when LinkedIn was read; ingestedAt is when Enginy stored it.
  • engagedAccounts counts every external person stored as having reacted or commented; newEngagers the ones seen for the first time on this post, so it never exceeds engagedAccounts. engagedAccountsLatestRead is the latest read alone, which LinkedIn caps (about 500 reactors).

Post outcomes

GET /v1/social-selling/posts/{postId}/outcomes follows the post’s engagers who are contacts: the first message sent and first reply of each conversation, and meetings booked, within windowDays (1 to 90, default 30) of their first interaction with the post. Every touchpoint is INFERRED_TEMPORAL (it happened after the interaction): Enginy stores no link clicks or form submissions tied to posts and no deal data, so nothing is reported as directly caused by the post. Blocklisted people are excluded from rows and counts, your own identities are counted apart, and a contact behind several engager profiles counts once. Impressions are never reported as leads.

Content and media

GET /v1/social-selling/posts/{postId}/content returns everything a tracked post shows: its text and links, structured mentions (for posts published through Enginy), the reposted original, the author’s first comment (where a “link in the first comment” lives) and every image, document or video in post order. Each media item has a stable assetId (spm_<postId>_<position>, or spm_<postId>_r<position> for the media of the post it reposts), its type, MIME type, dimensions, size, alt text written by the author, and an access object: By default every URL is probed before the answer (verifyMedia=false skips it), so a broken URL is never handed out as a working one. Video captions and transcripts are not collected. MCP results also carry each downloadable file as a resource_link content block, next to the structured downloadUrl.
GET /v1/social-selling/media/{assetId} reads one asset (probed by default) and POST /v1/social-selling/media/{assetId}/refresh makes its URL durable: a LinkedIn file still valid is copied to Enginy’s storage and the post points at the copy (COPIED); an expired one starts a re-read of the author’s posts (POST_REFRESH_REQUESTED). Access is re-checked on every call: an asset id never grants access by itself.

Upload media

  1. POST /v1/social-selling/media/uploads with type, mimeType, fileName, sizeBytes (and altText, title for documents, credit) answers an assetId and a presigned upload.url.
  2. PUT the file there with exactly upload.headers within an hour.
  3. POST /v1/social-selling/media/uploads/{assetId}/complete checks the stored file against the declared size and type (400 UPLOAD_MISSING or UPLOAD_MISMATCH), reads image dimensions and marks the asset AVAILABLE.
Images (JPEG, PNG, GIF, WebP; up to 8 MB, 20 per post), one video (MP4, MOV and other common formats; 3 seconds to 15 minutes) or one document (PDF, DOC(X), PPT(X); up to 100 MB, with a title). Images, videos and documents cannot be combined in one post.

Comments and replies

GET /v1/social-selling/posts/{postId}/comments lists a tracked post’s comment threads, oldest first, with replies nested under their parent. Each comment has a stable commentId, its LinkedIn commentUrn, its parent, author (with profile link, isPostAuthor and the matching identity), text, times, reactions and a link to the thread. Filter with filter (all, unanswered, mentions, questions), answeredBy, since and includeDeleted. coverage says when LinkedIn was last read and whether that read was complete; comments are the last stored read, refreshed by the daily sync and by POST /v1/social-selling/posts/{postId}/comments/sync. A comment is unanswered by an identity when it is a top-level comment that identity did not write, with no reply from that identity, and it was not resolved or dismissed in the reply queue.
  • POST /v1/social-selling/posts/{postId}/comments/{commentId}/replies replies from an identity under that exact comment, never as a top-level comment. The answer is QUEUED (sent to LinkedIn shortly) or PENDING_APPROVAL (the identity’s owner reviews it first); it is never reported as posted before it is. Send an idempotencyKey (or Idempotency-Key header): a retry returns the first reply.
  • GET /v1/social-selling/comments/{scheduledCommentId} follows it to POSTED (with its LinkedIn urn), REJECTED, CANCELLED, DELETED, FAILED (LinkedIn refused it; failureReason) or UNCERTAIN (the request may have reached LinkedIn without an answer: check the thread before posting again; Enginy never retries it on its own).
  • DELETE /v1/social-selling/comments/{scheduledCommentId} deletes a comment posted through Enginy (by the identity’s owner or an admin). Editing a posted comment is not supported.
  • The reply queue (GET /v1/social-selling/reply-queue) lists unanswered comments from other people across the workspace. POST …/reply-queue/{commentId}/claim takes one for 30 minutes so two agents never answer the same comment (409 COMMENT_CLAIMED names who holds it), and POST …/reply-queue/{commentId}/resolve closes it as REPLIED, HANDLED_ELSEWHERE or DISMISSED, or releases it. An author reply seen by a later sync closes the thread too.

Audience

Posts and engagers

GET /v1/social-selling/posts lists tracked posts newest first. Each post has its latest LinkedIn metrics (impressions, reactions and reactionsByType, comments, reposts), its engaged accounts and new engagers, and its topics and target roles. Filter with identityIds, dateFrom / dateTo (publication day) and includeReposts (off by default). GET /v1/social-selling/posts/{postId} returns one post. GET /v1/social-selling/engagers lists the people who reacted to or commented on the posts published in a range (last 90 days by default), the Prospects page of the app. Each row has a prospectId, the matching contactId / companyId when they are already in Enginy, a contactStatus (NEW, IN_CRM, CONTACTED), their interactions in the range and their lifetime engagement score. Filter by contactStatus, interaction, company or minEngagementScore, and sort server-side by engagementScore (the default), interactions, reactions or comments. The rows and the in-range counts (reactionsInRange, commentsInRange, interactionsInRange, identitiesInRange) only cover the identities the caller may see. The lifetime fields cover the whole workspace:
  • engagementScore and totalInteractions count every identity of the workspace, including identities the caller cannot see, as on the Prospects page of the app. The minEngagementScore filter and the engagementScore sort use that same score.
  • The detection times firstInteractionAt and lastInteractionAt are when an Enginy sync first and last detected the person on any tracked post of the workspace. They are not engagement times: every sync that sees the person again refreshes lastInteractionAt.
GET /v1/social-selling/posts/{postId}/engagers lists the people who engaged with one tracked post: how they reacted, what they commented and whether they are contacts, with LinkedIn’s totals for the post. Blocklisted people and your own identities never appear as engagers.

Export engagers to a list

Select the engagers in one of three ways: prospectIds (from the engager lists, at most 1,000), a tracked postId, or a dateFrom / dateTo publication range optionally narrowed by identityIds. Then keep interaction (all, commented, reacted) and contacts (new keeps the people not in Enginy yet).
  1. POST /v1/social-selling/engagers/export-preview (read scope) creates nothing. It returns prospectCount, the LinkedIn enrichment price (creditsPerContact), the credit estimate when scrapeFromLinkedIn is true, your availableCredits and wouldExceedBalance.
  2. POST /v1/social-selling/engagers/export adds the same selection to a new list (target.listName) or an existing one (target.listId). One export takes at most 5,000 engagers.
Exporting is free. Credits are spent only when scrapeFromLinkedIn is true: each exported contact is then enriched from LinkedIn at creditsPerContact, and the estimate is an upper bound. Pass maxCredits to refuse the export (422 MAX_CREDITS_EXCEEDED, nothing created) when the estimate is above it. An export whose selection matches nobody answers 400 with details.code NO_MATCHING_ENGAGERS, and a target.listId that is not a list of your workspace answers 404 with LIST_NOT_FOUND. Nothing is created in either case.
The export is asynchronous: the response returns the listId and workflowId as soon as it starts, and the contacts appear in the list when the workflow finishes. Existing contacts are reused. To make a retry safe, send a unique idempotencyKey in the body, or an Idempotency-Key header (the body wins when both are sent). Sent again with the same request, the key returns the first export with replayed: true, starts no new export and charges nothing. With a different request, the key answers 409 with details.code IDEMPOTENCY_KEY_REUSED. A key is bound only once its export starts, so a request refused with 400, 404 or 422 does not use it up. It is then remembered while the export runs and for at least 24 hours after it finishes. It always answers with that first export whatever its outcome, so use a new key to try again. The request is compared by meaning: id order, duplicates, times within a day and explicit defaults do not count, nor do dates when a postId selects the engagers. Without a key, every call starts a new export: a retry with target.listName creates another list, and with scrapeFromLinkedIn every exported contact is scraped and charged again. A lost response then cannot be told apart from a failed start, because a list of that name can exist either way. Send a key whenever a retry is possible. Once an export finishes, POST /v1/social-selling/engagers/export-preview with the same selection and contacts set to new stops counting the engagers it exported. Engagers without a LinkedIn profile URL are never exported and keep counting.

Engagement

Track a post

POST /v1/social-selling/posts with { "url": "…" } makes any LinkedIn post usable by the comment and comment suggestion operations. It accepts linkedin.com/posts/…, lnkd.in/… and linkedin.com/feed/update/urn:li:activity:… links (also share and ugcPost URNs). Without name, Enginy names the post after the first line of its text, cut to 40 characters. The response (201) holds the post’s publishingPostId, url, name, content, postedAt and appUrl. trackedPostId and identityId are set when Enginy matches the post to one of your workspace’s identities; they are null for anyone else’s post. The text comes from Enginy’s synced copy of the post, or from the public LinkedIn page when there is none, so content can be empty when LinkedIn refuses the request. Any URL of a post Enginy already has returns that same post. A user restricted to some identities only gets posts of those identities or third-party posts: a post of another identity of your workspace answers 404. They can only comment on posts of their identities, so a third-party post they track answers 404 to the comment and comment suggestion operations; pass its text as postContent to get suggestions.

Comment

POST /v1/social-selling/comments comments from one of your identities on a post already published on LinkedIn. Name the post with postId or publishingPostId, and pass identityId and text (up to 3,000 characters). The response status says what happened:
  • POSTED: the comment was sent and appears on LinkedIn within minutes.
  • PENDING_APPROVAL: a colleague owns the identity and reviews comments made from it. Enginy emails them a review link, and nothing reaches LinkedIn until they approve it.
reactionsAmount (0 to 100) adds reactions from other identities to a comment that posts right away, and the response’s reactionsScheduled says how many. A PENDING_APPROVAL comment gets no reactions, even after the owner approves it. A user restricted to some identities can only comment on posts of those identities. A retry posts the comment again.

Comment suggestions

POST /v1/social-selling/comment-suggestions writes AI comments for a post, each from a different identity in that identity’s voice and in the post’s language. Give one post source: postId, publishingPostId or the text itself as postContent. Choose the writers with identityIds, or let the AI pick the most relevant identities you may use (never the post’s author). Tune tone, length, useEmojis and count (1 to 6). Generation takes up to 60 seconds and stores nothing. To publish a suggestion, send its commentText as text with its identityId to the comment operation.

Reactions

POST /v1/social-selling/posts/{postId}/reactions schedules reactions on a tracked post:
  • amount: draw that many identities from the workspace pool allowed to react.
  • identityIds: or react from exactly these identities.
  • reactionTypes: an optional mix of LIKE, PRAISE, EMPATHY, INTEREST, APPRECIATION and ENTERTAINMENT.
  • skipAuthor: on by default, so the author never reacts to their own post.
Reactions are spread over time. The response includes the post’s publishingPostId and an appUrl to follow progress.

Drafts and publishing

Drafts

A draft is a post being prepared for one identity. Every edit bumps its version, and scheduling names the version you approve, so a later edit can never change what was approved.
  • POST /v1/social-selling/drafts: identityId, text (up to 3,000 characters), mentions, attachments (asset ids, in order), firstComment, visibility (ANYONE or CONNECTIONS), postAsCompany + companyUrn, and planning fields (series, pillar, objective, audience, factualSources, notes, sourceAttribution). All problems are reported at once (400 INVALID_DRAFT with details.problems).
  • A mention names the exact slice of the text it links: start and length in Unicode code points (an emoji counts as one), kind (PROFILE or COMPANY), urn (urn:li:fsd_profile:<id> or urn:li:fsd_company:<id>) and label, the text at that slice.
  • Attach a tracked post’s media by its spm_ asset id: it is copied into your workspace when attached, keeping the source post and credit. Uploads (ssa_) are attached as they are.
  • PATCH /v1/social-selling/drafts/{draftId} takes expectedVersion and only the fields to change. A newer version answers 409 VERSION_CONFLICT with currentVersion: re-read and re-apply, never overwrite.
  • POST /v1/social-selling/posts/{postId}/reuse starts a draft for an identity from a tracked post (yours or a teammate’s): its text or your adapted text, its media copied, and an attribution (default: the source author and URL). The source post is never changed and nothing is published.
  • POST /v1/social-selling/drafts/{draftId}/duplicate copies a draft for the same or another identity; DELETE /v1/social-selling/drafts/{draftId} archives one; GET /v1/social-selling/drafts lists them.

Preview and schedule

GET /v1/social-selling/drafts/{draftId}/preview shows exactly what would be published: who it posts as, the text as readers see it (mentions as @Label, links, the “see more” fold), each media file with a probed download URL, the first comment and whether the identity’s owner must approve it, and checks. An ERROR check (a disconnected identity, an unreachable file) blocks scheduling; ready is true when there is none. POST /v1/social-selling/drafts/{draftId}/schedule schedules the approved version with one of:
  • scheduledAt: an ISO 8601 instant;
  • localDateTime + timezone: a wall-clock time in an IANA zone, such as 2026-11-03T09:30 in Europe/Madrid. A time skipped by the daylight-saving change answers 400; a repeated one means its first occurrence;
  • publishNow: true: about a minute from now, so it can still be checked and cancelled.
Add shareOnSlack: true to also announce the post in your workspace’s Social Selling Slack channel once it is live on LinkedIn. Nothing is sent when the workspace has no Social Selling Slack channel. A reschedule keeps that choice unless you send shareOnSlack again.
The draft is locked to that version first: a concurrent edit or a second schedule answers 409. The post then goes through the same flow as the app (owner confirmation email, teammate consent, reactions from the pool). The first comment is posted by the same person on the published post 30 seconds after it is live; it may wait for the identity owner’s approval. Send an idempotencyKey (or Idempotency-Key header): a retry after a timeout returns the first answer with replayed: true instead of scheduling twice. POST …/drafts/{draftId}/unschedule and POST …/drafts/{draftId}/reschedule stop or move it before it publishes.

Publication status

Scheduling is not publishing. GET /v1/social-selling/publications/{publishingPostId} reports the recorded outcome: Before declaring a failure, Enginy looks for the post in the identity’s feed, so a call that timed out after LinkedIn created the post never publishes it twice; when it cannot be checked (a company page, a links-only post) the outcome is UNCERTAIN and nothing is sent again. The draft follows its publication: PUBLISHED, or FAILED (edit it to schedule again). A request interrupted between scheduling and linking is repaired on the next call with the same draft (SCHEDULE_IN_PROGRESS while it may still run). The first comment’s own status (QUEUED, PENDING_APPROVAL, POSTED with its urn, …) is part of the answer.

Calendar

GET /v1/social-selling/calendar?from=…&to=… (up to 92 days) lists the scheduled and published posts and the drafts of the identities you may use, with conflicts worth a human look: CADENCE (one identity posting twice within minGapHours, default 20), DUPLICATE_SOURCE (one source post reused by several identities) and SERIES_SAME_DAY.

Plain-text scheduling

POST /v1/social-selling/scheduled-posts schedules a text post from one of your identities:
  • identityId: the identity that publishes.
  • text: 1 to 3,000 characters of plain text. For images, documents, video, mentions, a first comment or a company page, use a draft.
  • scheduledAt: an ISO 8601 date-time with Z or an offset, at least 2 minutes and at most 365 days ahead.
  • name: optional, the post’s name in Enginy. It defaults to the first line of the text, cut to 40 characters.
  • reactionsAmount (0 to 500) and reactionTypes: reactions other identities add once the post is live.
  • shareOnSlack: optional; true also announces the post in your workspace’s Social Selling Slack channel once it is live. Nothing is sent when the workspace has no such channel.
At scheduledAt, Enginy publishes the post from the identity’s LinkedIn account, and the identity’s owner gets a confirmation email when it is scheduled. The response (201) holds the publishingPostId, identityId, scheduledAt, name and appUrl. An identity outside your scope answers 404. A retry schedules a second post: after a 503, list the scheduled posts before you retry.
Pick scheduledAt with GET /v1/social-selling/analytics/publishing-times, and comment on the post once it is live with its publishingPostId.

List and cancel scheduled posts

GET /v1/social-selling/scheduled-posts lists the posts waiting to be published, soonest first, with their publishingPostId, identityId, identityName, name, text, scheduledAt, reactionsAmount and appUrl. Filter with identityIds and with from / to on the publish time. Each takes an ISO date-time or a YYYY-MM-DD day (UTC: from starts at 00:00, to ends at 24:00). The window runs from now to 90 days ahead by default; without to, it ends 90 days after from (after now, for a from in the past). Page with page / pageSize (20 by default, at most 50). scheduledAt is the live publish time. It is null when the post’s schedule no longer exists, so the post will not be published: cancel it. reactionsAmount is null when the schedule could not be read. DELETE /v1/social-selling/scheduled-posts/{publishingPostId} stops the schedule and deletes the post, and returns { "publishingPostId": …, "cancelled": true }. A post that is already published or publishing, or that was not scheduled, cannot be cancelled (409). When the schedule cannot be stopped, the call answers 503 and keeps the post: retry it.

Capabilities and events

GET /v1/social-selling/capabilities says, for each identity you may use, what it can do right now: connection health (expired session, LinkedIn restriction, sync state, creator analytics), the owner’s consent for teammates, and for each action (PUBLISH_POST, SCHEDULE_POST, COMMENT, REPLY_TO_COMMENT, REACT, …) one status — AVAILABLE, REQUIRES_OWNER_APPROVAL, DENIED_PERMISSION (a missing scope or the owner’s refusal), UNHEALTHY_CONNECTION or UNAVAILABLE_PROVIDER. It also lists the media formats and limits, visibility options, company-page posting, the analytics that exist, and what is not supported with the reason. Call it before publishing or engaging. GET /v1/social-selling/sync-status says how fresh each identity’s data is (daily cadence, last success, the issue that needs attention), and POST /v1/social-selling/identities/{identityId}/sync re-reads one identity’s posts now, so a post just published through Enginy becomes a tracked post (with metrics and comments) within minutes instead of at the next daily sync. GET /v1/social-selling/events?after=<cursor> is the workspace event log, oldest first: PUBLICATION_SUCCEEDED, PUBLICATION_FAILED, COMMENT_RECEIVED, REPLY_RECEIVED, MENTION_RECEIVED, METRICS_REFRESHED. Each event has a stable id, occurredAt (on LinkedIn) and observedAt (when Enginy saw it), and a payload with the ids to act on. Store nextCursor and pass it as after: each event comes exactly once. An event is listed once it is about 10 seconds old, so a cursor never passes one still being written. MCP clients can also subscribe to the same events with MCP Events; polling is the fallback that never misses one.

What happens after a write

MCP tools