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.

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"
  }
}