cURL
curl --request POST \ --url https://api.usemoonshine.com/remote-upload \ --header 'Content-Type: application/json' \ --data ' { "token": "abc123", "index": "xyz789", "url": "https://example.com/video.mp4" } '
200
Example
{ "data": { "type": "metadata", "fps": "<string>", "duration": 123, "fileSize": "<string>", "key": "<string>", "percentage": 50 }}
Initiates a remote upload of a video file from a URL
Authentication token
Index identifier for the media group
URL of the video file to upload
Stream of upload status updates
Show child attributes
Type of status update
metadata
file_authorized
progress
complete
Frames per second of video
Duration in seconds
Size of file
File key after authorization
Upload progress percentage
0 <= x <= 100