Skip to main content
This guide creates an index, adds one document, and searches it with curl.
Run these commands from a trusted machine or backend. Never expose your API key in browser code.
1

Set your credentials

Use the production API URL and the API key supplied during onboarding.
2

Create an index

Copy the id from the response, then set it for the next requests:
3

Add a document

A successful response has "upserted_documents": 1 and "failed": [].
4

Search

The first result should reference refund-policy. In your application, use its doc_id to load the original text from your own datastore.
Next, learn how to ingest documents, use search results, or browse the complete API reference.