Live Monitor
Start a continuous monitoring job that checks for a condition
Key Request Fields
monitor_duration_seconds(default600): per-job runtime limit in seconds.trigger_cooldown_seconds(default0): minimum seconds between trigger alerts.max_triggers(default1): number of trigger alerts before auto-stop.1keeps legacy first-match behavior.>1allows repeated alerts, then stops.nullmeans unlimited alerts until duration/cancel.
Delivery Mode Selection
POST /live-monitor selects response mode by request shape:
webhook_urlpresent -> webhook modeAccept: text/event-streamand nowebhook_url-> SSE mode- otherwise -> polling mode
Response Semantics by Mode
Polling mode
Returns a job response (job_id, status, created_at, job_type, stream_url, optional message).
Use GET /jobs/{job_id} to track runtime and terminal state.
Webhook mode
Returns a job response immediately, then sends async webhook events. Common webhooktype values:
job_startedwatch_triggeredjob_stoppederror
SSE mode
Returns a text event stream. Common event names:startedprogresstriggered(non-terminal trigger event in multi-trigger mode)stoppederror
stopped and error as terminal events for that stream session.
Treat triggered as non-terminal.
Status Semantics
For polling or post-hoc inspection:running: active checks in progresscompleted: condition matched and job completedstopped: ended without failure (cancelled or auto-stop)failed: ended due to runtime/stream failure
stats.reason include:
condition_triggeredmax_triggers_reachedmax_duration_reachedcancelled
Typical Usage
- Validate URL: Validate Stream
- Validate wording: Check Once
- Start
POST /live-monitor - Track via polling, webhook, or SSE
Related
- Workflow chooser: Choose Your Workflow
- Job state details: Get Job Details
- Webhook implementation: Use Webhooks
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Body
Request to start a live monitor job.
YouTube Live URL or RTSP stream to monitor
1 - 500Natural language condition to watch for
1 - 1000Webhook URL for notifications
1 - 2083Polling interval in seconds
5 <= x <= 300Input mode: 'frames' for single frame, 'clip' for video clip, 'hybrid' for frame+clip combined
frames, clip, hybrid Duration of video clip in seconds (used when input_mode is 'clip' or 'hybrid')
1 <= x <= 10Maximum monitoring duration in seconds
x >= 5Minimum time in seconds between trigger alerts
0 <= x <= 3600Maximum trigger alerts before auto-stop. Null means unlimited.
x >= 1Response
Successful Response