Actions12
- Draft Actions
- Media Actions
- Social Set Actions
- Tag Actions
- User Actions
Media → Create Media Upload
AI-generatedSummary
Initiates a media upload to Typefully, returning the media ID for subsequent draft creation.
Inputs
- socialSetId (required) — The ID of the social set.
- file_name (required) — The name of the file to upload (max 255 chars). Allowed extensions: .jpg, .jpeg, .png, .webp, .gif, .mp4, .mov, .pdf.
Output shape
A single record containing the media ID.
The returned data is used to attach the media to a draft.
Examples
Example 1: Uploading a profile picture
Set Social Set ID to 'social-set-123' and File Name to 'profile-pic.jpg'.
Example 2: Uploading a video post
Set Social Set ID to 'social-set-456' and File Name to 'video-post.mp4'.