API resources
Media
List, upload, and securely import media for post creation.
Endpoints
| Method | Path | Content type |
|---|---|---|
GET | /media | application/json |
GET | /media/{id} | application/json |
POST | /media/uploads | multipart/form-data |
POST | /media/imports | application/json |
Upload a file
bash
curl -X POST https://app.trovv.io/api/v1/media/uploads \
-H "Authorization: Bearer $TROVV_API_KEY" -H "Idempotency-Key: media-001" \
-F "file=@./video.mp4"Import a public URL
bash
curl -X POST https://app.trovv.io/api/v1/media/imports \
-H "Authorization: Bearer $TROVV_API_KEY" -H "Idempotency-Key: import-001" \
-H "Content-Type: application/json" -d '{"url":"https://cdn.example.com/photo.jpg"}'Limits and formats
- Maximum stored input size: 500 MB.
- Uploads accept image/*, video/*, audio/*, and PDF; platform posting validation currently supports images and videos.
- Video metadata and a poster are generated when possible.
- Workspace storage-plan limits also apply.
URL-import security
- Only public HTTP and HTTPS URLs are allowed.
- Credentials in URLs and nonstandard ports are rejected.
- Loopback, private, link-local, CGNAT, and private DNS results are blocked.
- At most three redirects are followed.
- Downloads time out after 30 seconds and are size-limited while streaming.
Was this page helpful?