ReachMCP LinkedIn – Publishing API
The LinkedIn – Publishing API from ReachMCP — 5 operation(s) for linkedin – publishing.
The LinkedIn – Publishing API from ReachMCP — 5 operation(s) for linkedin – publishing.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/reachmcp-com:reachmcp-com-linkedin-publishing-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: MCP Reach LinkedIn – Publishing API
description: '## MCP Reach API overview
This API lets you manage LinkedIn accounts connected to MCP Reach and query account activity.
The documented endpoints cover:
- listing and deleting LinkedIn accounts
- reading and updating account quotas
- reading request logs and aggregated request-log statistics
- querying LinkedIn `/me` through the account proxy
## API documentation
Interactive reference (Scalar): **`/scalar`** (alias: `/api/scalar`). Swagger UI: `/docs`. ReDoc: `/redoc`.
## Authentication
1. Open the MCP Reach frontend.
2. Go to **API Keys** and create/retrieve your API key.
3. Send this key in every request header:
`X-API-Key: `
Requests without a valid `X-API-Key` are rejected.
## Errors
Every error response carries `detail` (unchanged, for existing clients) and an `error` object built for agents: `code` (stable identifier such as `daily_quota_reached`), `message`, `status`, `safe_to_retry` (whether the same call can succeed if repeated), `retry_at` (ISO 8601, when it can) and `remediation` (what to do instead). Act on `code`, never on the wording of `message`.
## Idempotency
Send an `Idempotency-Key` header (any string up to 200 characters, a UUID is fine) on any POST/PATCH/DELETE under `/api/linkedin/`. Repeating the request with the same key returns the stored response with `Idempotent-Replayed: true` and does nothing on LinkedIn; the same key with a different body is refused with `409 idempotency_key_reused`. Only successful responses are kept; keys expire after 24 hours.
## Webhooks
Register an endpoint under `/api/webhooks/endpoints` to be called when a conversation gets a new message, the account gains a new connection, an account changes connection state, or a daily quota is close to or at its limit (`GET /api/webhooks/events` lists the types). Deliveries are signed: `Reach-Signature: t=,v1=.'')>`, retried for about 15 hours, and replayable from the dashboard or the API.'
version: 0.1.0
tags:
- name: LinkedIn – Publishing
paths:
/api/linkedin/{account_id}/scheduled-posts:
get:
tags:
- LinkedIn – Publishing
summary: 'LinkedIn proxy: list scheduled posts'
description: 'Returns the account''s scheduled posts via the Voyager ``voyagerContentcreationDashSharePreviews`` GraphQL endpoint.
Each item contains ``post_urn``, ``post_text``, ``scheduled_at`` (Unix ms), and ``scheduled_at_label`` (human-readable date from LinkedIn).
Use ``start`` and ``count`` to paginate.'
operationId: linkedin_scheduled_posts_api_linkedin__account_id__scheduled_posts_get
security:
- XApiKeyAuth: []
parameters:
- name: account_id
in: path
required: true
schema:
type: integer
title: Account Id
- name: start
in: query
required: false
schema:
type: integer
minimum: 0
description: Paging offset.
default: 0
title: Start
description: Paging offset.
- name: count
in: query
required: false
schema:
type: integer
maximum: 50
minimum: 1
description: Page size (max 50).
default: 10
title: Count
description: Page size (max 50).
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/LinkedInScheduledPostsPageOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
patch:
tags:
- LinkedIn – Publishing
summary: 'LinkedIn proxy: update a scheduled post'
description: 'Updates the text and/or scheduled time of a scheduled LinkedIn post via the Voyager ``voyagerContentcreationDashShares`` GraphQL mutation.
``post_urn`` is the URN returned by the list endpoint (e.g. ``urn:li:ugcPost:…``).
At least one of ``text`` or ``scheduled_at`` must be provided.'
operationId: linkedin_update_scheduled_post_api_linkedin__account_id__scheduled_posts_patch
security:
- XApiKeyAuth: []
parameters:
- name: account_id
in: path
required: true
schema:
type: integer
title: Account Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LinkedInUpdateScheduledPostIn'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
delete:
tags:
- LinkedIn – Publishing
summary: 'LinkedIn proxy: delete a scheduled post'
description: 'Deletes a scheduled LinkedIn post via the Voyager ``voyagerContentcreationDashShares`` GraphQL mutation.
``post_urn`` is the URN returned by the list endpoint (e.g. ``urn:li:ugcPost:…``).'
operationId: linkedin_delete_scheduled_post_api_linkedin__account_id__scheduled_posts_delete
security:
- XApiKeyAuth: []
parameters:
- name: account_id
in: path
required: true
schema:
type: integer
title: Account Id
- name: post_urn
in: query
required: true
schema:
type: string
description: Post URN to delete (e.g. urn:li:ugcPost:…).
title: Post Urn
description: Post URN to delete (e.g. urn:li:ugcPost:…).
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/linkedin/{account_id}/create-post:
post:
tags:
- LinkedIn – Publishing
summary: 'LinkedIn proxy: create or schedule a post'
description: 'Creates or schedules a LinkedIn post, with optional media attachment.
**Media options:**
- Text-only: omit ``media_urn``.
- Single image: pass a ``urn:li:digitalmediaAsset:…`` URN (obtained via ``/upload-media``).
- Multiple images: pass a ``urn:li:fsd_multiPhoto:…`` URN (obtained via ``/create-multi-photo``).
**Scheduling:** set ``scheduled_at`` to a Unix timestamp in milliseconds to schedule the post; omit it to publish immediately.
Returns the ``resource_key`` (``urn:li:fsd_share:urn:li:ugcPost:…``) of the created post.'
operationId: linkedin_create_post_api_linkedin__account_id__create_post_post
security:
- XApiKeyAuth: []
parameters:
- name: account_id
in: path
required: true
schema:
type: integer
title: Account Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LinkedInCreatePostIn'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/LinkedInCreatePostOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/linkedin/{account_id}/create-multi-photo:
post:
tags:
- LinkedIn – Publishing
summary: 'LinkedIn proxy: create a multi-photo object'
description: 'Creates a LinkedIn multi-photo object from a list of ``digitalmediaAsset`` URNs (obtained via the ``/upload-media`` endpoint).
Returns the ``identifierUrn`` (``urn:li:fsd_multiPhoto:…``) which must be passed when creating a post that contains multiple images.
``author_urn`` is the ``urn:li:fsd_profile:…`` of the connected account — retrieve it from the ``/me`` endpoint.'
operationId: linkedin_create_multi_photo_api_linkedin__account_id__create_multi_photo_post
security:
- XApiKeyAuth: []
parameters:
- name: account_id
in: path
required: true
schema:
type: integer
title: Account Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LinkedInCreateMultiPhotoIn'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/LinkedInMultiPhotoOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/linkedin/{account_id}/upload-media:
post:
tags:
- LinkedIn – Publishing
summary: 'LinkedIn proxy: upload a media file'
description: 'Uploads a media file (e.g. an image) to LinkedIn using the two-step upload flow:
1. Requests upload metadata from LinkedIn to obtain a signed upload URL and asset URN.
2. PUTs the raw file bytes to the signed URL.
Returns the ``digitalmediaAsset`` URN (e.g. ``urn:li:digitalmediaAsset:…``) which can be passed to post-creation endpoints to attach the image to a post.
``media_upload_type`` defaults to ``IMAGE_SHARING``.'
operationId: linkedin_upload_media_api_linkedin__account_id__upload_media_post
security:
- XApiKeyAuth: []
parameters:
- name: account_id
in: path
required: true
schema:
type: integer
title: Account Id
- name: media_upload_type
in: query
required: false
schema:
type: string
description: LinkedIn media upload type.
default: IMAGE_SHARING
title: Media Upload Type
description: LinkedIn media upload type.
- name: page_id
in: query
required: false
schema:
anyOf:
- type: string
- type: 'null'
description: Act as this company page (page_id or vanity name from GET /pages). Omit to act as the member.
title: Page Id
description: Act as this company page (page_id or vanity name from GET /pages). Omit to act as the member.
requestBody:
required: true
content:
multipart/form-data:
schema:
$ref: '#/components/schemas/Body_linkedin_upload_media_api_linkedin__account_id__upload_media_post'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/LinkedInMediaUploadOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/linkedin/{account_id}/upload-media-url:
post:
tags:
- LinkedIn – Publishing
summary: 'LinkedIn proxy: upload a media file from a URL'
description: 'Fetches an image from a publicly accessible URL and uploads it to LinkedIn.
This is the agent-friendly alternative to ``/upload-media`` (which requires a binary file upload). Pass any public image URL; the backend will download it and execute the two-step LinkedIn upload flow.
Returns the ``digitalmediaAsset`` URN (e.g. ``urn:li:digitalmediaAsset:…``) which can be passed to ``/create-post`` or ``/create-multi-photo``.'
operationId: linkedin_upload_media_from_url_api_linkedin__account_id__upload_media_url_post
security:
- XApiKeyAuth: []
parameters:
- name: account_id
in: path
required: true
schema:
type: integer
title: Account Id
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/LinkedInMediaUploadFromUrlIn'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/LinkedInMediaUploadOut'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
LinkedInCreatePostOut:
properties:
resource_key:
type: string
title: Resource Key
description: Post URN (e.g. urn:li:fsd_share:urn:li:ugcPost:…).
type: object
required:
- resource_key
title: LinkedInCreatePostOut
description: Result of creating or scheduling a LinkedIn post.
LinkedInMultiPhotoOut:
properties:
identifier_urn:
type: string
title: Identifier Urn
description: Multi-photo URN (e.g. urn:li:fsd_multiPhoto:…). Pass this when creating a post with multiple images.
type: object
required:
- identifier_urn
title: LinkedInMultiPhotoOut
description: Result of creating a LinkedIn multi-photo object.
LinkedInUpdateScheduledPostIn:
properties:
post_urn:
type: string
title: Post Urn
description: Post URN to update (e.g. urn:li:ugcPost:…).
text:
anyOf:
- type: string
- type: 'null'
title: Text
description: New post text. Omit to keep existing.
scheduled_at:
anyOf:
- type: integer
- type: 'null'
title: Scheduled At
description: New scheduled time as Unix timestamp in milliseconds. Omit to keep existing.
type: object
required:
- post_urn
title: LinkedInUpdateScheduledPostIn
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
Body_linkedin_upload_media_api_linkedin__account_id__upload_media_post:
properties:
file:
type: string
contentMediaType: application/octet-stream
title: File
description: Media file to upload (e.g. PNG, JPEG).
type: object
required:
- file
title: Body_linkedin_upload_media_api_linkedin__account_id__upload_media_post
LinkedInCreatePostIn:
properties:
text:
type: string
title: Text
description: Post text content.
media_urn:
anyOf:
- type: string
- type: 'null'
title: Media Urn
description: Media URN to attach. Use ``urn:li:digitalmediaAsset:…`` for a single image or ``urn:li:fsd_multiPhoto:…`` (from /create-multi-photo) for multiple images. Omit for a text-only post.
scheduled_at:
anyOf:
- type: integer
minimum: 1000000000000.0
- type: 'null'
title: Scheduled At
description: Scheduled publish time as Unix timestamp in **milliseconds** (13-digit epoch, e.g. 1779446566000). Omit to publish immediately.
visibility:
type: string
title: Visibility
description: 'Post visibility: ''ANYONE'' (public) or ''CONNECTIONS_ONLY''.'
default: ANYONE
allowed_commenters_scope:
type: string
title: Allowed Commenters Scope
description: 'Who can comment: ''ALL'' or ''CONNECTIONS_ONLY''.'
default: ALL
page_id:
anyOf:
- type: string
- type: 'null'
title: Page Id
description: Act as this company page (page_id or vanity name from GET /pages). Omit to act as the member.
type: object
required:
- text
title: LinkedInCreatePostIn
description: Request body for creating or scheduling a LinkedIn post.
LinkedInCreateMultiPhotoIn:
properties:
author_urn:
anyOf:
- type: string
- type: 'null'
title: Author Urn
description: Author profile URN (e.g. urn:li:fsd_profile:…). Retrieve it from the /me endpoint. Omit when page_id is set.
media_urns:
items:
type: string
type: array
title: Media Urns
description: List of digitalmediaAsset URNs to include (e.g. [urn:li:digitalmediaAsset:…, …]).
alt_texts:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Alt Texts
description: Alt text per image (same order as media_urns). Defaults to empty strings.
page_id:
anyOf:
- type: string
- type: 'null'
title: Page Id
description: Act as this company page (page_id or vanity name from GET /pages). Omit to act as the member.
type: object
required:
- media_urns
title: LinkedInCreateMultiPhotoIn
description: Request body for creating a LinkedIn multi-photo object.
LinkedInMediaUploadFromUrlIn:
properties:
image_url:
type: string
title: Image Url
description: Publicly accessible URL of the image to upload (JPEG, PNG, GIF…).
media_upload_type:
type: string
title: Media Upload Type
description: 'LinkedIn media upload type (default: IMAGE_SHARING).'
default: IMAGE_SHARING
page_id:
anyOf:
- type: string
- type: 'null'
title: Page Id
description: Act as this company page (page_id or vanity name from GET /pages). Omit to act as the member.
type: object
required:
- image_url
title: LinkedInMediaUploadFromUrlIn
description: Request body for uploading a media file to LinkedIn from a public URL.
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
LinkedInScheduledPostsPageOut:
properties:
posts:
items:
$ref: '#/components/schemas/LinkedInScheduledPostOut'
type: array
title: Posts
total:
anyOf:
- type: integer
- type: 'null'
title: Total
description: Total number of scheduled posts.
start:
type: integer
title: Start
count:
type: integer
title: Count
type: object
required:
- posts
- start
- count
title: LinkedInScheduledPostsPageOut
description: Paged list of scheduled posts.
LinkedInMediaUploadOut:
properties:
urn:
type: string
title: Urn
description: digitalmediaAsset URN (e.g. urn:li:digitalmediaAsset:…). Use this when creating a post with an image.
type: object
required:
- urn
title: LinkedInMediaUploadOut
description: Result of a media upload to LinkedIn.
LinkedInScheduledPostOut:
properties:
post_urn:
anyOf:
- type: string
- type: 'null'
title: Post Urn
description: Post URN (e.g. urn:li:ugcPost:…).
post_text:
anyOf:
- type: string
- type: 'null'
title: Post Text
description: Text content of the post.
scheduled_at:
anyOf:
- type: integer
- type: 'null'
title: Scheduled At
description: Scheduled publish time as Unix timestamp in milliseconds.
scheduled_at_label:
anyOf:
- type: string
- type: 'null'
title: Scheduled At Label
description: Human-readable scheduled time (e.g. 'Publication le mer. 20 mai à 14:30').
type: object
title: LinkedInScheduledPostOut
description: A scheduled post returned by the Voyager SharePreviews API.
securitySchemes:
HTTPBearer:
type: http
scheme: bearer
APIKeyHeader:
type: apiKey
in: header
name: X-API-Key
XApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
description: Create/retrieve the key in the frontend API Keys page and send it in this header.