cURL
curl --request GET \ --url https://public.reap.video/api/v1/automation/get-project-status \ --header 'Authorization: Bearer <token>'
{ "projectId": "<string>", "projectType": "<string>", "source": "<string>", "status": "<string>", "processing": {}, "completed": {}, "failed": {}, "cancelled": {}, "clipping": {}, "captions": {}, "reframe": {}, "dubbing": {} }
Check the current processing status of a video project
curl -X GET "https://public.reap.video/api/v1/automation/get-project-status?projectId=65f1a2b3c4d5e6f7a8b9c0d1" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json"
async function waitForCompletion(projectId) { const pollInterval = 5000; // 5 seconds while (true) { const response = await fetch(`https://public.reap.video/api/v1/automation/get-project-status?projectId=${projectId}`, { headers: { 'Authorization': 'Bearer YOUR_API_KEY', 'Content-Type': 'application/json' } }); const status = await response.json(); if (status.status === 'completed') { console.log('Project completed successfully!'); break; } else if (status.status === 'failed') { console.log('Project failed'); break; } console.log('Still processing...'); await new Promise(resolve => setTimeout(resolve, pollInterval)); } }