API resources

Media

List, upload, and securely import media for post creation.

Reviewed November 3, 2026·AI-readable

Authorization

Required scope: media:read for reads; media:write for upload and import. Account-restricted credentials can only access resources whose delivery targets fall inside the credential grant.

Endpoints

MethodPathContent type
GET/mediaapplication/json
GET/media/{id}application/json
POST/media/uploadsmultipart/form-data
POST/media/importsapplication/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?