OriginChainDB
Database endpoints

Import from object storage

Load CSV and NDJSON objects from a storage-bucket prefix into an existing table.

POST /v1/tenants/{tenant}/ingest/s3/sync

Load supported objects from a bucket prefixThis route does not implement incremental mode.
  1. Choose bucket and prefixSelect CSV or NDJSON objects and an existing table.
  2. Load the matching objectsApply the requested format and chunk settings.
  3. Review each object's outcomeInspect errors, empty objects and total imported rows.

Before you start

Use your database bearer token.

Connection setup

Register the destination table and configure server-side access to an allowed storage bucket. Replace SOURCE_BUCKET; storage credentials do not go in this request.

Path parameters

FieldTypeRequired
tenantstringRequired

Headers

FieldTypeRequiredDescription
x-oc-db-userstringOptionalActing database user (role, grant and row-policy checks). Send with x-oc-db-key.
x-oc-db-keystringOptionalAPI key of the x-oc-db-user user.

Request body

application/json

Limits and accepted values
  • schema is the destination table id and must exist.
  • prefix defaults to '' (bucket root).
  • format overrides per-object extension detection (csv or ndjson).
  • csv_has_header defaults to true;
  • chunk_size defaults to 5000.
  • mode is one of: full (default), incremental (not yet supported, returns 400).
  • The bucket must be on the server's ingest allow-list (deny-all by default);
  • storage credentials are server-side and never sent in the request.
FieldTypeRequired
bucketstringRequired
chunk_sizeintegerOptional
csv_has_headerbooleanOptional
formatstringOptional
modestringOptional
prefixstringOptional
schemastringRequired

Read the result

Inspect both the total counters and each per_object result, including its error. Unsupported and empty objects are counted separately. Incremental mode is not implemented for this route.

Response statuses

HTTP status reference
StatusWhat to do
200OK
400Correct the request before retrying.
401Check the credential and Authorization header.
402Check feature access or available credits.
403Check tenant access, roles and permissions.
404Check the resource ID and API route.
413Split or reduce the request body.
415Send the required Content-Type.
422Correct the values or unsupported combination.
429Honor Retry-After when present; back off.
500Check the outcome before retrying a write.
502Check service availability and the write outcome.
503Honor Retry-After when present; check write outcomes.
© 2026 Silicoyn Technologies Pvt Ltd