Add parts
POST/v1/streams/{namespace}/parts
Append a list of parts to a stream by the stream identifier. The stream does not need to be created beforehand. This method returns immediately; parts are processed asynchronously.
Path Parameters
namespace: string
The namespace to ingest stream data into
Body ParametersJSON
id: string
Returns
requestId: string
status: "accepted"
Add parts
curl https://api.safetykit.com/v1/streams/$NAMESPACE/parts \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $SAFETYKIT_API_KEY" \
-d '{
"id": "YOUR_STREAM_ID",
"data": [
{
"timestamp": "2026-03-10T18:54:20+00:00",
"type": "audio_url",
"url": "https://example.com/234039.mp3"
}
]
}'{
"requestId": "req_01h2m7qdmdjckc30e1mnq6xqfd",
"status": "accepted"
}Returns Examples
{
"requestId": "req_01h2m7qdmdjckc30e1mnq6xqfd",
"status": "accepted"
}