Skip to content

Code examples

A complete flow: list your profiles, then publish a video.

Terminal window
# 1. List your profiles
curl https://storyload.io/v1/profiles \
-H "Authorization: Bearer sl_live_your_key"
# 2a. Publish a file to TikTok (multipart)
curl -X POST https://storyload.io/v1/profiles/PROFILE_ID/publish \
-H "Authorization: Bearer sl_live_your_key" \
-F "platform=tiktok" \
-F "title=My awesome video" \
-F "video=@/path/to/video.mp4"
# 2b. Or publish by URL (async, recommended)
curl -X POST https://storyload.io/v1/publications \
-H "Authorization: Bearer sl_live_your_key" \
-H "Content-Type: application/json" \
-d '{ "platform": "youtube", "video_url": "https://example.com/clip.mp4", "title": "My short", "privacy": "public" }'