Guides
Upload media
Add images and videos to the library and attach them to posts.
Posts refer to media by id. Add a file to your library first, then pass the returned media.id as mediaId in POST /posts.
Import from a URL (up to 25 MB)
curl -s -X POST "$CH_API/media" \
-H "Authorization: Bearer $CH_KEY" -H "Content-Type: application/json" \
-d '{ "url": "https://example.com/launch.png" }'
The URL must be public https. CreatorHyve downloads it, checks that the bytes really are the declared type (JPEG, PNG, WebP, GIF, MP4, MOV or WebM), stores it, and answers:
{ "media": { "id": "9d3c...", "url": "https://storage.creatorhyve.com/uploads/...", "type": "image" } }
Upload a large file
POST /mediawith{ "action": "init", "type": "video/mp4", "size": 52428800 }returns anupload_urland akey.PUTthe file toupload_urlwith the sameContent-Typeheader.POST /mediawith{ "action": "complete", "key": "<key>", "filename": "launch.mp4" }verifies the file and returns themediaobject.
Images may be up to 50 MB and videos up to 500 MB, within your plan's storage. Repeating complete for the same key returns the same item.