1. Initialize Video Upload
This should be the first step in uploading
Endpoint: POST /sync_upload_init
Description: Initiates the upload process and returns a unique taskid
.
Request:
curl -X POST https://api.sync.aimi.fm/sync_upload_init \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_TOKEN" \
-d '{"payload": {"filename": @/path/to/chunk.mp4}}'
Response:
{
"taskid": "unique-task-id",
"message": "Upload initiated. Next you must upload your video in chunks..."
}