LinkedInLinkedInSocial

Start an image upload for a LinkedIn post

linkedin.linkedin.image.upload.init

Start an image upload for a LinkedIn post and get the URN to attach

Price
freeAt provider cost
Success rate
—No success-rate data yetNo success-rate data yet
Latency p50
——
Last verified
—Not verified yet
POSThttps://toolswitch.dev/v1/tools/linkedin.linkedin.image.upload.initPreview
Try onlineComing soonProvider docs ↗
  • Uses platform quota
  • Synchronous response
  • Reads public data

Parameters

same mandatory headers as the post route (LinkedIn-Version: 202601, X-Restli-Protocol-Version: 2.0.0). The response is {value: {uploadUrl, image}} — `image` is the urn:li:image:… you put in the post's content.media.id, `uploadUrl` is where you PUT the raw bytes in a single request (see the block comment). The URL expires quickly; upload right after initializing. A PDF carousel uses the identical shape at /rest/documents?action=initializeUpload and yields a urn:li:document:…

This tool has no parameters. See provider docs ↗ Provider docs

Code samples

Replace $TOOLSWITCH_KEY with the key you created in the console.

Preview
curl -X POST 'https://toolswitch.dev/v1/tools/linkedin.linkedin.image.upload.init' \
  -H "X-Toolswitch-Key: $TOOLSWITCH_KEY"

This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at free, including the service fee.