Monitoring workflow
Use this workflow for recurring checks, monitor state, notifications, and delivery preferences.
The common operations are:
video2ctx api GET /v1/monitors --include-meta
video2ctx api POST /v1/monitors --data '<json>' --include-metaDefine the monitor
- Use provider
youtube; do not spend a request discovering the known provider. - Choose
kind:channeluses a channel ID astarget;topicandsearchuse search text. - Put human-readable notification context in
query.labelwhile keepingtargetfunctional. - Choose
intervalMinutes:60,360,720,1440,4320, or10080. Use1440when the user gives no cadence. - Create exactly the monitor the user requested with
POST /v1/monitors.
Example body:
{
"provider": "youtube",
"kind": "channel",
"target": "UC...",
"intervalMinutes": 1440,
"query": { "label": "Example channel" }
}Operate monitor state
- Treat the first check as a baseline: it records the current leading video and raises no alert. A later leading-video change creates an alert. Creation confirms scheduling; the baseline normally runs about a minute later.
- Use
GET /v1/monitorsto resolve exact account-owned IDs beforePATCHorDELETE. - Change only the requested label, enabled state, or interval with
PATCH /v1/monitors/{id}. UseDELETE /v1/monitors/{id}only for the monitor the user selected. - Read matches with
GET /v1/notifications. Mark one read withPOST /v1/notifications/{id}/readonly after handling the work it triggered. - Read and update in-app and email delivery with
GETandPUT /v1/notification-preferences. Email delivery additionally requires the account confirmation flow.
Read https://docs.video2ctx.dev/api/monitoring.md when the task raises an unresolved monitoring question.
Projects, research, and other composite workflows remain outside this workflow. Account deletion, billing, API-key management, connected-account changes, and administration require the browser application.
Completion criteria
The provider, kind, target, interval, and label are valid; baseline behavior is understood; each mutation targets the exact account-owned resource; delivery preferences are respected; notifications are marked read only after handling; and errors, partial results, and settled credit metadata remain visible.