/api/v1/streamsRegister a stream
Upsert a stream by its sourceUrl. POST is idempotent — re-posting the same URL returns the existing record, so a retried request never 409s. Returns 201 with the row, including the initial agentState and a 100% uptimePct placeholder that updates after the first probe.
curl -X POST https://streamwake.app/api/v1/streams \
-H "content-type: application/json" \
-b "better-auth.session_token=<your-session-cookie>" \
-d '{ "sourceUrl": "https://example.com/manifest.m3u8" }'{
"id": "ckq3x...stream",
"sourceUrl": "https://example.com/manifest.m3u8",
"createdAt": "2026-08-03T18:24:11.000Z",
"agentState": "healthy",
"lastAction": "registered",
"lastCheckedAt": null,
"uptimePct": 100
}