create_signed_upload
Generate signed upload URLs for 1–20 large images, videos, or PDFs so you can upload raw bytes, then use each public URL in social posts.
Instructions
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). Pinning is available per request with pin_content_type: true, which locks each slot to the content_type you declare (a PUT with any other Content-Type then fails with 403). posterly may turn it on by default in the future, so 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. |