Prerequisites
- A source to ingest into (see Connect a source for creating one).
- An ingest token for that source.
Send a batch
POST /v1/ingest/sources/{source_key}/logs accepts a batch of records and returns 202 Accepted. The records are queued and become searchable once indexed.
Authenticate with the source’s ingest token as a bearer credential — the token already names the source and tenant, so no X-Splendor-Tenant-Id header is needed. Send the batch as a top-level JSON array (Content-Type: application/json), or as newline-delimited JSON, one object per line (Content-Type: application/x-ndjson). Gzip is allowed.
received and a fragment_id for the batch.
A
202 means the batch was accepted, not that it is searchable yet. Track progress with ingest runs or dataset readiness.Related
Ingest a dataset
Upload a file through a hosted source.
Run a search
Query the logs once they are indexed.