PostHero API

v1 Reference

POST/media/upload

Upload Media

Upload an image, video, or PDF carousel. Returns an S3 URL to reference when creating posts. Use multipart/form-data with a "file" field. To set the LinkedIn file name for a carousel or title for a video, pass media.filename / media.videoTitle when creating the post — see Publishing with Media.

Body Parameters

NameTypeDescription
file*fileFile to upload (images, videos, or PDFs). Max 100MB.

Response

200
{
  "success": true,
  "data": {
    "url": "https://s3.amazonaws.com/...",
    "type": "image",
    "size": 245000,
    "mimeType": "image/png"
  }
}