capabilities.work

Upload a Document and Create a Post

A 3-step recipe with LinkedIn. We can help you get access.

Recipe · 3 steps

Upload a Document and Create a Post

with LinkedIn · Digital Marketing Management

Initialize a document upload, upload the file, and publish a document post.

  1. Register the upcoming document upload to obtain the document asset URN and upload URL.
  2. Upload the document file bytes to the registered upload destination.
  3. Create a published document post authored by the owner that references the uploaded document asset.
What you'll need to have ready
  • authorization: The OAuth 2.0 bearer credential, e.g. "Bearer <access-token>".
  • ownerUrn: The organization owner URN, e.g. "urn:li:organization:123456".
  • documentAssetId: The document asset URN to embed once uploaded, e.g. "urn:li:document:123".
  • documentTitle: The display title of the document, e.g. "Example.pdf".
  • commentary: The commentary text for the document post.
For your developer

Arazzo workflow linkedin:upload-document-and-create-post, 3 operations: postInitializeDocumentUpload → putUploadTheDocumentFile → postCreateDocumentContent. Specs on APIs.io.