Goal
Validate a stream, run one synchronous check, then start async monitoring and read job status.Prerequisites
- API key from console.machinefi.com
- A live stream URL (YouTube Live, Twitch, RTSP, or RTSPS)
Step 1: Validate Stream Liveness
Step 2: Run One Immediate Check
triggered: booleanexplanation: model explanationlatency_ms: request latency
Step 3: Start Continuous Monitoring
job_id and status.
Step 4: Poll Job Status
completed, stopped, and failed.
Step 5: Stop Early (Optional)
What You Just Completed
- Pre-flight URL validation
- One synchronous condition check
- One async monitoring job
- Job lifecycle tracking via
/jobs/{job_id}
Next Steps
- Choose best mode for your app: Choose Your Workflow
- Write stronger prompts: Writing Reliable Conditions
- Production delivery patterns: Guides