Upload assets for posts.
Media
| Method | Path | Description |
|---|---|---|
| GET | /media | List assets |
| POST | /media/upload-url | Presigned R2 PUT URL |
| POST | /media/confirm | Confirm after client upload |
| POST | /media/upload-from-url | Server fetches { "url" } |
| DELETE | /media/:id | Delete |
Upload from URL (simplest)
curl -X POST https://api.qposty.com/public/v1/media/upload-from-url \
-H "Authorization: qp_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://example.com/photo.jpg"}'
Use the returned id in mediaIds when creating a post.
Signed upload (browser / large files)
POST /media/upload-urlwithfileName+contentTypePUTthe file bytes touploadUrlPOST /media/confirmwithkey,fileName,contentType,sizeBytes
Max remote fetch size for upload-from-url: 50 MB.