Upload an image, video, or document to Late’s CDN for use in a post.
media_items[].url when calling createSocialPost or updateSocialPost.
Submit as multipart/form-data (not JSON). Include the file under key file, plus optional existingMediaType to block cross-type mixing.
listSocialMedia before calling to avoid wasted bandwidth on oversized files.Mixed-type rule — LinkedIn allows only one media type per post. If the draft already has an image, uploading a video returns 400.Short-lived URLs — Late’s temporary storage auto-expires. Create or update the post within a reasonable window after upload.Requires LATE_API_KEY — absent key returns 500 with Late API not configured.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Multipart form body. Must be sent with Content-Type: multipart/form-data, not JSON.
The media file bytes. Sent as multipart/form-data — do not base64 or JSON-wrap. Supported MIME types: image/jpeg, image/png, image/gif, video/mp4, video/quicktime, video/x-msvideo, application/pdf, application/vnd.ms-powerpoint, application/vnd.openxmlformats-officedocument.presentationml.presentation, application/msword, application/vnd.openxmlformats-officedocument.wordprocessingml.document.
Optional. If the draft post already has attachments, pass the existing media type so the server can block mixing (LinkedIn allows only one type per post).
image, video, document Media uploaded and reachable at the returned public URL.