Add large batch of data
POST/v1/data/{namespace}/import
Request a pre-signed upload URL for importing large JSONL batches into a namespace. After receiving upload_url, upload your JSONL file using PUT {upload_url} with header Content-Type: application/json; put each JSON object on a new line.
Returns
Add large batch of data
curl https://api.safetykit.com/v1/data/$NAMESPACE/import \
-X POST \
-H "Authorization: Bearer $SAFETYKIT_API_KEY"{
"expires_at": "2026-01-15T12:30:00.000Z",
"objectKey": "TEAM_ID/data-api-request-input/products/request_01K....jsonl",
"requestId": "req_01h2m7qdmdjckc30e1mnq6xqfd",
"status": "pending_upload",
"upload_url": "https://s3.amazonaws.com/..."
}Returns Examples
{
"expires_at": "2026-01-15T12:30:00.000Z",
"objectKey": "TEAM_ID/data-api-request-input/products/request_01K....jsonl",
"requestId": "req_01h2m7qdmdjckc30e1mnq6xqfd",
"status": "pending_upload",
"upload_url": "https://s3.amazonaws.com/..."
}