Get Job Status Endpoint

GET /api/status/{video_id}

Check the status of a previously created video processing or analysis job. Use this endpoint to poll for job completion.

Path Parameters

ParameterDescriptionExample
video_idThe ID returned from the process-video or analyze-video requesta1b2c3d4-e5f6-e7

Status Values

StatusDescription
pendingJob is queued but not yet started
processingJob is actively being processed
completedProcessing has finished successfully
failedProcessing encountered an error
not_foundNo job matching the given ID exists

Response Fields

FieldTypeDescription
statusstringCurrent job status (see values above)
progressnumberPercentage complete (0.0 to 100.0)
download_urlstringDownload link for processed video (processing jobs only, when completed)
resultobjectAnalysis data (analysis jobs only, when completed)
error_messagestringError details (only when status is "failed")

Example: cURL

curl -X GET "https://api.aiframe.ai/api/status/YOUR_VIDEO_ID" \
-H "X-API-Key: YOUR_API_KEY"

Response Examples

Processing Job (Completed)

{
  "status": "completed",
  "progress": 100.0,
  "download_url": "https://storage.aiframe.ai/v/processed/a1b2c3d4.mp4?token=xyz",
  "result": null,
  "error_message": null
}

Analysis Job (Completed)

{
  "status": "completed", 
  "progress": 100.0,
  "download_url": null,
  "result": {
    "transcript": "Transcript of video...",
    "summary": { ... },
    "// ... additional analytics data"
  },
  "error_message": null
}

For detailed response formats and error codes, please see the API Reference (Swagger).