Prerequisites
- A tenant API key (
spltk.v1.…) and your tenant ID, both from the console: open the API Keys panel and create a key. The key is shown once. - An admin role in the tenant — minting a key, and creating a source, both require admin. (Minting the key is the one step that must be done by a signed-in admin in the browser; see Authentication for why, and for the platform-key model if you run many tenants.)
Steps
1
Create a source
A source is where data lands and which dataset it feeds. Create one hosted source for this quickstart.Note the numeric
source_id in the response — you need it for the next step.2
Mint an ingest token
An ingest token authorizes pushing data to this one source. It carries the source and tenant itself, so ingest calls need no tenant header. The plaintext token is shown once.Export it for the push step:
3
Push a few records
Send a small batch of records as a JSON array. Splendor accepts it and indexes it asynchronously, returning
202 Accepted.4
Wait until it's searchable
Indexing takes a moment. Poll the dataset’s readiness until text search is ready.
5
Search it
Query the dataset. The body selects the datasets, the query text, and how many results to return.You get back the response envelope — the same shape for every kind of search:Keep the
search_id — it’s a handle you can use to page, export, or save the query as a view, without re-sending it.If
results is non-empty and you have a search_id, you’re working end to end — from an empty workspace to a search result.What to do next
See what you can build
Real patterns: search by meaning, search by image, one search backend per customer.
Add your real data
Upload files, stream events, or read from your own S3 bucket.
Search model
Text, SQL, and semantic search — and when to use each.
Handles & cursors
Page through results, export, and re-run queries from a handle.