Add stream
POST/v1/streams/{namespace}
Monitor the livestream at the given stream URL. This method returns immediately.
Path Parameters
namespace: string
The namespace to ingest stream data into
Body ParametersJSON
id: string
stream_url: string
Returns
requestId: string
status: "accepted"
Add stream
curl https://api.safetykit.com/v1/streams/$NAMESPACE \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $SAFETYKIT_API_KEY" \
-d '{
"id": "YOUR_STREAM_ID",
"stream_url": "https://cdn.example.com/20948D23.m3u8"
}'{
"requestId": "req_01h2m7qdmdjckc30e1mnq6xqfd",
"status": "accepted"
}Returns Examples
{
"requestId": "req_01h2m7qdmdjckc30e1mnq6xqfd",
"status": "accepted"
}