API Reference
Image upload (www.linkedin.com)PUTUpload the image bytesGETDownload an image
Posts and images

Create a post

POST/rest/posts
Base URL: https://linkedin-ads.mimicr.dev · provider: https://api.linkedin.com

Creates the post a creative references. A dark post (distribution.feedDistribution NONE plus adContext.dscAdAccount) is only shown as an ad and gets a urn:li:ugcPost: id; other posts get urn:li:share:. Scope w_organization_social (organization author, with an organization role) or w_member_social (the member). Content is media (an image or a seeded video) or article; other kinds answer 501.

Authorization

Bearer token in the Authorization: Bearer <token> header. See Authentication.

Headers

LinkedIn-Versionstringrequired

API version, YYYYMM (the latest is 202610). Missing → 400 VERSION_MISSING; sunset, unknown or unreleased → 426 NONEXISTENT_VERSION. 202511 stops on 2026-11-16 by the sandbox clock.

Example: "202610"
X-Restli-Protocol-Versionstringrequired

Always 2.0.0. Calls that use the 2.0 syntax (List(…), (key:value), encoded URN keys) without it answer 400 "Invalid query parameters passed to request".

2.0.0

Body

application/json
idstring

urn:li:ugcPost:… for dark posts, urn:li:share:… otherwise.

authorstring

urn:li:organization:… (needs an organization role and w_organization_social) or urn:li:person:{me} (w_member_social).

commentarystring

Post text.

visibilitystring

Must be PUBLIC to be sponsored.

PUBLICCONNECTIONSLOGGED_IN
distributionobject
Show child attributes
feedDistributionstring

NONE for a dark post (only shown as an ad).

MAIN_FEEDNONE
targetEntitiesobject[]
thirdPartyDistributionChannelsstring[]
contentobject

One of media or article. Multi-image, polls, carousels and documents answer 501.

Show child attributes
mediaobject
Show child attributes
idstring

urn:li:image:… or urn:li:video:….

titlestring
altTextstring
articleobject
Show child attributes
sourcestring

URL.

titlestring
descriptionstring
thumbnailstring
adContextobject

Dark post context.

Show child attributes
dscAdAccountstring

Ad account of the dark post.

dscStatusstring
ACTIVEARCHIVED
dscNamestring
contentLandingPagestring

Landing page of the post.

contentCallToActionLabelstring

Call to action label.

lifecycleStatestring
PUBLISHED
isReshareDisabledByAuthorboolean
createdAtinteger
lastModifiedAtinteger
publishedAtinteger

Responses

201Created. The id is in the x-restli-id header (empty body): the post URN.
400Invalid request: missing LinkedIn-Version (VERSION_MISSING), Rest.li 2.0 syntax without X-Restli-Protocol-Version or with unencoded URNs ("Invalid query parameters passed to request"), or invalid parameters.
statusinteger

HTTP status.

serviceErrorCodeinteger

Service error code (100, 401, 65600…).

codestring

Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).

messagestring

Error message.

401Missing token (Empty oauth2_access_token), invalid token (65600 INVALID_ACCESS_TOKEN), revoked (65601 REVOKED_ACCESS_TOKEN) or expired (65602 EXPIRED_ACCESS_TOKEN).
statusinteger

HTTP status.

serviceErrorCodeinteger

Service error code (100, 401, 65600…).

codestring

Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).

messagestring

Error message.

403The token lacks the scope (ACCESS_DENIED, "Not enough permissions to access: {resource}.{METHOD}.{version}") or the member's role is too low (NO_PERMISSION_ON_ENTITY).
statusinteger

HTTP status.

serviceErrorCodeinteger

Service error code (100, 401, 65600…).

codestring

Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).

messagestring

Error message.

426LinkedIn-Version sunset, unknown or not released: NONEXISTENT_VERSION "Requested version {version} is not active".
statusinteger

HTTP status.

serviceErrorCodeinteger

Service error code (100, 401, 65600…).

codestring

Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).

messagestring

Error message.

429Daily quota of the application or the member reached: TOO_MANY_REQUESTS, with Retry-After (seconds to 00:00 UTC).
statusinteger

HTTP status.

serviceErrorCodeinteger

Service error code (100, 401, 65600…).

codestring

Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).

messagestring

Error message.