Skip to main content

GET /jobs

List all jobs (running, stopped, completed, failed).
curl https://vibestream-production-64f3.up.railway.app/jobs
[
  {
    "job_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "status": "running",
    "job_type": "live-monitor",
    "created_at": "2024-01-26T10:30:00Z",
    "youtube_url": "https://youtube.com/watch?v=abc123"
  }
]

GET /jobs/

Get details for a specific job.
curl https://vibestream-production-64f3.up.railway.app/jobs/a1b2c3d4-e5f6-7890-abcd-ef1234567890
{
  "job_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "status": "running",
  "job_type": "live-monitor",
  "created_at": "2024-01-26T10:30:00Z",
  "youtube_url": "https://youtube.com/watch?v=abc123",
  "details": {
    "checks_performed": 45,
    "triggers_fired": 3,
    "frames_skipped": 112
  }
}

DELETE /jobs/

Cancel a running job.
curl -X DELETE https://vibestream-production-64f3.up.railway.app/jobs/a1b2c3d4-e5f6-7890-abcd-ef1234567890
{
  "job_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "status": "stopped"
}

Job Statuses

StatusDescription
pendingJob created but not yet started
runningJob is actively monitoring
stoppedJob was manually cancelled
completedJob finished (summarize jobs only)
failedJob encountered an error
Live Monitor jobs run indefinitely until cancelled. Live Digest jobs can complete if the stream ends.