create_signed_upload
Create signed upload URLs for larger images, videos or PDFs, 1 to 20 files per call. Accepts JPEG, PNG, GIF, WebP, MP4, MOV, WebM, and PDF up to 50MB (a PDF is for LinkedIn document posts); HEIC is not accepted. For one file pass filename, content_type and size. For several pass files: [{filename, content_type, size}] and get one slot per file, with any file that fails reported in place. PUT the raw bytes of each file to its upload_url (object storage) with the returned headers, then pass public_url to create_post / create_posts_batch. For a PDF, create the post with post_type document, media_url set to that public_url and a document_title in settings (LinkedIn only). pin_content_type: true locks each slot to the declared content_type. Always send the Content-Type header returned with the slot. Slots expire in 15 minutes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Single file: size in bytes. Omit when using files. | |
| files | No | Batch: 1 to 20 {filename, content_type, size}. Use instead of the single-file fields. | |
| filename | No | Single file: filename with extension, e.g. launch-video.mp4. Omit when using files. | |
| content_type | No | Single file: MIME type, e.g. video/mp4. Omit when using files. | |
| workspace_id | No | Optional. The workspace this acts in and whose plan pays (from whoami). Needed only when your connection can act in several workspaces. | |
| pin_content_type | No | Optional. true locks each slot to the declared content_type; a PUT with any other Content-Type fails with 403. |