Add data
/v1/data/{namespace}
Add data to a namespace. This method returns immediately; data is processed asynchronously.
Path Parameters
namespace: string
The namespace to ingest data into
Body Parameters
Returns
requestId: string
Unique identifier for tracking this request. Data processing happens asynchronously after this response.
status: "accepted"
Request was accepted for processing
Add data
curl https://api.safetykit.com/v1/data/$NAMESPACE \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $SAFETYKIT_API_KEY" \
-d '{
"data": {
"id": "user-12345"
},
"schema": {
"profile_image": {
"content_type": "image_url"
},
"cover_photo": {
"content_type": "image_url"
},
"website": {
"content_type": "website_url"
}
}
}'
{
"requestId": "req_01h2m7qdmdjckc30e1mnq6xqfd",
"status": "accepted"
}
Returns Examples
{
"requestId": "req_01h2m7qdmdjckc30e1mnq6xqfd",
"status": "accepted"
}