LinkedIn — Posts

Publish a new post on the connected account's feed

Creates a feed post on the connected LinkedIn account. Text is required; an inline image is optional. The endpoint handles the underlying three-step LinkedIn upload flow (register upload → PUT bytes → create share) so the customer just sends one JSON request.

Visibility:

  • ANYONE (default) — public on the feed.
  • CONNECTIONS — visible to 1st-degree connections only.

Image: Pass an image.dataUrl (full data URL with embedded mime + base64) for the simplest agent shape, OR a separate image.base64 + image.contentType. Accepts image/png, image/jpeg, image/gif, image/webp up to ~10 MB.

Quota: 1 connection_request slot per call (shared outbound-write bucket).

post/linkedin/posts

Request

  • Base URL: https://anjal.app
  • URL: https://anjal.app/linkedin/posts
  • Auth: API key in header X-API-Key

Request body

sessionIdstring required
textstring required

Post commentary. LinkedIn caps at 3000 characters.

visibility'ANYONE' | 'CONNECTIONS'

Response

Post created.

okboolean
shareUrnstring
shareIdstring
postUrlstring uri
mediaUrnstring nullable

Set when an image was uploaded.

Example response

{
  "shareUrn": "urn:li:share:7455538267644641280"
}

Changes

No recorded changes to this operation across all 1 revision of this API.