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
freeAu prix du fournisseur
Success rate
—Aucune donnée de taux de réussite pour le momentAucune donnée de taux de réussite pour le moment
Latency p50
——
Last verified
—Not verified yet
POSThttps://toolswitch.dev/v1/tools/linkedin.linkedin.image.upload.initPreview
Try onlineBientôtProvider docs ↗
  • Uses platform quota
  • Synchronous response
  • Reads public data

Paramètres

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:…

Cet outil n’a pas de paramètres. Voir la doc du fournisseur ↗ Provider docs

Exemples de code

Remplacez $TOOLSWITCH_KEY par la clé créée dans la console.

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

Cette API de passerelle est en préversion ; son URL et son authentification peuvent changer. Les paramètres de l’exemple sont des données fictives. Les appels sont facturés à free, frais de service inclus.